@tuwaio/satellite-react 0.10.1 → 0.10.3

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.
@@ -0,0 +1 @@
1
+ import {globalSingleton}from'@tuwaio/orbit-core';import {createContext,useContext}from'react';import {useStore}from'zustand';var i=globalSingleton("tuwaio.satellite.context",()=>createContext(null)),m=e=>{let t=useContext(i);if(!t)throw new Error("useSatelliteConnectStore must be used within a SatelliteConnectProvider");return useStore(t,e)};export{i as a,m as b};
@@ -0,0 +1 @@
1
+ 'use strict';var orbitCore=require('@tuwaio/orbit-core'),react=require('react'),zustand=require('zustand');var i=orbitCore.globalSingleton("tuwaio.satellite.context",()=>react.createContext(null)),s=e=>{let t=react.useContext(i);if(!t)throw new Error("useSatelliteConnectStore must be used within a SatelliteConnectProvider");return zustand.useStore(t,e)};exports.a=i;exports.b=s;
@@ -1 +1 @@
1
- 'use strict';var chunkLSWAATDN_cjs=require('../chunk-LSWAATDN.cjs'),chunkHEG6FP5Z_cjs=require('../chunk-HEG6FP5Z.cjs'),core=require('@wagmi/core'),react=require('react'),jsxRuntime=require('react/jsx-runtime');var d=new WeakSet;function v(e){let{mipd:r,connectors:i}=e._internal;r&&i.setState(t=>{let o=new Set(t.flatMap(n=>[n.id,...n.rdns===void 0?[]:[n.rdns].flat()])),s=r.getProviders().filter(n=>!o.has(n.info.rdns)).map(n=>i.setup(i.providerDetailToConnector(n)));return [...t,...s]});}function A(e){react.useEffect(()=>{let{ssr:r,store:i}=e._internal;if(!r||d.has(e))return;let{persist:t}=i;if(!t){let c=setTimeout(()=>{d.has(e)||(d.add(e),v(e));},0);return ()=>clearTimeout(c)}if(t.hasHydrated())return;let o=false,s=t.onHydrate(()=>{o=true;}),n=setTimeout(()=>{s(),!(o||t.hasHydrated()||d.has(e))&&(d.add(e),core.hydrate(e,{reconnectOnMount:false}).onMount().catch(c=>console.warn("Failed to hydrate the wagmi config:",c)));},0);return ()=>{clearTimeout(n),s();}},[e]);}function I({createWatcher:e,wagmiConfig:r,siwx:i,siwe:t}){let o=chunkHEG6FP5Z_cjs.b(a=>a.activeConnection),s=chunkHEG6FP5Z_cjs.b(a=>a.disconnect),n=chunkHEG6FP5Z_cjs.b(a=>a.connectionError),c=chunkHEG6FP5Z_cjs.b(a=>a.updateActiveConnection),f=react.useContext(chunkHEG6FP5Z_cjs.a),p=chunkLSWAATDN_cjs.a(i),h=t!==void 0,C=t?.enabled,S=t?.isSignedIn,m=t?.isRejected,E=react.useMemo(()=>h?{enabled:C,isSignedIn:S,isRejected:m}:void 0,[h,C,S,m]);return react.useEffect(()=>e({wagmiConfig:r,siwx:p,siwe:E},{disconnect:s,updateActiveConnection:c,getState:()=>f?.getState()??{activeConnection:o,connectionError:n}}),[e,f,r,p,E,o?.connectorType,n,s,c]),null}function O(e){let[r,i]=react.useState(null);return A(e.wagmiConfig),react.useEffect(()=>{let t=true;return import('@tuwaio/satellite-evm').then(o=>{t&&i(()=>o.createEVMConnectionsWatcher);}).catch(o=>console.warn("Failed to load EVM watcher:",o)),()=>{t=false;}},[]),r?jsxRuntime.jsx(I,{createWatcher:r,...e}):null}exports.EVMConnectorsWatcher=O;
1
+ 'use strict';var chunkLSWAATDN_cjs=require('../chunk-LSWAATDN.cjs'),chunkNJHDVOJN_cjs=require('../chunk-NJHDVOJN.cjs'),core=require('@wagmi/core'),react=require('react'),jsxRuntime=require('react/jsx-runtime');var d=new WeakSet;function v(e){let{mipd:r,connectors:i}=e._internal;r&&i.setState(t=>{let o=new Set(t.flatMap(n=>[n.id,...n.rdns===void 0?[]:[n.rdns].flat()])),s=r.getProviders().filter(n=>!o.has(n.info.rdns)).map(n=>i.setup(i.providerDetailToConnector(n)));return [...t,...s]});}function A(e){react.useEffect(()=>{let{ssr:r,store:i}=e._internal;if(!r||d.has(e))return;let{persist:t}=i;if(!t){let c=setTimeout(()=>{d.has(e)||(d.add(e),v(e));},0);return ()=>clearTimeout(c)}if(t.hasHydrated())return;let o=false,s=t.onHydrate(()=>{o=true;}),n=setTimeout(()=>{s(),!(o||t.hasHydrated()||d.has(e))&&(d.add(e),core.hydrate(e,{reconnectOnMount:false}).onMount().catch(c=>console.warn("Failed to hydrate the wagmi config:",c)));},0);return ()=>{clearTimeout(n),s();}},[e]);}function I({createWatcher:e,wagmiConfig:r,siwx:i,siwe:t}){let o=chunkNJHDVOJN_cjs.b(a=>a.activeConnection),s=chunkNJHDVOJN_cjs.b(a=>a.disconnect),n=chunkNJHDVOJN_cjs.b(a=>a.connectionError),c=chunkNJHDVOJN_cjs.b(a=>a.updateActiveConnection),f=react.useContext(chunkNJHDVOJN_cjs.a),p=chunkLSWAATDN_cjs.a(i),h=t!==void 0,C=t?.enabled,S=t?.isSignedIn,m=t?.isRejected,E=react.useMemo(()=>h?{enabled:C,isSignedIn:S,isRejected:m}:void 0,[h,C,S,m]);return react.useEffect(()=>e({wagmiConfig:r,siwx:p,siwe:E},{disconnect:s,updateActiveConnection:c,getState:()=>f?.getState()??{activeConnection:o,connectionError:n}}),[e,f,r,p,E,o?.connectorType,n,s,c]),null}function O(e){let[r,i]=react.useState(null);return A(e.wagmiConfig),react.useEffect(()=>{let t=true;return import('@tuwaio/satellite-evm').then(o=>{t&&i(()=>o.createEVMConnectionsWatcher);}).catch(o=>console.warn("Failed to load EVM watcher:",o)),()=>{t=false;}},[]),r?jsxRuntime.jsx(I,{createWatcher:r,...e}):null}exports.EVMConnectorsWatcher=O;
package/dist/evm/index.js CHANGED
@@ -1 +1 @@
1
- import {a as a$1}from'../chunk-FBHCKH6M.js';import {b,a}from'../chunk-4A4PSLAK.js';import {hydrate}from'@wagmi/core';import {useState,useEffect,useContext,useMemo}from'react';import {jsx}from'react/jsx-runtime';var d=new WeakSet;function A(e){let{mipd:r,connectors:i}=e._internal;r&&i.setState(t=>{let o=new Set(t.flatMap(n=>[n.id,...n.rdns===void 0?[]:[n.rdns].flat()])),s=r.getProviders().filter(n=>!o.has(n.info.rdns)).map(n=>i.setup(i.providerDetailToConnector(n)));return [...t,...s]});}function I(e){useEffect(()=>{let{ssr:r,store:i}=e._internal;if(!r||d.has(e))return;let{persist:t}=i;if(!t){let c=setTimeout(()=>{d.has(e)||(d.add(e),A(e));},0);return ()=>clearTimeout(c)}if(t.hasHydrated())return;let o=false,s=t.onHydrate(()=>{o=true;}),n=setTimeout(()=>{s(),!(o||t.hasHydrated()||d.has(e))&&(d.add(e),hydrate(e,{reconnectOnMount:false}).onMount().catch(c=>console.warn("Failed to hydrate the wagmi config:",c)));},0);return ()=>{clearTimeout(n),s();}},[e]);}function g({createWatcher:e,wagmiConfig:r,siwx:i,siwe:t}){let o=b(a=>a.activeConnection),s=b(a=>a.disconnect),n=b(a=>a.connectionError),c=b(a=>a.updateActiveConnection),f=useContext(a),p=a$1(i),h=t!==void 0,C=t?.enabled,S=t?.isSignedIn,m=t?.isRejected,E=useMemo(()=>h?{enabled:C,isSignedIn:S,isRejected:m}:void 0,[h,C,S,m]);return useEffect(()=>e({wagmiConfig:r,siwx:p,siwe:E},{disconnect:s,updateActiveConnection:c,getState:()=>f?.getState()??{activeConnection:o,connectionError:n}}),[e,f,r,p,E,o?.connectorType,n,s,c]),null}function R(e){let[r,i]=useState(null);return I(e.wagmiConfig),useEffect(()=>{let t=true;return import('@tuwaio/satellite-evm').then(o=>{t&&i(()=>o.createEVMConnectionsWatcher);}).catch(o=>console.warn("Failed to load EVM watcher:",o)),()=>{t=false;}},[]),r?jsx(g,{createWatcher:r,...e}):null}export{R as EVMConnectorsWatcher};
1
+ import {a as a$1}from'../chunk-FBHCKH6M.js';import {b,a}from'../chunk-35BYJKJM.js';import {hydrate}from'@wagmi/core';import {useState,useEffect,useContext,useMemo}from'react';import {jsx}from'react/jsx-runtime';var d=new WeakSet;function A(e){let{mipd:r,connectors:i}=e._internal;r&&i.setState(t=>{let o=new Set(t.flatMap(n=>[n.id,...n.rdns===void 0?[]:[n.rdns].flat()])),s=r.getProviders().filter(n=>!o.has(n.info.rdns)).map(n=>i.setup(i.providerDetailToConnector(n)));return [...t,...s]});}function I(e){useEffect(()=>{let{ssr:r,store:i}=e._internal;if(!r||d.has(e))return;let{persist:t}=i;if(!t){let c=setTimeout(()=>{d.has(e)||(d.add(e),A(e));},0);return ()=>clearTimeout(c)}if(t.hasHydrated())return;let o=false,s=t.onHydrate(()=>{o=true;}),n=setTimeout(()=>{s(),!(o||t.hasHydrated()||d.has(e))&&(d.add(e),hydrate(e,{reconnectOnMount:false}).onMount().catch(c=>console.warn("Failed to hydrate the wagmi config:",c)));},0);return ()=>{clearTimeout(n),s();}},[e]);}function g({createWatcher:e,wagmiConfig:r,siwx:i,siwe:t}){let o=b(a=>a.activeConnection),s=b(a=>a.disconnect),n=b(a=>a.connectionError),c=b(a=>a.updateActiveConnection),f=useContext(a),p=a$1(i),h=t!==void 0,C=t?.enabled,S=t?.isSignedIn,m=t?.isRejected,E=useMemo(()=>h?{enabled:C,isSignedIn:S,isRejected:m}:void 0,[h,C,S,m]);return useEffect(()=>e({wagmiConfig:r,siwx:p,siwe:E},{disconnect:s,updateActiveConnection:c,getState:()=>f?.getState()??{activeConnection:o,connectionError:n}}),[e,f,r,p,E,o?.connectorType,n,s,c]),null}function R(e){let[r,i]=useState(null);return I(e.wagmiConfig),useEffect(()=>{let t=true;return import('@tuwaio/satellite-evm').then(o=>{t&&i(()=>o.createEVMConnectionsWatcher);}).catch(o=>console.warn("Failed to load EVM watcher:",o)),()=>{t=false;}},[]),r?jsx(g,{createWatcher:r,...e}):null}export{R as EVMConnectorsWatcher};
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkHEG6FP5Z_cjs=require('./chunk-HEG6FP5Z.cjs'),react=require('react'),satelliteCore=require('@tuwaio/satellite-core'),jsxRuntime=require('react/jsx-runtime');var s=({initializeAutoConnect:r,onError:i})=>{let o=react.useEffectEvent(async()=>r()),e=react.useEffectEvent(t=>{(i??(C=>console.error("Failed to initialize auto connect:",C)))(t);});react.useEffect(()=>{o().catch(t=>e(t));},[]);};function g({children:r,autoConnect:i,adapter:o,callbackAfterConnected:e,rememberWallet:t}){let n=react.useMemo(()=>satelliteCore.createSatelliteConnectStore({adapter:o,callbackAfterConnected:e,rememberWallet:t}),[]);return react.useEffect(()=>{n.getState().updateParameters({adapter:o,callbackAfterConnected:e});},[n,o,e]),s({initializeAutoConnect:()=>n.getState().initializeAutoConnect(i??false)}),jsxRuntime.jsx(chunkHEG6FP5Z_cjs.a.Provider,{value:n,children:r})}Object.defineProperty(exports,"SatelliteStoreContext",{enumerable:true,get:function(){return chunkHEG6FP5Z_cjs.a}});Object.defineProperty(exports,"useSatelliteConnectStore",{enumerable:true,get:function(){return chunkHEG6FP5Z_cjs.b}});exports.SatelliteConnectProvider=g;exports.useInitializeAutoConnect=s;
1
+ 'use strict';var chunkNJHDVOJN_cjs=require('./chunk-NJHDVOJN.cjs'),react=require('react'),satelliteCore=require('@tuwaio/satellite-core'),jsxRuntime=require('react/jsx-runtime');var s=({initializeAutoConnect:r,onError:i})=>{let o=react.useEffectEvent(async()=>r()),e=react.useEffectEvent(t=>{(i??(C=>console.error("Failed to initialize auto connect:",C)))(t);});react.useEffect(()=>{o().catch(t=>e(t));},[]);};function g({children:r,autoConnect:i,adapter:o,callbackAfterConnected:e,rememberWallet:t}){let n=react.useMemo(()=>satelliteCore.createSatelliteConnectStore({adapter:o,callbackAfterConnected:e,rememberWallet:t}),[]);return react.useEffect(()=>{n.getState().updateParameters({adapter:o,callbackAfterConnected:e});},[n,o,e]),s({initializeAutoConnect:()=>n.getState().initializeAutoConnect(i??false)}),jsxRuntime.jsx(chunkNJHDVOJN_cjs.a.Provider,{value:n,children:r})}Object.defineProperty(exports,"SatelliteStoreContext",{enumerable:true,get:function(){return chunkNJHDVOJN_cjs.a}});Object.defineProperty(exports,"useSatelliteConnectStore",{enumerable:true,get:function(){return chunkNJHDVOJN_cjs.b}});exports.SatelliteConnectProvider=g;exports.useInitializeAutoConnect=s;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {a}from'./chunk-4A4PSLAK.js';export{a as SatelliteStoreContext,b as useSatelliteConnectStore}from'./chunk-4A4PSLAK.js';import {useEffectEvent,useEffect,useMemo}from'react';import {createSatelliteConnectStore}from'@tuwaio/satellite-core';import {jsx}from'react/jsx-runtime';var C=({initializeAutoConnect:r,onError:i})=>{let o=useEffectEvent(async()=>r()),e=useEffectEvent(t=>{(i??(p=>console.error("Failed to initialize auto connect:",p)))(t);});useEffect(()=>{o().catch(t=>e(t));},[]);};function h({children:r,autoConnect:i,adapter:o,callbackAfterConnected:e,rememberWallet:t}){let n=useMemo(()=>createSatelliteConnectStore({adapter:o,callbackAfterConnected:e,rememberWallet:t}),[]);return useEffect(()=>{n.getState().updateParameters({adapter:o,callbackAfterConnected:e});},[n,o,e]),C({initializeAutoConnect:()=>n.getState().initializeAutoConnect(i??false)}),jsx(a.Provider,{value:n,children:r})}export{h as SatelliteConnectProvider,C as useInitializeAutoConnect};
1
+ import {a}from'./chunk-35BYJKJM.js';export{a as SatelliteStoreContext,b as useSatelliteConnectStore}from'./chunk-35BYJKJM.js';import {useEffectEvent,useEffect,useMemo}from'react';import {createSatelliteConnectStore}from'@tuwaio/satellite-core';import {jsx}from'react/jsx-runtime';var C=({initializeAutoConnect:r,onError:i})=>{let o=useEffectEvent(async()=>r()),e=useEffectEvent(t=>{(i??(p=>console.error("Failed to initialize auto connect:",p)))(t);});useEffect(()=>{o().catch(t=>e(t));},[]);};function h({children:r,autoConnect:i,adapter:o,callbackAfterConnected:e,rememberWallet:t}){let n=useMemo(()=>createSatelliteConnectStore({adapter:o,callbackAfterConnected:e,rememberWallet:t}),[]);return useEffect(()=>{n.getState().updateParameters({adapter:o,callbackAfterConnected:e});},[n,o,e]),C({initializeAutoConnect:()=>n.getState().initializeAutoConnect(i??false)}),jsx(a.Provider,{value:n,children:r})}export{h as SatelliteConnectProvider,C as useInitializeAutoConnect};
@@ -1 +1 @@
1
- 'use strict';var chunkLSWAATDN_cjs=require('../chunk-LSWAATDN.cjs'),chunkHEG6FP5Z_cjs=require('../chunk-HEG6FP5Z.cjs'),react=require('react'),jsxRuntime=require('react/jsx-runtime');function h({modules:a,siwx:r}){let l=a.useWallets(),o=chunkHEG6FP5Z_cjs.b(t=>t.activeConnection),e=chunkHEG6FP5Z_cjs.b(t=>t.updateActiveConnection),c=chunkHEG6FP5Z_cjs.b(t=>t.connectionError),s=chunkHEG6FP5Z_cjs.b(t=>t.disconnect),i=react.useContext(chunkHEG6FP5Z_cjs.a),S=chunkLSWAATDN_cjs.a(r),{createWatcher:p}=a;return react.useEffect(()=>p({wallets:l,siwx:S},{disconnect:s,updateActiveConnection:e,getState:()=>i?.getState()??{activeConnection:o,connectionError:c}}),[p,i,l,S,o?.connectorType,c,e,s]),null}function b(a={}){let[r,l]=react.useState(null);return react.useEffect(()=>{let o=true;return Promise.all([import('@tuwaio/satellite-solana'),import('@wallet-standard/react')]).then(([e,c])=>{o&&l({createWatcher:e.createSolanaConnectionsWatcher,useWallets:c.useWallets});}).catch(e=>console.warn("Failed to load Solana watcher:",e)),()=>{o=false;}},[]),r?jsxRuntime.jsx(h,{modules:r,...a}):null}exports.SolanaConnectorsWatcher=b;
1
+ 'use strict';var chunkLSWAATDN_cjs=require('../chunk-LSWAATDN.cjs'),chunkNJHDVOJN_cjs=require('../chunk-NJHDVOJN.cjs'),react=require('react'),jsxRuntime=require('react/jsx-runtime');function h({modules:a,siwx:r}){let l=a.useWallets(),o=chunkNJHDVOJN_cjs.b(t=>t.activeConnection),e=chunkNJHDVOJN_cjs.b(t=>t.updateActiveConnection),c=chunkNJHDVOJN_cjs.b(t=>t.connectionError),s=chunkNJHDVOJN_cjs.b(t=>t.disconnect),i=react.useContext(chunkNJHDVOJN_cjs.a),S=chunkLSWAATDN_cjs.a(r),{createWatcher:p}=a;return react.useEffect(()=>p({wallets:l,siwx:S},{disconnect:s,updateActiveConnection:e,getState:()=>i?.getState()??{activeConnection:o,connectionError:c}}),[p,i,l,S,o?.connectorType,c,e,s]),null}function b(a={}){let[r,l]=react.useState(null);return react.useEffect(()=>{let o=true;return Promise.all([import('@tuwaio/satellite-solana'),import('@wallet-standard/react')]).then(([e,c])=>{o&&l({createWatcher:e.createSolanaConnectionsWatcher,useWallets:c.useWallets});}).catch(e=>console.warn("Failed to load Solana watcher:",e)),()=>{o=false;}},[]),r?jsxRuntime.jsx(h,{modules:r,...a}):null}exports.SolanaConnectorsWatcher=b;
@@ -1 +1 @@
1
- import {a as a$1}from'../chunk-FBHCKH6M.js';import {b,a}from'../chunk-4A4PSLAK.js';import {useState,useEffect,useContext}from'react';import {jsx}from'react/jsx-runtime';function w({modules:a$2,siwx:r}){let l=a$2.useWallets(),o=b(t=>t.activeConnection),e=b(t=>t.updateActiveConnection),c=b(t=>t.connectionError),s=b(t=>t.disconnect),i=useContext(a),S=a$1(r),{createWatcher:p}=a$2;return useEffect(()=>p({wallets:l,siwx:S},{disconnect:s,updateActiveConnection:e,getState:()=>i?.getState()??{activeConnection:o,connectionError:c}}),[p,i,l,S,o?.connectorType,c,e,s]),null}function v(a={}){let[r,l]=useState(null);return useEffect(()=>{let o=true;return Promise.all([import('@tuwaio/satellite-solana'),import('@wallet-standard/react')]).then(([e,c])=>{o&&l({createWatcher:e.createSolanaConnectionsWatcher,useWallets:c.useWallets});}).catch(e=>console.warn("Failed to load Solana watcher:",e)),()=>{o=false;}},[]),r?jsx(w,{modules:r,...a}):null}export{v as SolanaConnectorsWatcher};
1
+ import {a as a$1}from'../chunk-FBHCKH6M.js';import {b,a}from'../chunk-35BYJKJM.js';import {useState,useEffect,useContext}from'react';import {jsx}from'react/jsx-runtime';function w({modules:a$2,siwx:r}){let l=a$2.useWallets(),o=b(t=>t.activeConnection),e=b(t=>t.updateActiveConnection),c=b(t=>t.connectionError),s=b(t=>t.disconnect),i=useContext(a),S=a$1(r),{createWatcher:p}=a$2;return useEffect(()=>p({wallets:l,siwx:S},{disconnect:s,updateActiveConnection:e,getState:()=>i?.getState()??{activeConnection:o,connectionError:c}}),[p,i,l,S,o?.connectorType,c,e,s]),null}function v(a={}){let[r,l]=useState(null);return useEffect(()=>{let o=true;return Promise.all([import('@tuwaio/satellite-solana'),import('@wallet-standard/react')]).then(([e,c])=>{o&&l({createWatcher:e.createSolanaConnectionsWatcher,useWallets:c.useWallets});}).catch(e=>console.warn("Failed to load Solana watcher:",e)),()=>{o=false;}},[]),r?jsx(w,{modules:r,...a}):null}export{v as SolanaConnectorsWatcher};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuwaio/satellite-react",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "private": false,
5
5
  "author": "Oleksandr Tkach",
6
6
  "license": "Apache-2.0",
@@ -64,7 +64,7 @@
64
64
  }
65
65
  ],
66
66
  "peerDependencies": {
67
- "@tuwaio/orbit-core": ">=0.4",
67
+ "@tuwaio/orbit-core": ">=0.6.1",
68
68
  "@tuwaio/satellite-core": ">=0.7",
69
69
  "@tuwaio/satellite-evm": ">=0.7",
70
70
  "@tuwaio/satellite-solana": ">=0.7",
@@ -74,9 +74,6 @@
74
74
  "zustand": "5.x.x"
75
75
  },
76
76
  "peerDependenciesMeta": {
77
- "@tuwaio/orbit-core": {
78
- "optional": true
79
- },
80
77
  "@tuwaio/satellite-evm": {
81
78
  "optional": true
82
79
  },
@@ -91,18 +88,18 @@
91
88
  }
92
89
  },
93
90
  "devDependencies": {
94
- "@tuwaio/orbit-core": "^0.6.0",
95
- "@tuwaio/satellite-core": "^0.11.1",
96
- "@tuwaio/satellite-evm": "^0.10.1",
97
- "@tuwaio/satellite-solana": "^0.11.1",
91
+ "@tuwaio/orbit-core": "^0.6.1",
92
+ "@tuwaio/satellite-core": "^0.11.3",
93
+ "@tuwaio/satellite-evm": "^0.10.4",
94
+ "@tuwaio/satellite-solana": "^0.11.3",
98
95
  "@types/react": "^19.3.0",
99
- "@wagmi/core": "^3.6.5",
96
+ "@wagmi/core": "^3.6.9",
100
97
  "@wallet-standard/react": "^1.0.3",
101
98
  "react": "^19.3.1",
102
99
  "tsup": "^9.0.0",
103
100
  "typescript": "6.0.3",
104
- "viem": "^2.57.7",
105
- "zustand": "^5.0.15"
101
+ "viem": "^2.57.16",
102
+ "zustand": "^5.0.16"
106
103
  },
107
104
  "scripts": {
108
105
  "start": "tsup src/index.ts --watch",
@@ -1 +0,0 @@
1
- import {createContext,useContext}from'react';import {useStore}from'zustand';var e=Symbol.for("tuwaio.satellite.context"),o=globalThis,a=o[e]||(o[e]=createContext(null)),u=n=>{let t=useContext(a);if(!t)throw new Error("useSatelliteConnectStore must be used within a SatelliteConnectProvider");return useStore(t,n)};export{a,u as b};
@@ -1 +0,0 @@
1
- 'use strict';var react=require('react'),zustand=require('zustand');var e=Symbol.for("tuwaio.satellite.context"),o=globalThis,a=o[e]||(o[e]=react.createContext(null)),p=n=>{let t=react.useContext(a);if(!t)throw new Error("useSatelliteConnectStore must be used within a SatelliteConnectProvider");return zustand.useStore(t,n)};exports.a=a;exports.b=p;