@vue-solana/nuxt 0.2.3 → 0.2.4
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 +7 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -16,11 +16,11 @@ New to Solana? Start with the official docs and the project concepts guide:
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
|
-
pnpm add @vue-solana/nuxt @vue-solana/vue @vue-solana/core @solana/web3-compat
|
|
19
|
+
pnpm add @vue-solana/nuxt @vue-solana/vue @vue-solana/core @solana/web3-compat buffer
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
```sh
|
|
23
|
-
npm install @vue-solana/nuxt @vue-solana/vue @vue-solana/core @solana/web3-compat
|
|
23
|
+
npm install @vue-solana/nuxt @vue-solana/vue @vue-solana/core @solana/web3-compat buffer
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## Module Setup
|
|
@@ -63,11 +63,14 @@ The module auto-imports these composables from direct `@vue-solana/vue/*` subpat
|
|
|
63
63
|
- `useSolanaRpc()`
|
|
64
64
|
- `useSolanaConnection()`
|
|
65
65
|
- `useSolanaWallet()`
|
|
66
|
+
- `useSolanaWallets()`
|
|
66
67
|
- `useSolanaBalance()`
|
|
67
68
|
- `useSolanaSignAndSendTransaction()`
|
|
68
69
|
|
|
69
70
|
The runtime plugin is client-only. Auto-imported composables can be called during SSR and return inert state until hydration provides the real client context. Trigger RPC and wallet work from client lifecycle hooks or user actions.
|
|
70
71
|
|
|
72
|
+
Android Mobile Wallet Adapter registration also runs only on the client. On Android Chrome and Chrome PWAs, `Mobile Wallet Adapter` can appear in the same `useSolanaWallets()` list as browser extension wallets. iOS browser wallet adapters and desktop native app wallet adapters are planned but not implemented yet.
|
|
73
|
+
|
|
71
74
|
## Read RPC State
|
|
72
75
|
|
|
73
76
|
```vue
|
|
@@ -132,7 +135,7 @@ const { publicKey, connected, connect, disconnect } = useSolanaWallet();
|
|
|
132
135
|
</template>
|
|
133
136
|
```
|
|
134
137
|
|
|
135
|
-
Browser wallets are discovered through the Solana Wallet Standard. Wallet actions work after selecting a discovered wallet or configuring a custom `SolanaWallet`.
|
|
138
|
+
Browser extension wallets are discovered through the Solana Wallet Standard. Android Mobile Wallet Adapter wallets are registered through `@solana-mobile/wallet-standard-mobile` on supported Android Chrome clients and exposed through the same wallet list. Wallet actions work after selecting a discovered wallet or configuring a custom `SolanaWallet`.
|
|
136
139
|
|
|
137
140
|
## Example App
|
|
138
141
|
|
|
@@ -171,4 +174,4 @@ Make sure your `tsconfig.json` includes `types/**/*.d.ts` or another pattern tha
|
|
|
171
174
|
|
|
172
175
|
## Status
|
|
173
176
|
|
|
174
|
-
This package is early-stage. RPC, balance, wallet, and transaction composables are usable in Nuxt apps.
|
|
177
|
+
This package is early-stage. RPC, balance, browser extension wallet, Android mobile wallet, and transaction composables are usable in Nuxt apps.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-solana/nuxt",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Nuxt module for Solana applications.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@vue-solana/core": "0.
|
|
42
|
-
"@vue-solana/vue": "0.
|
|
41
|
+
"@vue-solana/core": "0.3.0",
|
|
42
|
+
"@vue-solana/vue": "0.3.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@solana/web3-compat": "^0.0.21",
|