feat: implement Nostr Wallet Connect (NWC)

- Add applesauce-wallet-connect dependency
- Create WalletService for managing NWC connection
- Create WalletViewer component for UI
- Register 'wallet' command
- Fix build errors in spell/spellbook components due to applesauce-actions upgrade
This commit is contained in:
Alejandro Gómez
2025-12-20 18:46:14 +01:00
parent 5d432300b2
commit 5d9ff3cf56
34 changed files with 1821 additions and 111 deletions

18
package-lock.json generated
View File

@@ -29,6 +29,7 @@
"applesauce-loaders": "^4.2.0",
"applesauce-react": "^4.0.0",
"applesauce-relay": "latest",
"applesauce-wallet-connect": "^4.1.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
@@ -4851,6 +4852,23 @@
"url": "lightning:nostrudel@geyser.fund"
}
},
"node_modules/applesauce-wallet-connect": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/applesauce-wallet-connect/-/applesauce-wallet-connect-4.1.0.tgz",
"integrity": "sha512-wr07zQP60wenO+KZ/xmWHtWBtXkmczj2zDgK73sDE0j34ZJWvJJ3RAVMv5KLWub55jUD4vuRVyrN2Nff5ux2lw==",
"license": "MIT",
"dependencies": {
"@noble/hashes": "^1.7.1",
"applesauce-core": "^4.1.0",
"applesauce-factory": "^4.0.0",
"nostr-tools": "~2.17",
"rxjs": "^7.8.1"
},
"funding": {
"type": "lightning",
"url": "lightning:nostrudel@geyser.fund"
}
},
"node_modules/arg": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",