@tuwaio/satellite-react 0.10.0 → 0.10.2

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/README.md CHANGED
@@ -91,7 +91,7 @@ Connect a wallet with `useSatelliteConnectStore((state) => state.connect)`. Read
91
91
 
92
92
  ## 🗄️ Browser Storage
93
93
 
94
- The provider's store saves the last connection and the recently connected wallets to `localStorage`, and removes the impersonated address, through `@tuwaio/orbit-core`. The keys, their content and when they change are listed on the [`@tuwaio/satellite-core`](https://satellite.docs.tuwa.io/packages/satellite-core) page. The store state itself is not persisted: server rendering and the first client render start with no connection, and `initializeAutoConnect` restores it after mount (it waits 300 ms and disconnects the wallets of every adapter first). Read `isAutoConnectFinished` from the store before treating a missing connection as a disconnect.
94
+ The provider's store saves the last connection and the recently connected wallets to `localStorage`, and removes the impersonated address, through `@tuwaio/orbit-core`. The keys, their content and when they change are listed on the [`@tuwaio/satellite-core`](https://satellite.docs.tuwa.io/packages/satellite-core) page. The store state itself is not persisted: server rendering and the first client render start with no connection, and `initializeAutoConnect` restores it after mount (after 300 ms; only the last active wallet comes back, without a prompt, and with `autoConnect={false}` no wallet is disconnected). Read `isAutoConnectFinished` from the store before treating a missing connection as a disconnect.
95
95
 
96
96
  `EVMConnectorsWatcher` hydrates a wagmi config created with `ssr: true` (unless `WagmiProvider` does): wagmi reads its saved state from the `storage` of the config (`localStorage` by default) and the watcher clears the saved wagmi connections. To keep nothing of wagmi in the browser, create the config with `storage: createStorage({ storage: noopStorage })` from `@wagmi/core`; with `storage: null` wagmi cannot hydrate the config, and the watcher only adds the installed wallets found through EIP-6963.
97
97
 
package/dist/index.d.cts CHANGED
@@ -132,10 +132,12 @@ interface SatelliteConnectProviderProps extends SatelliteConnectStoreInitialPara
132
132
  * `setRememberWallet`). When `adapter` or `callbackAfterConnected` changes, the new value
133
133
  * is passed to the store's `updateParameters`; the state is kept. Define adapters outside the component (or memoize
134
134
  * them), so a render does not create new adapter objects. After mount the provider
135
- * calls the store's `initializeAutoConnect(autoConnect ?? false)` once, which disconnects the wallets of every adapter,
136
- * cleans the recently connected list and, with `autoConnect`, reconnects the last connected wallet (a wallet saved without
137
- * `rememberWallet` only until the tab closes).
138
- * Inside Safe{Wallet} it connects the Safe connector instead, with or without `autoConnect`. The store's
135
+ * calls the store's `initializeAutoConnect(autoConnect ?? false)` once, which cleans the recently connected list and,
136
+ * with `autoConnect`, restores the last active wallet without a prompt (a wallet saved without `rememberWallet` only
137
+ * until the tab closes) and disconnects the other connections its adapters opened in this page. Without
138
+ * `autoConnect` it disconnects nothing, so wallets connected in other tabs or by other stores of the page stay
139
+ * connected.
140
+ * Inside Safe{Wallet} it restores the Safe connector instead, with or without `autoConnect`. The store's
139
141
  * `isAutoConnectFinished` turns `true` when this is done.
140
142
  * Render the chain watchers (`EVMConnectorsWatcher` from `@tuwaio/satellite-react/evm`, `SolanaConnectorsWatcher`
141
143
  * from `@tuwaio/satellite-react/solana`) inside it to follow wallet changes.
package/dist/index.d.ts CHANGED
@@ -132,10 +132,12 @@ interface SatelliteConnectProviderProps extends SatelliteConnectStoreInitialPara
132
132
  * `setRememberWallet`). When `adapter` or `callbackAfterConnected` changes, the new value
133
133
  * is passed to the store's `updateParameters`; the state is kept. Define adapters outside the component (or memoize
134
134
  * them), so a render does not create new adapter objects. After mount the provider
135
- * calls the store's `initializeAutoConnect(autoConnect ?? false)` once, which disconnects the wallets of every adapter,
136
- * cleans the recently connected list and, with `autoConnect`, reconnects the last connected wallet (a wallet saved without
137
- * `rememberWallet` only until the tab closes).
138
- * Inside Safe{Wallet} it connects the Safe connector instead, with or without `autoConnect`. The store's
135
+ * calls the store's `initializeAutoConnect(autoConnect ?? false)` once, which cleans the recently connected list and,
136
+ * with `autoConnect`, restores the last active wallet without a prompt (a wallet saved without `rememberWallet` only
137
+ * until the tab closes) and disconnects the other connections its adapters opened in this page. Without
138
+ * `autoConnect` it disconnects nothing, so wallets connected in other tabs or by other stores of the page stay
139
+ * connected.
140
+ * Inside Safe{Wallet} it restores the Safe connector instead, with or without `autoConnect`. The store's
139
141
  * `isAutoConnectFinished` turns `true` when this is done.
140
142
  * Render the chain watchers (`EVMConnectorsWatcher` from `@tuwaio/satellite-react/evm`, `SolanaConnectorsWatcher`
141
143
  * from `@tuwaio/satellite-react/solana`) inside it to follow wallet changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuwaio/satellite-react",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "private": false,
5
5
  "author": "Oleksandr Tkach",
6
6
  "license": "Apache-2.0",
@@ -92,17 +92,17 @@
92
92
  },
93
93
  "devDependencies": {
94
94
  "@tuwaio/orbit-core": "^0.6.0",
95
- "@tuwaio/satellite-core": "^0.10.0",
96
- "@tuwaio/satellite-evm": "^0.10.0",
97
- "@tuwaio/satellite-solana": "^0.10.0",
95
+ "@tuwaio/satellite-core": "^0.11.2",
96
+ "@tuwaio/satellite-evm": "^0.10.2",
97
+ "@tuwaio/satellite-solana": "^0.11.2",
98
98
  "@types/react": "^19.3.0",
99
- "@wagmi/core": "^3.6.5",
99
+ "@wagmi/core": "^3.6.7",
100
100
  "@wallet-standard/react": "^1.0.3",
101
101
  "react": "^19.3.1",
102
102
  "tsup": "^9.0.0",
103
103
  "typescript": "6.0.3",
104
- "viem": "^2.57.7",
105
- "zustand": "^5.0.15"
104
+ "viem": "^2.57.12",
105
+ "zustand": "^5.0.16"
106
106
  },
107
107
  "scripts": {
108
108
  "start": "tsup src/index.ts --watch",