Commit 8449f2e
* feat: add Next.js 16 App Router example (#36)
Demonstrates @satoshai/kit with Next.js 16 App Router:
- StacksWalletProvider in a "use client" wrapper (providers.tsx)
- Server layout importing client providers
- Connect/disconnect, wallet selection, BNS, transfer STX, write contract
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: hydration mismatch and add full demo parity with vite example
- Add mounted guard for wallet list (extensions only detected client-side)
- Add all demos: TransferSTX, SignStructuredMessage, SignTransaction, WriteContract
- Remove deprecated anchorMode from makeUnsignedSTXTokenTransfer
- Match vite-react example feature coverage
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add SignMessage demo and typed WriteContract for vite-react parity
- Add SignMessageDemo component with text input
- Use createContractConfig + typed ABI for WriteContractDemo (matching vite-react)
- Pass address prop to WriteContractDemo for typed args
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 059b504 commit 8449f2e
File tree
8 files changed
+965
-0
lines changed- examples/nextjs
- app
8 files changed
+965
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments