@tuwaio/satellite-react 1.0.0-fix-packages-alpha.7.aac3e8a → 1.0.0-fix-packages-alpha.9.6b78472

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.
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk4MZHI7NY_cjs=require('../chunk-4MZHI7NY.cjs'),orbitCore=require('@tuwaio/orbit-core'),core=require('@wagmi/core'),react=require('react');function x({wagmiConfig:c,siwe:t}){let n=chunk4MZHI7NY_cjs.b(e=>e.activeConnection),r=chunk4MZHI7NY_cjs.b(e=>e.disconnect),u=chunk4MZHI7NY_cjs.b(e=>e.connectionError),m=chunk4MZHI7NY_cjs.b(e=>e.updateActiveConnection);return react.useEffect(()=>{t?.enabled&&!t?.isSignedIn&&t?.isRejected&&n&&r(n.connectorType);},[t,r,n]),react.useEffect(()=>core.watchConnections(c,{onChange:a=>{if(n&&orbitCore.getAdapterFromConnectorType(n.connectorType)!==orbitCore.OrbitAdapter.EVM)return;if(a.length===0){n&&r(n.connectorType);return}let s=c.state.current?a.find(i=>i.connector.uid===c.state.current):a[0];if(!s){n&&r(n.connectorType);return}let d=s.accounts[0],p=s.chainId;if(n&&orbitCore.getAdapterFromConnectorType(n.connectorType)!==orbitCore.OrbitAdapter.EVM||!d||u)return;if(t?.enabled?t.isSignedIn:true){let i=n?.connectorType,C=c.chains.find(E=>E.id===p)?.rpcUrls.default.http[0];m(i?{connectorType:i,address:d,chainId:p,rpcURL:C,isConnected:true}:{address:d,chainId:p,rpcURL:C,isConnected:true});}}}),[n?.connectorType,t,u]),null}exports.EVMConnectorsWatcher=x;//# sourceMappingURL=index.cjs.map
1
+ 'use strict';var chunk4MZHI7NY_cjs=require('../chunk-4MZHI7NY.cjs'),orbitCore=require('@tuwaio/orbit-core'),core=require('@wagmi/core'),react=require('react');function I({wagmiConfig:i,siwe:t}){let n=chunk4MZHI7NY_cjs.b(e=>e.activeConnection),r=chunk4MZHI7NY_cjs.b(e=>e.disconnect),a=chunk4MZHI7NY_cjs.b(e=>e.connectionError),l=chunk4MZHI7NY_cjs.b(e=>e.updateActiveConnection);return react.useEffect(()=>{t?.enabled&&!t?.isSignedIn&&t?.isRejected&&n&&r(n.connectorType);},[t,r,n]),react.useEffect(()=>core.watchConnections(i,{onChange:h=>{if(n&&orbitCore.getAdapterFromConnectorType(n.connectorType)!==orbitCore.OrbitAdapter.EVM)return;if(h.length===0){n&&r(n.connectorType);return}let o=core.getConnection(i);if(n&&orbitCore.getAdapterFromConnectorType(n.connectorType)!==orbitCore.OrbitAdapter.EVM||!o||a)return;if(t?.enabled?t.isSignedIn:true){let d=n?.connectorType,f=d?{connectorType:d,address:o.address,chainId:o.chainId,rpcURL:o?.chain?.rpcUrls.default.http[0],isConnected:true}:{address:o.address,chainId:o.chainId,rpcURL:o?.chain?.rpcUrls.default.http[0],isConnected:true};l(f);}}}),[n?.connectorType,t,a]),null}exports.EVMConnectorsWatcher=I;//# sourceMappingURL=index.cjs.map
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/evm/EVMConnectorsWatcher.tsx"],"names":["EVMConnectorsWatcher","wagmiConfig","siwe","activeConnection","useSatelliteConnectStore","store","disconnect","connectionError","updateActiveConnection","useEffect","watchConnections","connections","getAdapterFromConnectorType","OrbitAdapter","currentConnection","c","primaryAccount","chainId","connectorType","rpcURL"],"mappings":"+JAiDO,SAASA,EAAqB,CAAE,WAAA,CAAAC,EAAa,IAAA,CAAAC,CAAK,CAAA,CAA8B,CAUrF,IAAMC,CAAAA,CAAmBC,oBAA0BC,CAAAA,EAAUA,CAAAA,CAAM,gBAAgB,CAAA,CAI7EC,CAAAA,CAAaF,oBAA0BC,CAAAA,EAAUA,CAAAA,CAAM,UAAU,CAAA,CAIjEE,CAAAA,CAAkBH,mBAAAA,CAA0BC,GAAUA,CAAAA,CAAM,eAAe,CAAA,CAI3EG,CAAAA,CAAyBJ,mBAAAA,CAA0BC,CAAAA,EAAUA,EAAM,sBAAsB,CAAA,CAY/F,OAAAI,eAAAA,CAAU,IAAM,CACVP,GAAM,OAAA,EAAW,CAACA,GAAM,UAAA,EAAcA,CAAAA,EAAM,YAC1CC,CAAAA,EACFG,CAAAA,CAAWH,CAAAA,CAAiB,aAAa,EAG/C,CAAA,CAAG,CAACD,CAAAA,CAAMI,CAAAA,CAAYH,CAAgB,CAAC,CAAA,CASvCM,eAAAA,CAAU,IA8FQC,qBAAAA,CAAiBT,CAAAA,CAAa,CAAE,QAAA,CAvFyBU,CAAAA,EAAgB,CAEvF,GAAIR,CAAAA,EAAoBS,qCAAAA,CAA4BT,EAAiB,aAAa,CAAA,GAAMU,uBAAa,GAAA,CACnG,OAIF,GAAIF,CAAAA,CAAY,MAAA,GAAW,CAAA,CAAG,CACxBR,CAAAA,EACFG,CAAAA,CAAWH,CAAAA,CAAiB,aAAa,CAAA,CAE3C,MACF,CAIA,IAAMW,CAAAA,CAAoBb,CAAAA,CAAY,KAAA,CAAM,OAAA,CACxCU,CAAAA,CAAY,KAAMI,CAAAA,EAAMA,CAAAA,CAAE,UAAU,GAAA,GAAQd,CAAAA,CAAY,MAAM,OAAO,CAAA,CACrEU,CAAAA,CAAY,CAAC,CAAA,CAGjB,GAAI,CAACG,CAAAA,CAAmB,CAClBX,GACFG,CAAAA,CAAWH,CAAAA,CAAiB,aAAa,CAAA,CAE3C,MACF,CAGA,IAAMa,CAAAA,CAAiBF,CAAAA,CAAkB,SAAS,CAAC,CAAA,CAC7CG,EAAUH,CAAAA,CAAkB,OAAA,CAQlC,GACGX,CAAAA,EAAoBS,qCAAAA,CAA4BT,CAAAA,CAAiB,aAAa,CAAA,GAAMU,sBAAAA,CAAa,KAClG,CAACG,CAAAA,EACDT,CAAAA,CAEA,OAUF,GAFqBL,CAAAA,EAAM,QAAUA,CAAAA,CAAK,UAAA,CAAa,IAAA,CAErC,CAEhB,IAAMgB,CAAAA,CAAgBf,GAAkB,aAAA,CAIlCgB,CAAAA,CADQlB,EAAY,MAAA,CAAO,IAAA,CAAMc,GAAMA,CAAAA,CAAE,EAAA,GAAOE,CAAO,CAAA,EACvC,OAAA,CAAQ,OAAA,CAAQ,KAAK,CAAC,CAAA,CAuB5CT,CAAAA,CAlByBU,CAAAA,CACrB,CAEE,aAAA,CAAAA,EACA,OAAA,CAASF,CAAAA,CACT,OAAA,CAAAC,CAAAA,CACA,MAAA,CAAAE,CAAAA,CACA,YAAa,IACf,CAAA,CACA,CAEE,OAAA,CAASH,CAAAA,CACT,QAAAC,CAAAA,CACA,MAAA,CAAAE,CAAAA,CACA,WAAA,CAAa,IACf,CAGmC,EACzC,CACF,CAGkF,CAAC,CAAA,CAOlF,CAAChB,CAAAA,EAAkB,cAAeD,CAAAA,CAAMK,CAAe,CAAC,CAAA,CAGpD,IACT","file":"index.cjs","sourcesContent":["import { getAdapterFromConnectorType, OrbitAdapter } from '@tuwaio/orbit-core';\nimport { Config, watchConnections, WatchConnectionsParameters } from '@wagmi/core';\nimport { useEffect } from 'react';\n\nimport { useSatelliteConnectStore } from '../index';\n\n/**\n * Props for the {@link EVMConnectorsWatcher} component.\n */\ninterface EVMConnectorsWatcherProps {\n /**\n * The configuration object from `@wagmi/core`.\n * This is required to initialize the account watcher.\n */\n wagmiConfig: Config;\n\n /**\n * Optional object representing the Sign-In With Ethereum (SIWE) state.\n * If provided, the watcher will use this state to manage updates\n * and disconnections based on SIWE status.\n */\n siwe?: {\n /**\n * Flag indicating if the SIWE authentication request was rejected by the user.\n */\n isRejected: boolean;\n /**\n * Flag indicating if the user is successfully signed in via SIWE.\n */\n isSignedIn: boolean;\n /**\n * Flag indicating if the SIWE flow is enabled.\n */\n enabled?: boolean;\n };\n}\n\n/**\n * A headless React component (renders `null`) that synchronizes the EVM connector\n * state from `@wagmi/core` with the global `useSatelliteConnectStore`.\n *\n * It is responsible for:\n * 1. Automatically disconnecting if a SIWE (Sign-In With Ethereum) request is rejected.\n * 2. Listening for account changes (e.g., account switch, chain switch, disconnect)\n * from `wagmi` and updating the global store accordingly.\n *\n * @param props - The component's props. See {@link EVMConnectorsWatcherProps} for details.\n * @returns {null} This component does not render any UI.\n */\nexport function EVMConnectorsWatcher({ wagmiConfig, siwe }: EVMConnectorsWatcherProps) {\n // --- Global Store State ---\n // Subscribes to parts of the global Zustand store.\n\n /**\n * The currently active wallet object from the global store.\n */\n /**\n * The currently active wallet object from the global store.\n */\n const activeConnection = useSatelliteConnectStore((store) => store.activeConnection);\n /**\n * The global function to trigger a connector disconnection.\n */\n const disconnect = useSatelliteConnectStore((store) => store.disconnect);\n /**\n * The current connection error state, if any.\n */\n const connectionError = useSatelliteConnectStore((store) => store.connectionError);\n /**\n * The global function to update the active connector's details.\n */\n const updateActiveConnection = useSatelliteConnectStore((store) => store.updateActiveConnection);\n\n // --- Effects ---\n\n /**\n * Effect: Handles SIWE rejection.\n *\n * If the SIWE flow is enabled (`siwe.enabled`), the user is not yet\n * signed in (`!siwe.isSignedIn`), and they have explicitly rejected\n * the SIWE signature request (`siwe.isRejected`), this effect\n * will call the global `disconnect` function.\n */\n useEffect(() => {\n if (siwe?.enabled && !siwe?.isSignedIn && siwe?.isRejected) {\n if (activeConnection) {\n disconnect(activeConnection.connectorType);\n }\n }\n }, [siwe, disconnect, activeConnection]);\n\n /**\n * Effect: Subscribes to wagmi connection changes.\n *\n * This effect initializes `watchConnections` from `@wagmi/core` to listen for\n * any changes in the connected connectors' state (like switching accounts,\n * changing networks, or disconnecting). Supports multiple simultaneous connections.\n */\n useEffect(() => {\n /**\n * Callback function triggered by `watchConnections` whenever the\n * wagmi connections state changes.\n *\n * @param connections - Array of all active connections from wagmi.\n */\n const handleConnectionsChange: WatchConnectionsParameters['onChange'] = (connections) => {\n // Guard: If active connection is not EVM, ignore changes\n if (activeConnection && getAdapterFromConnectorType(activeConnection.connectorType) !== OrbitAdapter.EVM) {\n return;\n }\n\n // Case 1: No connections means all connectors were disconnected\n if (connections.length === 0) {\n if (activeConnection) {\n disconnect(activeConnection.connectorType);\n }\n return;\n }\n\n // Get the current connection from wagmi config state\n // The \"current\" connection is typically the most recently used/active one\n const currentConnection = wagmiConfig.state.current\n ? connections.find((c) => c.connector.uid === wagmiConfig.state.current)\n : connections[0]; // Fallback to first connection if no current is set\n\n // If no valid connection is found, disconnect\n if (!currentConnection) {\n if (activeConnection) {\n disconnect(activeConnection.connectorType);\n }\n return;\n }\n\n // Extract the primary account from the current connection\n const primaryAccount = currentConnection.accounts[0];\n const chainId = currentConnection.chainId;\n\n // --- Guard Clauses ---\n // Stop processing if any of these conditions are true:\n // 1. The currently active connector in our store is NOT an EVM connector\n // (we don't want this watcher to override a non-EVM connector).\n // 2. The current connection has no accounts.\n // 3. There is already a connection error in our global store.\n if (\n (activeConnection && getAdapterFromConnectorType(activeConnection.connectorType) !== OrbitAdapter.EVM) ||\n !primaryAccount ||\n connectionError\n ) {\n return;\n }\n\n /**\n * Determines if the global store *should* be updated.\n * - If SIWE is enabled, we only update the store if the user is signed in.\n * - If SIWE is not enabled, we always update the store.\n */\n const shouldUpdate = siwe?.enabled ? siwe.isSignedIn : true;\n\n if (shouldUpdate) {\n // Preserve the `connectorType` if it already exists in the active wallet.\n const connectorType = activeConnection?.connectorType;\n\n // Get the chain information for RPC URL\n const chain = wagmiConfig.chains.find((c) => c.id === chainId);\n const rpcURL = chain?.rpcUrls.default.http[0];\n\n /**\n * The payload to send to the global store update function.\n */\n const updatedConnector = connectorType\n ? {\n // Preserve the connectorType (e.g., 'metamask', 'walletconnect')\n connectorType,\n address: primaryAccount,\n chainId,\n rpcURL,\n isConnected: true,\n }\n : {\n // Fallback if activeConnection was null or had no type\n address: primaryAccount,\n chainId,\n rpcURL,\n isConnected: true,\n };\n\n // Update the global store with the new connector state.\n updateActiveConnection(updatedConnector);\n }\n };\n\n // Activate the watcher\n const unwatch = watchConnections(wagmiConfig, { onChange: handleConnectionsChange });\n\n // Return the cleanup function.\n // This `unwatch` function will be called when the component unmounts\n // or when the dependencies in the array change, preventing memory leaks.\n return unwatch;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [activeConnection?.connectorType, siwe, connectionError]);\n\n // This component is \"headless\" - it performs logic but renders nothing.\n return null;\n}\n"]}
1
+ {"version":3,"sources":["../../src/evm/EVMConnectorsWatcher.tsx"],"names":["EVMConnectorsWatcher","wagmiConfig","siwe","activeConnection","useSatelliteConnectStore","store","disconnect","connectionError","updateActiveConnection","useEffect","watchConnections","connections","getAdapterFromConnectorType","OrbitAdapter","currentConnection","getConnection","connectorType","updatedConnector"],"mappings":"+JAiDO,SAASA,CAAAA,CAAqB,CAAE,YAAAC,CAAAA,CAAa,IAAA,CAAAC,CAAK,CAAA,CAA8B,CAUrF,IAAMC,CAAAA,CAAmBC,oBAA0BC,CAAAA,EAAUA,CAAAA,CAAM,gBAAgB,CAAA,CAI7EC,CAAAA,CAAaF,oBAA0BC,CAAAA,EAAUA,CAAAA,CAAM,UAAU,CAAA,CAIjEE,CAAAA,CAAkBH,oBAA0BC,CAAAA,EAAUA,CAAAA,CAAM,eAAe,CAAA,CAI3EG,CAAAA,CAAyBJ,mBAAAA,CAA0BC,CAAAA,EAAUA,EAAM,sBAAsB,CAAA,CAY/F,OAAAI,eAAAA,CAAU,IAAM,CACVP,CAAAA,EAAM,OAAA,EAAW,CAACA,CAAAA,EAAM,UAAA,EAAcA,GAAM,UAAA,EAC1CC,CAAAA,EACFG,EAAWH,CAAAA,CAAiB,aAAa,EAG/C,CAAA,CAAG,CAACD,EAAMI,CAAAA,CAAYH,CAAgB,CAAC,CAAA,CASvCM,eAAAA,CAAU,IA0EQC,qBAAAA,CAAiBT,CAAAA,CAAa,CAAE,QAAA,CAnEyBU,CAAAA,EAAgB,CAEvF,GAAIR,CAAAA,EAAoBS,sCAA4BT,CAAAA,CAAiB,aAAa,IAAMU,sBAAAA,CAAa,GAAA,CACnG,OAIF,GAAIF,CAAAA,CAAY,MAAA,GAAW,CAAA,CAAG,CACxBR,CAAAA,EACFG,CAAAA,CAAWH,EAAiB,aAAa,CAAA,CAE3C,MACF,CAEA,IAAMW,EAAoBC,kBAAAA,CAAcd,CAAW,EAQnD,GACGE,CAAAA,EAAoBS,sCAA4BT,CAAAA,CAAiB,aAAa,IAAMU,sBAAAA,CAAa,GAAA,EAClG,CAACC,CAAAA,EACDP,CAAAA,CAEA,OAUF,GAFqBL,CAAAA,EAAM,QAAUA,CAAAA,CAAK,UAAA,CAAa,KAErC,CAEhB,IAAMc,EAAgBb,CAAAA,EAAkB,aAAA,CAKlCc,EAAmBD,CAAAA,CACrB,CAEE,cAAAA,CAAAA,CACA,OAAA,CAASF,EAAkB,OAAA,CAC3B,OAAA,CAASA,CAAAA,CAAkB,OAAA,CAC3B,OAAQA,CAAAA,EAAmB,KAAA,EAAO,QAAQ,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CACxD,WAAA,CAAa,IACf,CAAA,CACA,CAEE,QAASA,CAAAA,CAAkB,OAAA,CAC3B,QAASA,CAAAA,CAAkB,OAAA,CAC3B,OAAQA,CAAAA,EAAmB,KAAA,EAAO,QAAQ,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CACxD,WAAA,CAAa,IACf,CAAA,CAGJN,CAAAA,CAAuBS,CAAgB,EACzC,CACF,CAGkF,CAAC,CAAA,CAOlF,CAACd,CAAAA,EAAkB,aAAA,CAAeD,EAAMK,CAAe,CAAC,EAGpD,IACT","file":"index.cjs","sourcesContent":["import { getAdapterFromConnectorType, OrbitAdapter } from '@tuwaio/orbit-core';\nimport { Config, getConnection, watchConnections, WatchConnectionsParameters } from '@wagmi/core';\nimport { useEffect } from 'react';\n\nimport { useSatelliteConnectStore } from '../index';\n\n/**\n * Props for the {@link EVMConnectorsWatcher} component.\n */\ninterface EVMConnectorsWatcherProps {\n /**\n * The configuration object from `@wagmi/core`.\n * This is required to initialize the account watcher.\n */\n wagmiConfig: Config;\n\n /**\n * Optional object representing the Sign-In With Ethereum (SIWE) state.\n * If provided, the watcher will use this state to manage updates\n * and disconnections based on SIWE status.\n */\n siwe?: {\n /**\n * Flag indicating if the SIWE authentication request was rejected by the user.\n */\n isRejected: boolean;\n /**\n * Flag indicating if the user is successfully signed in via SIWE.\n */\n isSignedIn: boolean;\n /**\n * Flag indicating if the SIWE flow is enabled.\n */\n enabled?: boolean;\n };\n}\n\n/**\n * A headless React component (renders `null`) that synchronizes the EVM connector\n * state from `@wagmi/core` with the global `useSatelliteConnectStore`.\n *\n * It is responsible for:\n * 1. Automatically disconnecting if a SIWE (Sign-In With Ethereum) request is rejected.\n * 2. Listening for account changes (e.g., account switch, chain switch, disconnect)\n * from `wagmi` and updating the global store accordingly.\n *\n * @param props - The component's props. See {@link EVMConnectorsWatcherProps} for details.\n * @returns {null} This component does not render any UI.\n */\nexport function EVMConnectorsWatcher({ wagmiConfig, siwe }: EVMConnectorsWatcherProps) {\n // --- Global Store State ---\n // Subscribes to parts of the global Zustand store.\n\n /**\n * The currently active wallet object from the global store.\n */\n /**\n * The currently active wallet object from the global store.\n */\n const activeConnection = useSatelliteConnectStore((store) => store.activeConnection);\n /**\n * The global function to trigger a connector disconnection.\n */\n const disconnect = useSatelliteConnectStore((store) => store.disconnect);\n /**\n * The current connection error state, if any.\n */\n const connectionError = useSatelliteConnectStore((store) => store.connectionError);\n /**\n * The global function to update the active connector's details.\n */\n const updateActiveConnection = useSatelliteConnectStore((store) => store.updateActiveConnection);\n\n // --- Effects ---\n\n /**\n * Effect: Handles SIWE rejection.\n *\n * If the SIWE flow is enabled (`siwe.enabled`), the user is not yet\n * signed in (`!siwe.isSignedIn`), and they have explicitly rejected\n * the SIWE signature request (`siwe.isRejected`), this effect\n * will call the global `disconnect` function.\n */\n useEffect(() => {\n if (siwe?.enabled && !siwe?.isSignedIn && siwe?.isRejected) {\n if (activeConnection) {\n disconnect(activeConnection.connectorType);\n }\n }\n }, [siwe, disconnect, activeConnection]);\n\n /**\n * Effect: Subscribes to wagmi connection changes.\n *\n * This effect initializes `watchConnections` from `@wagmi/core` to listen for\n * any changes in the connected connectors' state (like switching accounts,\n * changing networks, or disconnecting). Supports multiple simultaneous connections.\n */\n useEffect(() => {\n /**\n * Callback function triggered by `watchConnections` whenever the\n * wagmi connections state changes.\n *\n * @param connections - Array of all active connections from wagmi.\n */\n const handleConnectionsChange: WatchConnectionsParameters['onChange'] = (connections) => {\n // Guard: If active connection is not EVM, ignore changes\n if (activeConnection && getAdapterFromConnectorType(activeConnection.connectorType) !== OrbitAdapter.EVM) {\n return;\n }\n\n // Case 1: No connections means all connectors were disconnected\n if (connections.length === 0) {\n if (activeConnection) {\n disconnect(activeConnection.connectorType);\n }\n return;\n }\n\n const currentConnection = getConnection(wagmiConfig);\n\n // --- Guard Clauses ---\n // Stop processing if any of these conditions are true:\n // 1. The currently active connector in our store is NOT an EVM connector\n // (we don't want this watcher to override a non-EVM connector).\n // 2. The current connection has no accounts.\n // 3. There is already a connection error in our global store.\n if (\n (activeConnection && getAdapterFromConnectorType(activeConnection.connectorType) !== OrbitAdapter.EVM) ||\n !currentConnection ||\n connectionError\n ) {\n return;\n }\n\n /**\n * Determines if the global store *should* be updated.\n * - If SIWE is enabled, we only update the store if the user is signed in.\n * - If SIWE is not enabled, we always update the store.\n */\n const shouldUpdate = siwe?.enabled ? siwe.isSignedIn : true;\n\n if (shouldUpdate) {\n // Preserve the `connectorType` if it already exists in the active wallet.\n const connectorType = activeConnection?.connectorType;\n\n /**\n * The payload to send to the global store update function.\n */\n const updatedConnector = connectorType\n ? {\n // Preserve the connectorType (e.g., 'metamask', 'walletconnect')\n connectorType,\n address: currentConnection.address,\n chainId: currentConnection.chainId,\n rpcURL: currentConnection?.chain?.rpcUrls.default.http[0],\n isConnected: true,\n }\n : {\n // Fallback if activeConnection was null or had no type\n address: currentConnection.address,\n chainId: currentConnection.chainId,\n rpcURL: currentConnection?.chain?.rpcUrls.default.http[0],\n isConnected: true,\n };\n\n // Update the global store with the new connector state.\n updateActiveConnection(updatedConnector);\n }\n };\n\n // Activate the watcher\n const unwatch = watchConnections(wagmiConfig, { onChange: handleConnectionsChange });\n\n // Return the cleanup function.\n // This `unwatch` function will be called when the component unmounts\n // or when the dependencies in the array change, preventing memory leaks.\n return unwatch;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [activeConnection?.connectorType, siwe, connectionError]);\n\n // This component is \"headless\" - it performs logic but renders nothing.\n return null;\n}\n"]}
package/dist/evm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import {b}from'../chunk-KZKVF5GG.js';import {getAdapterFromConnectorType,OrbitAdapter}from'@tuwaio/orbit-core';import {watchConnections}from'@wagmi/core';import {useEffect}from'react';function x({wagmiConfig:c,siwe:t}){let n=b(e=>e.activeConnection),r=b(e=>e.disconnect),u=b(e=>e.connectionError),m=b(e=>e.updateActiveConnection);return useEffect(()=>{t?.enabled&&!t?.isSignedIn&&t?.isRejected&&n&&r(n.connectorType);},[t,r,n]),useEffect(()=>watchConnections(c,{onChange:a=>{if(n&&getAdapterFromConnectorType(n.connectorType)!==OrbitAdapter.EVM)return;if(a.length===0){n&&r(n.connectorType);return}let s=c.state.current?a.find(i=>i.connector.uid===c.state.current):a[0];if(!s){n&&r(n.connectorType);return}let d=s.accounts[0],p=s.chainId;if(n&&getAdapterFromConnectorType(n.connectorType)!==OrbitAdapter.EVM||!d||u)return;if(t?.enabled?t.isSignedIn:true){let i=n?.connectorType,C=c.chains.find(E=>E.id===p)?.rpcUrls.default.http[0];m(i?{connectorType:i,address:d,chainId:p,rpcURL:C,isConnected:true}:{address:d,chainId:p,rpcURL:C,isConnected:true});}}}),[n?.connectorType,t,u]),null}export{x as EVMConnectorsWatcher};//# sourceMappingURL=index.js.map
1
+ import {b}from'../chunk-KZKVF5GG.js';import {getAdapterFromConnectorType,OrbitAdapter}from'@tuwaio/orbit-core';import {watchConnections,getConnection}from'@wagmi/core';import {useEffect}from'react';function I({wagmiConfig:i,siwe:t}){let n=b(e=>e.activeConnection),r=b(e=>e.disconnect),a=b(e=>e.connectionError),l=b(e=>e.updateActiveConnection);return useEffect(()=>{t?.enabled&&!t?.isSignedIn&&t?.isRejected&&n&&r(n.connectorType);},[t,r,n]),useEffect(()=>watchConnections(i,{onChange:h=>{if(n&&getAdapterFromConnectorType(n.connectorType)!==OrbitAdapter.EVM)return;if(h.length===0){n&&r(n.connectorType);return}let o=getConnection(i);if(n&&getAdapterFromConnectorType(n.connectorType)!==OrbitAdapter.EVM||!o||a)return;if(t?.enabled?t.isSignedIn:true){let d=n?.connectorType,f=d?{connectorType:d,address:o.address,chainId:o.chainId,rpcURL:o?.chain?.rpcUrls.default.http[0],isConnected:true}:{address:o.address,chainId:o.chainId,rpcURL:o?.chain?.rpcUrls.default.http[0],isConnected:true};l(f);}}}),[n?.connectorType,t,a]),null}export{I as EVMConnectorsWatcher};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/evm/EVMConnectorsWatcher.tsx"],"names":["EVMConnectorsWatcher","wagmiConfig","siwe","activeConnection","useSatelliteConnectStore","store","disconnect","connectionError","updateActiveConnection","useEffect","watchConnections","connections","getAdapterFromConnectorType","OrbitAdapter","currentConnection","c","primaryAccount","chainId","connectorType","rpcURL"],"mappings":"wLAiDO,SAASA,EAAqB,CAAE,WAAA,CAAAC,EAAa,IAAA,CAAAC,CAAK,CAAA,CAA8B,CAUrF,IAAMC,CAAAA,CAAmBC,EAA0BC,CAAAA,EAAUA,CAAAA,CAAM,gBAAgB,CAAA,CAI7EC,CAAAA,CAAaF,EAA0BC,CAAAA,EAAUA,CAAAA,CAAM,UAAU,CAAA,CAIjEE,CAAAA,CAAkBH,CAAAA,CAA0BC,GAAUA,CAAAA,CAAM,eAAe,CAAA,CAI3EG,CAAAA,CAAyBJ,CAAAA,CAA0BC,CAAAA,EAAUA,EAAM,sBAAsB,CAAA,CAY/F,OAAAI,SAAAA,CAAU,IAAM,CACVP,GAAM,OAAA,EAAW,CAACA,GAAM,UAAA,EAAcA,CAAAA,EAAM,YAC1CC,CAAAA,EACFG,CAAAA,CAAWH,CAAAA,CAAiB,aAAa,EAG/C,CAAA,CAAG,CAACD,CAAAA,CAAMI,CAAAA,CAAYH,CAAgB,CAAC,CAAA,CASvCM,SAAAA,CAAU,IA8FQC,gBAAAA,CAAiBT,CAAAA,CAAa,CAAE,QAAA,CAvFyBU,CAAAA,EAAgB,CAEvF,GAAIR,CAAAA,EAAoBS,2BAAAA,CAA4BT,EAAiB,aAAa,CAAA,GAAMU,aAAa,GAAA,CACnG,OAIF,GAAIF,CAAAA,CAAY,MAAA,GAAW,CAAA,CAAG,CACxBR,CAAAA,EACFG,CAAAA,CAAWH,CAAAA,CAAiB,aAAa,CAAA,CAE3C,MACF,CAIA,IAAMW,CAAAA,CAAoBb,CAAAA,CAAY,KAAA,CAAM,OAAA,CACxCU,CAAAA,CAAY,KAAMI,CAAAA,EAAMA,CAAAA,CAAE,UAAU,GAAA,GAAQd,CAAAA,CAAY,MAAM,OAAO,CAAA,CACrEU,CAAAA,CAAY,CAAC,CAAA,CAGjB,GAAI,CAACG,CAAAA,CAAmB,CAClBX,GACFG,CAAAA,CAAWH,CAAAA,CAAiB,aAAa,CAAA,CAE3C,MACF,CAGA,IAAMa,CAAAA,CAAiBF,CAAAA,CAAkB,SAAS,CAAC,CAAA,CAC7CG,EAAUH,CAAAA,CAAkB,OAAA,CAQlC,GACGX,CAAAA,EAAoBS,2BAAAA,CAA4BT,CAAAA,CAAiB,aAAa,CAAA,GAAMU,YAAAA,CAAa,KAClG,CAACG,CAAAA,EACDT,CAAAA,CAEA,OAUF,GAFqBL,CAAAA,EAAM,QAAUA,CAAAA,CAAK,UAAA,CAAa,IAAA,CAErC,CAEhB,IAAMgB,CAAAA,CAAgBf,GAAkB,aAAA,CAIlCgB,CAAAA,CADQlB,EAAY,MAAA,CAAO,IAAA,CAAMc,GAAMA,CAAAA,CAAE,EAAA,GAAOE,CAAO,CAAA,EACvC,OAAA,CAAQ,OAAA,CAAQ,KAAK,CAAC,CAAA,CAuB5CT,CAAAA,CAlByBU,CAAAA,CACrB,CAEE,aAAA,CAAAA,EACA,OAAA,CAASF,CAAAA,CACT,OAAA,CAAAC,CAAAA,CACA,MAAA,CAAAE,CAAAA,CACA,YAAa,IACf,CAAA,CACA,CAEE,OAAA,CAASH,CAAAA,CACT,QAAAC,CAAAA,CACA,MAAA,CAAAE,CAAAA,CACA,WAAA,CAAa,IACf,CAGmC,EACzC,CACF,CAGkF,CAAC,CAAA,CAOlF,CAAChB,CAAAA,EAAkB,cAAeD,CAAAA,CAAMK,CAAe,CAAC,CAAA,CAGpD,IACT","file":"index.js","sourcesContent":["import { getAdapterFromConnectorType, OrbitAdapter } from '@tuwaio/orbit-core';\nimport { Config, watchConnections, WatchConnectionsParameters } from '@wagmi/core';\nimport { useEffect } from 'react';\n\nimport { useSatelliteConnectStore } from '../index';\n\n/**\n * Props for the {@link EVMConnectorsWatcher} component.\n */\ninterface EVMConnectorsWatcherProps {\n /**\n * The configuration object from `@wagmi/core`.\n * This is required to initialize the account watcher.\n */\n wagmiConfig: Config;\n\n /**\n * Optional object representing the Sign-In With Ethereum (SIWE) state.\n * If provided, the watcher will use this state to manage updates\n * and disconnections based on SIWE status.\n */\n siwe?: {\n /**\n * Flag indicating if the SIWE authentication request was rejected by the user.\n */\n isRejected: boolean;\n /**\n * Flag indicating if the user is successfully signed in via SIWE.\n */\n isSignedIn: boolean;\n /**\n * Flag indicating if the SIWE flow is enabled.\n */\n enabled?: boolean;\n };\n}\n\n/**\n * A headless React component (renders `null`) that synchronizes the EVM connector\n * state from `@wagmi/core` with the global `useSatelliteConnectStore`.\n *\n * It is responsible for:\n * 1. Automatically disconnecting if a SIWE (Sign-In With Ethereum) request is rejected.\n * 2. Listening for account changes (e.g., account switch, chain switch, disconnect)\n * from `wagmi` and updating the global store accordingly.\n *\n * @param props - The component's props. See {@link EVMConnectorsWatcherProps} for details.\n * @returns {null} This component does not render any UI.\n */\nexport function EVMConnectorsWatcher({ wagmiConfig, siwe }: EVMConnectorsWatcherProps) {\n // --- Global Store State ---\n // Subscribes to parts of the global Zustand store.\n\n /**\n * The currently active wallet object from the global store.\n */\n /**\n * The currently active wallet object from the global store.\n */\n const activeConnection = useSatelliteConnectStore((store) => store.activeConnection);\n /**\n * The global function to trigger a connector disconnection.\n */\n const disconnect = useSatelliteConnectStore((store) => store.disconnect);\n /**\n * The current connection error state, if any.\n */\n const connectionError = useSatelliteConnectStore((store) => store.connectionError);\n /**\n * The global function to update the active connector's details.\n */\n const updateActiveConnection = useSatelliteConnectStore((store) => store.updateActiveConnection);\n\n // --- Effects ---\n\n /**\n * Effect: Handles SIWE rejection.\n *\n * If the SIWE flow is enabled (`siwe.enabled`), the user is not yet\n * signed in (`!siwe.isSignedIn`), and they have explicitly rejected\n * the SIWE signature request (`siwe.isRejected`), this effect\n * will call the global `disconnect` function.\n */\n useEffect(() => {\n if (siwe?.enabled && !siwe?.isSignedIn && siwe?.isRejected) {\n if (activeConnection) {\n disconnect(activeConnection.connectorType);\n }\n }\n }, [siwe, disconnect, activeConnection]);\n\n /**\n * Effect: Subscribes to wagmi connection changes.\n *\n * This effect initializes `watchConnections` from `@wagmi/core` to listen for\n * any changes in the connected connectors' state (like switching accounts,\n * changing networks, or disconnecting). Supports multiple simultaneous connections.\n */\n useEffect(() => {\n /**\n * Callback function triggered by `watchConnections` whenever the\n * wagmi connections state changes.\n *\n * @param connections - Array of all active connections from wagmi.\n */\n const handleConnectionsChange: WatchConnectionsParameters['onChange'] = (connections) => {\n // Guard: If active connection is not EVM, ignore changes\n if (activeConnection && getAdapterFromConnectorType(activeConnection.connectorType) !== OrbitAdapter.EVM) {\n return;\n }\n\n // Case 1: No connections means all connectors were disconnected\n if (connections.length === 0) {\n if (activeConnection) {\n disconnect(activeConnection.connectorType);\n }\n return;\n }\n\n // Get the current connection from wagmi config state\n // The \"current\" connection is typically the most recently used/active one\n const currentConnection = wagmiConfig.state.current\n ? connections.find((c) => c.connector.uid === wagmiConfig.state.current)\n : connections[0]; // Fallback to first connection if no current is set\n\n // If no valid connection is found, disconnect\n if (!currentConnection) {\n if (activeConnection) {\n disconnect(activeConnection.connectorType);\n }\n return;\n }\n\n // Extract the primary account from the current connection\n const primaryAccount = currentConnection.accounts[0];\n const chainId = currentConnection.chainId;\n\n // --- Guard Clauses ---\n // Stop processing if any of these conditions are true:\n // 1. The currently active connector in our store is NOT an EVM connector\n // (we don't want this watcher to override a non-EVM connector).\n // 2. The current connection has no accounts.\n // 3. There is already a connection error in our global store.\n if (\n (activeConnection && getAdapterFromConnectorType(activeConnection.connectorType) !== OrbitAdapter.EVM) ||\n !primaryAccount ||\n connectionError\n ) {\n return;\n }\n\n /**\n * Determines if the global store *should* be updated.\n * - If SIWE is enabled, we only update the store if the user is signed in.\n * - If SIWE is not enabled, we always update the store.\n */\n const shouldUpdate = siwe?.enabled ? siwe.isSignedIn : true;\n\n if (shouldUpdate) {\n // Preserve the `connectorType` if it already exists in the active wallet.\n const connectorType = activeConnection?.connectorType;\n\n // Get the chain information for RPC URL\n const chain = wagmiConfig.chains.find((c) => c.id === chainId);\n const rpcURL = chain?.rpcUrls.default.http[0];\n\n /**\n * The payload to send to the global store update function.\n */\n const updatedConnector = connectorType\n ? {\n // Preserve the connectorType (e.g., 'metamask', 'walletconnect')\n connectorType,\n address: primaryAccount,\n chainId,\n rpcURL,\n isConnected: true,\n }\n : {\n // Fallback if activeConnection was null or had no type\n address: primaryAccount,\n chainId,\n rpcURL,\n isConnected: true,\n };\n\n // Update the global store with the new connector state.\n updateActiveConnection(updatedConnector);\n }\n };\n\n // Activate the watcher\n const unwatch = watchConnections(wagmiConfig, { onChange: handleConnectionsChange });\n\n // Return the cleanup function.\n // This `unwatch` function will be called when the component unmounts\n // or when the dependencies in the array change, preventing memory leaks.\n return unwatch;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [activeConnection?.connectorType, siwe, connectionError]);\n\n // This component is \"headless\" - it performs logic but renders nothing.\n return null;\n}\n"]}
1
+ {"version":3,"sources":["../../src/evm/EVMConnectorsWatcher.tsx"],"names":["EVMConnectorsWatcher","wagmiConfig","siwe","activeConnection","useSatelliteConnectStore","store","disconnect","connectionError","updateActiveConnection","useEffect","watchConnections","connections","getAdapterFromConnectorType","OrbitAdapter","currentConnection","getConnection","connectorType","updatedConnector"],"mappings":"sMAiDO,SAASA,CAAAA,CAAqB,CAAE,YAAAC,CAAAA,CAAa,IAAA,CAAAC,CAAK,CAAA,CAA8B,CAUrF,IAAMC,CAAAA,CAAmBC,EAA0BC,CAAAA,EAAUA,CAAAA,CAAM,gBAAgB,CAAA,CAI7EC,CAAAA,CAAaF,EAA0BC,CAAAA,EAAUA,CAAAA,CAAM,UAAU,CAAA,CAIjEE,CAAAA,CAAkBH,EAA0BC,CAAAA,EAAUA,CAAAA,CAAM,eAAe,CAAA,CAI3EG,CAAAA,CAAyBJ,CAAAA,CAA0BC,CAAAA,EAAUA,EAAM,sBAAsB,CAAA,CAY/F,OAAAI,SAAAA,CAAU,IAAM,CACVP,CAAAA,EAAM,OAAA,EAAW,CAACA,CAAAA,EAAM,UAAA,EAAcA,GAAM,UAAA,EAC1CC,CAAAA,EACFG,EAAWH,CAAAA,CAAiB,aAAa,EAG/C,CAAA,CAAG,CAACD,EAAMI,CAAAA,CAAYH,CAAgB,CAAC,CAAA,CASvCM,SAAAA,CAAU,IA0EQC,gBAAAA,CAAiBT,CAAAA,CAAa,CAAE,QAAA,CAnEyBU,CAAAA,EAAgB,CAEvF,GAAIR,CAAAA,EAAoBS,4BAA4BT,CAAAA,CAAiB,aAAa,IAAMU,YAAAA,CAAa,GAAA,CACnG,OAIF,GAAIF,CAAAA,CAAY,MAAA,GAAW,CAAA,CAAG,CACxBR,CAAAA,EACFG,CAAAA,CAAWH,EAAiB,aAAa,CAAA,CAE3C,MACF,CAEA,IAAMW,EAAoBC,aAAAA,CAAcd,CAAW,EAQnD,GACGE,CAAAA,EAAoBS,4BAA4BT,CAAAA,CAAiB,aAAa,IAAMU,YAAAA,CAAa,GAAA,EAClG,CAACC,CAAAA,EACDP,CAAAA,CAEA,OAUF,GAFqBL,CAAAA,EAAM,QAAUA,CAAAA,CAAK,UAAA,CAAa,KAErC,CAEhB,IAAMc,EAAgBb,CAAAA,EAAkB,aAAA,CAKlCc,EAAmBD,CAAAA,CACrB,CAEE,cAAAA,CAAAA,CACA,OAAA,CAASF,EAAkB,OAAA,CAC3B,OAAA,CAASA,CAAAA,CAAkB,OAAA,CAC3B,OAAQA,CAAAA,EAAmB,KAAA,EAAO,QAAQ,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CACxD,WAAA,CAAa,IACf,CAAA,CACA,CAEE,QAASA,CAAAA,CAAkB,OAAA,CAC3B,QAASA,CAAAA,CAAkB,OAAA,CAC3B,OAAQA,CAAAA,EAAmB,KAAA,EAAO,QAAQ,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CACxD,WAAA,CAAa,IACf,CAAA,CAGJN,CAAAA,CAAuBS,CAAgB,EACzC,CACF,CAGkF,CAAC,CAAA,CAOlF,CAACd,CAAAA,EAAkB,aAAA,CAAeD,EAAMK,CAAe,CAAC,EAGpD,IACT","file":"index.js","sourcesContent":["import { getAdapterFromConnectorType, OrbitAdapter } from '@tuwaio/orbit-core';\nimport { Config, getConnection, watchConnections, WatchConnectionsParameters } from '@wagmi/core';\nimport { useEffect } from 'react';\n\nimport { useSatelliteConnectStore } from '../index';\n\n/**\n * Props for the {@link EVMConnectorsWatcher} component.\n */\ninterface EVMConnectorsWatcherProps {\n /**\n * The configuration object from `@wagmi/core`.\n * This is required to initialize the account watcher.\n */\n wagmiConfig: Config;\n\n /**\n * Optional object representing the Sign-In With Ethereum (SIWE) state.\n * If provided, the watcher will use this state to manage updates\n * and disconnections based on SIWE status.\n */\n siwe?: {\n /**\n * Flag indicating if the SIWE authentication request was rejected by the user.\n */\n isRejected: boolean;\n /**\n * Flag indicating if the user is successfully signed in via SIWE.\n */\n isSignedIn: boolean;\n /**\n * Flag indicating if the SIWE flow is enabled.\n */\n enabled?: boolean;\n };\n}\n\n/**\n * A headless React component (renders `null`) that synchronizes the EVM connector\n * state from `@wagmi/core` with the global `useSatelliteConnectStore`.\n *\n * It is responsible for:\n * 1. Automatically disconnecting if a SIWE (Sign-In With Ethereum) request is rejected.\n * 2. Listening for account changes (e.g., account switch, chain switch, disconnect)\n * from `wagmi` and updating the global store accordingly.\n *\n * @param props - The component's props. See {@link EVMConnectorsWatcherProps} for details.\n * @returns {null} This component does not render any UI.\n */\nexport function EVMConnectorsWatcher({ wagmiConfig, siwe }: EVMConnectorsWatcherProps) {\n // --- Global Store State ---\n // Subscribes to parts of the global Zustand store.\n\n /**\n * The currently active wallet object from the global store.\n */\n /**\n * The currently active wallet object from the global store.\n */\n const activeConnection = useSatelliteConnectStore((store) => store.activeConnection);\n /**\n * The global function to trigger a connector disconnection.\n */\n const disconnect = useSatelliteConnectStore((store) => store.disconnect);\n /**\n * The current connection error state, if any.\n */\n const connectionError = useSatelliteConnectStore((store) => store.connectionError);\n /**\n * The global function to update the active connector's details.\n */\n const updateActiveConnection = useSatelliteConnectStore((store) => store.updateActiveConnection);\n\n // --- Effects ---\n\n /**\n * Effect: Handles SIWE rejection.\n *\n * If the SIWE flow is enabled (`siwe.enabled`), the user is not yet\n * signed in (`!siwe.isSignedIn`), and they have explicitly rejected\n * the SIWE signature request (`siwe.isRejected`), this effect\n * will call the global `disconnect` function.\n */\n useEffect(() => {\n if (siwe?.enabled && !siwe?.isSignedIn && siwe?.isRejected) {\n if (activeConnection) {\n disconnect(activeConnection.connectorType);\n }\n }\n }, [siwe, disconnect, activeConnection]);\n\n /**\n * Effect: Subscribes to wagmi connection changes.\n *\n * This effect initializes `watchConnections` from `@wagmi/core` to listen for\n * any changes in the connected connectors' state (like switching accounts,\n * changing networks, or disconnecting). Supports multiple simultaneous connections.\n */\n useEffect(() => {\n /**\n * Callback function triggered by `watchConnections` whenever the\n * wagmi connections state changes.\n *\n * @param connections - Array of all active connections from wagmi.\n */\n const handleConnectionsChange: WatchConnectionsParameters['onChange'] = (connections) => {\n // Guard: If active connection is not EVM, ignore changes\n if (activeConnection && getAdapterFromConnectorType(activeConnection.connectorType) !== OrbitAdapter.EVM) {\n return;\n }\n\n // Case 1: No connections means all connectors were disconnected\n if (connections.length === 0) {\n if (activeConnection) {\n disconnect(activeConnection.connectorType);\n }\n return;\n }\n\n const currentConnection = getConnection(wagmiConfig);\n\n // --- Guard Clauses ---\n // Stop processing if any of these conditions are true:\n // 1. The currently active connector in our store is NOT an EVM connector\n // (we don't want this watcher to override a non-EVM connector).\n // 2. The current connection has no accounts.\n // 3. There is already a connection error in our global store.\n if (\n (activeConnection && getAdapterFromConnectorType(activeConnection.connectorType) !== OrbitAdapter.EVM) ||\n !currentConnection ||\n connectionError\n ) {\n return;\n }\n\n /**\n * Determines if the global store *should* be updated.\n * - If SIWE is enabled, we only update the store if the user is signed in.\n * - If SIWE is not enabled, we always update the store.\n */\n const shouldUpdate = siwe?.enabled ? siwe.isSignedIn : true;\n\n if (shouldUpdate) {\n // Preserve the `connectorType` if it already exists in the active wallet.\n const connectorType = activeConnection?.connectorType;\n\n /**\n * The payload to send to the global store update function.\n */\n const updatedConnector = connectorType\n ? {\n // Preserve the connectorType (e.g., 'metamask', 'walletconnect')\n connectorType,\n address: currentConnection.address,\n chainId: currentConnection.chainId,\n rpcURL: currentConnection?.chain?.rpcUrls.default.http[0],\n isConnected: true,\n }\n : {\n // Fallback if activeConnection was null or had no type\n address: currentConnection.address,\n chainId: currentConnection.chainId,\n rpcURL: currentConnection?.chain?.rpcUrls.default.http[0],\n isConnected: true,\n };\n\n // Update the global store with the new connector state.\n updateActiveConnection(updatedConnector);\n }\n };\n\n // Activate the watcher\n const unwatch = watchConnections(wagmiConfig, { onChange: handleConnectionsChange });\n\n // Return the cleanup function.\n // This `unwatch` function will be called when the component unmounts\n // or when the dependencies in the array change, preventing memory leaks.\n return unwatch;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [activeConnection?.connectorType, siwe, connectionError]);\n\n // This component is \"headless\" - it performs logic but renders nothing.\n return null;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuwaio/satellite-react",
3
- "version": "1.0.0-fix-packages-alpha.7.aac3e8a",
3
+ "version": "1.0.0-fix-packages-alpha.9.6b78472",
4
4
  "private": false,
5
5
  "author": "Oleksandr Tkach",
6
6
  "license": "Apache-2.0",
@@ -131,9 +131,9 @@
131
131
  "viem": "^2.40.3",
132
132
  "typescript": "^5.9.3",
133
133
  "zustand": "^5.0.8",
134
- "@tuwaio/satellite-evm": "^1.0.0-fix-packages-alpha.7.aac3e8a",
135
- "@tuwaio/satellite-core": "^1.0.0-fix-packages-alpha.7.aac3e8a",
136
- "@tuwaio/satellite-solana": "^1.0.0-fix-packages-alpha.7.aac3e8a"
134
+ "@tuwaio/satellite-core": "^1.0.0-fix-packages-alpha.9.6b78472",
135
+ "@tuwaio/satellite-evm": "^1.0.0-fix-packages-alpha.9.6b78472",
136
+ "@tuwaio/satellite-solana": "^1.0.0-fix-packages-alpha.9.6b78472"
137
137
  },
138
138
  "scripts": {
139
139
  "start": "tsup src/index.ts --watch",