@vue-solana/nuxt 0.3.2 → 0.5.0

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
@@ -68,6 +68,7 @@ The module auto-imports these composables from direct `@vue-solana/vue/*` subpat
68
68
  - `useSolanaWallet()`
69
69
  - `useSolanaWallets()`
70
70
  - `useSolanaBalance()`
71
+ - `useSolanaTransactionConfirmation()`
71
72
  - `useSolanaSignAndSendTransaction()`
72
73
 
73
74
  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.
@@ -140,6 +141,8 @@ const { publicKey, connected, connect, disconnect } = useSolanaWallet();
140
141
 
141
142
  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`.
142
143
 
144
+ Selected discovered wallets are persisted under `localStorage["vue-solana:selected-wallet"]` as non-sensitive identity metadata: `name`, and `platform`/`source` when available. On reload, Vue Solana restores the selected wallet if the same wallet is discovered again. Set `solana.autoConnect: true` to opt into calling `connect()` for that restored wallet; arbitrary installed wallets are never auto-connected. Calling `selectWallet(null)` or `setWallet(customWallet)` clears the stored selection.
145
+
143
146
  ## Example App
144
147
 
145
148
  This README includes small snippets for quick reference. For a complete runnable Nuxt flow, see the example app:
@@ -170,7 +173,13 @@ If TypeScript cannot resolve `@solana/web3-compat`, add `types/web3-compat.d.ts`
170
173
 
171
174
  ```ts
172
175
  declare module "@solana/web3-compat" {
173
- export type { Commitment, SendOptions, TransactionSignature } from "@solana/web3.js";
176
+ export type {
177
+ Commitment,
178
+ RpcResponseAndContext,
179
+ SendOptions,
180
+ SignatureResult,
181
+ TransactionSignature,
182
+ } from "@solana/web3.js";
174
183
  export {
175
184
  Connection,
176
185
  Keypair,
package/dist/module.cjs CHANGED
@@ -60,6 +60,11 @@ const module$1 = kit.defineNuxtModule({
60
60
  from: "@vue-solana/vue/useSignAndSendTransaction"
61
61
  },
62
62
  { name: "useSolana", as: "useSolana", from: "@vue-solana/vue/useSolana" },
63
+ {
64
+ name: "useTransactionConfirmation",
65
+ as: "useSolanaTransactionConfirmation",
66
+ from: "@vue-solana/vue/useTransactionConfirmation"
67
+ },
63
68
  { name: "useWallet", as: "useSolanaWallet", from: "@vue-solana/vue/useWallet" },
64
69
  { name: "useWallets", as: "useSolanaWallets", from: "@vue-solana/vue/useWallets" }
65
70
  ]);
package/dist/module.mjs CHANGED
@@ -57,6 +57,11 @@ const module$1 = defineNuxtModule({
57
57
  from: "@vue-solana/vue/useSignAndSendTransaction"
58
58
  },
59
59
  { name: "useSolana", as: "useSolana", from: "@vue-solana/vue/useSolana" },
60
+ {
61
+ name: "useTransactionConfirmation",
62
+ as: "useSolanaTransactionConfirmation",
63
+ from: "@vue-solana/vue/useTransactionConfirmation"
64
+ },
60
65
  { name: "useWallet", as: "useSolanaWallet", from: "@vue-solana/vue/useWallet" },
61
66
  { name: "useWallets", as: "useSolanaWallets", from: "@vue-solana/vue/useWallets" }
62
67
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-solana/nuxt",
3
- "version": "0.3.2",
3
+ "version": "0.5.0",
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.4.2",
42
- "@vue-solana/vue": "0.4.2"
41
+ "@vue-solana/core": "0.5.0",
42
+ "@vue-solana/vue": "0.6.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@solana/web3-compat": "^0.0.21",