@vue-solana/nuxt 0.2.2 → 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 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
@@ -57,15 +57,20 @@ https://faucet.solana.com
57
57
 
58
58
  ## Auto-Imported Composables
59
59
 
60
- The module auto-imports these composables from `@vue-solana/vue`:
60
+ The module auto-imports these composables from direct `@vue-solana/vue/*` subpaths rather than the root Vue package barrel. This keeps Nuxt SSR bundles from pulling in unrelated Solana runtime code just because a page uses one composable.
61
61
 
62
62
  - `useSolana()`
63
63
  - `useSolanaRpc()`
64
64
  - `useSolanaConnection()`
65
65
  - `useSolanaWallet()`
66
+ - `useSolanaWallets()`
66
67
  - `useSolanaBalance()`
67
68
  - `useSolanaSignAndSendTransaction()`
68
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.
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
+
69
74
  ## Read RPC State
70
75
 
71
76
  ```vue
@@ -130,7 +135,7 @@ const { publicKey, connected, connect, disconnect } = useSolanaWallet();
130
135
  </template>
131
136
  ```
132
137
 
133
- 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`.
134
139
 
135
140
  ## Example App
136
141
 
@@ -169,4 +174,4 @@ Make sure your `tsconfig.json` includes `types/**/*.d.ts` or another pattern tha
169
174
 
170
175
  ## Status
171
176
 
172
- 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/dist/module.cjs CHANGED
@@ -24,17 +24,17 @@ const module$1 = kit.defineNuxtModule({
24
24
  mode: "client"
25
25
  });
26
26
  kit.addImports([
27
- { name: "useBalance", as: "useSolanaBalance", from: "@vue-solana/vue" },
28
- { name: "useConnection", as: "useSolanaConnection", from: "@vue-solana/vue" },
29
- { name: "useRpc", as: "useSolanaRpc", from: "@vue-solana/vue" },
27
+ { name: "useBalance", as: "useSolanaBalance", from: "@vue-solana/vue/useBalance" },
28
+ { name: "useConnection", as: "useSolanaConnection", from: "@vue-solana/vue/useConnection" },
29
+ { name: "useRpc", as: "useSolanaRpc", from: "@vue-solana/vue/useRpc" },
30
30
  {
31
31
  name: "useSignAndSendTransaction",
32
32
  as: "useSolanaSignAndSendTransaction",
33
- from: "@vue-solana/vue"
33
+ from: "@vue-solana/vue/useSignAndSendTransaction"
34
34
  },
35
- { name: "useSolana", as: "useSolana", from: "@vue-solana/vue" },
36
- { name: "useWallet", as: "useSolanaWallet", from: "@vue-solana/vue" },
37
- { name: "useWallets", as: "useSolanaWallets", from: "@vue-solana/vue" }
35
+ { name: "useSolana", as: "useSolana", from: "@vue-solana/vue/useSolana" },
36
+ { name: "useWallet", as: "useSolanaWallet", from: "@vue-solana/vue/useWallet" },
37
+ { name: "useWallets", as: "useSolanaWallets", from: "@vue-solana/vue/useWallets" }
38
38
  ]);
39
39
  }
40
40
  });
package/dist/module.mjs CHANGED
@@ -21,17 +21,17 @@ const module$1 = defineNuxtModule({
21
21
  mode: "client"
22
22
  });
23
23
  addImports([
24
- { name: "useBalance", as: "useSolanaBalance", from: "@vue-solana/vue" },
25
- { name: "useConnection", as: "useSolanaConnection", from: "@vue-solana/vue" },
26
- { name: "useRpc", as: "useSolanaRpc", from: "@vue-solana/vue" },
24
+ { name: "useBalance", as: "useSolanaBalance", from: "@vue-solana/vue/useBalance" },
25
+ { name: "useConnection", as: "useSolanaConnection", from: "@vue-solana/vue/useConnection" },
26
+ { name: "useRpc", as: "useSolanaRpc", from: "@vue-solana/vue/useRpc" },
27
27
  {
28
28
  name: "useSignAndSendTransaction",
29
29
  as: "useSolanaSignAndSendTransaction",
30
- from: "@vue-solana/vue"
30
+ from: "@vue-solana/vue/useSignAndSendTransaction"
31
31
  },
32
- { name: "useSolana", as: "useSolana", from: "@vue-solana/vue" },
33
- { name: "useWallet", as: "useSolanaWallet", from: "@vue-solana/vue" },
34
- { name: "useWallets", as: "useSolanaWallets", from: "@vue-solana/vue" }
32
+ { name: "useSolana", as: "useSolana", from: "@vue-solana/vue/useSolana" },
33
+ { name: "useWallet", as: "useSolanaWallet", from: "@vue-solana/vue/useWallet" },
34
+ { name: "useWallets", as: "useSolanaWallets", from: "@vue-solana/vue/useWallets" }
35
35
  ]);
36
36
  }
37
37
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-solana/nuxt",
3
- "version": "0.2.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.2.1",
42
- "@vue-solana/vue": "0.2.2"
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",