@tuwaio/satellite-react 0.6.0 → 0.6.1
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 +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ Connect a wallet with `useSatelliteConnectStore((state) => state.connect)`. Read
|
|
|
90
90
|
|
|
91
91
|
## 🗄️ Browser Storage
|
|
92
92
|
|
|
93
|
-
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).
|
|
93
|
+
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
94
|
|
|
95
95
|
---
|
|
96
96
|
|
package/dist/index.d.cts
CHANGED
|
@@ -133,7 +133,8 @@ interface SatelliteConnectProviderProps extends SatelliteConnectStoreInitialPara
|
|
|
133
133
|
* them), so a render does not create new adapter objects. After mount the provider
|
|
134
134
|
* calls the store's `initializeAutoConnect(autoConnect ?? false)` once, which disconnects the wallets of every adapter,
|
|
135
135
|
* cleans the recently connected list in `localStorage` and, with `autoConnect`, reconnects the last connected wallet.
|
|
136
|
-
* Inside Safe{Wallet} it connects the Safe connector instead, with or without `autoConnect`.
|
|
136
|
+
* Inside Safe{Wallet} it connects the Safe connector instead, with or without `autoConnect`. The store's
|
|
137
|
+
* `isAutoConnectFinished` turns `true` when this is done.
|
|
137
138
|
* Render the chain watchers (`EVMConnectorsWatcher` from `@tuwaio/satellite-react/evm`, `SolanaConnectorsWatcher`
|
|
138
139
|
* from `@tuwaio/satellite-react/solana`) inside it to follow wallet changes.
|
|
139
140
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -133,7 +133,8 @@ interface SatelliteConnectProviderProps extends SatelliteConnectStoreInitialPara
|
|
|
133
133
|
* them), so a render does not create new adapter objects. After mount the provider
|
|
134
134
|
* calls the store's `initializeAutoConnect(autoConnect ?? false)` once, which disconnects the wallets of every adapter,
|
|
135
135
|
* cleans the recently connected list in `localStorage` and, with `autoConnect`, reconnects the last connected wallet.
|
|
136
|
-
* Inside Safe{Wallet} it connects the Safe connector instead, with or without `autoConnect`.
|
|
136
|
+
* Inside Safe{Wallet} it connects the Safe connector instead, with or without `autoConnect`. The store's
|
|
137
|
+
* `isAutoConnectFinished` turns `true` when this is done.
|
|
137
138
|
* Render the chain watchers (`EVMConnectorsWatcher` from `@tuwaio/satellite-react/evm`, `SolanaConnectorsWatcher`
|
|
138
139
|
* from `@tuwaio/satellite-react/solana`) inside it to follow wallet changes.
|
|
139
140
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tuwaio/satellite-react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Oleksandr Tkach",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@types/react": "^19.3.0",
|
|
95
95
|
"@tuwaio/orbit-core": "^0.3.1",
|
|
96
|
-
"@tuwaio/satellite-core": "^0.6.
|
|
96
|
+
"@tuwaio/satellite-core": "^0.6.1",
|
|
97
97
|
"@tuwaio/satellite-evm": "^0.6.0",
|
|
98
98
|
"@tuwaio/satellite-solana": "^0.6.0",
|
|
99
99
|
"@wagmi/core": "^3.6.5",
|