@vue-solana/nuxt 0.2.3 → 0.2.5

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
@@ -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/dist/module.cjs CHANGED
@@ -3,6 +3,7 @@
3
3
  const kit = require('@nuxt/kit');
4
4
 
5
5
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
6
+ const VITE_OPTIMIZE_DEPS = ["qrcode", "@solana-mobile/wallet-standard-mobile"];
6
7
  const module$1 = kit.defineNuxtModule({
7
8
  meta: {
8
9
  name: "@vue-solana/nuxt",
@@ -19,6 +20,10 @@ const module$1 = kit.defineNuxtModule({
19
20
  ...typeof publicConfig.solana === "object" && publicConfig.solana !== null ? publicConfig.solana : {},
20
21
  ...options
21
22
  };
23
+ nuxt.options.vite.optimizeDeps ??= {};
24
+ nuxt.options.vite.optimizeDeps.include = Array.from(
25
+ /* @__PURE__ */ new Set([...nuxt.options.vite.optimizeDeps.include ?? [], ...VITE_OPTIMIZE_DEPS])
26
+ );
22
27
  kit.addPlugin({
23
28
  src: resolver.resolve("./runtime/plugin"),
24
29
  mode: "client"
package/dist/module.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { defineNuxtModule, createResolver, addPlugin, addImports } from '@nuxt/kit';
2
2
 
3
+ const VITE_OPTIMIZE_DEPS = ["qrcode", "@solana-mobile/wallet-standard-mobile"];
3
4
  const module$1 = defineNuxtModule({
4
5
  meta: {
5
6
  name: "@vue-solana/nuxt",
@@ -16,6 +17,10 @@ const module$1 = defineNuxtModule({
16
17
  ...typeof publicConfig.solana === "object" && publicConfig.solana !== null ? publicConfig.solana : {},
17
18
  ...options
18
19
  };
20
+ nuxt.options.vite.optimizeDeps ??= {};
21
+ nuxt.options.vite.optimizeDeps.include = Array.from(
22
+ /* @__PURE__ */ new Set([...nuxt.options.vite.optimizeDeps.include ?? [], ...VITE_OPTIMIZE_DEPS])
23
+ );
19
24
  addPlugin({
20
25
  src: resolver.resolve("./runtime/plugin"),
21
26
  mode: "client"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-solana/nuxt",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
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.3"
41
+ "@vue-solana/core": "0.3.1",
42
+ "@vue-solana/vue": "0.3.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@solana/web3-compat": "^0.0.21",