@waaskey/react 0.1.0 → 0.2.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 +9 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ hooks work in React Native.
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
pnpm add @waaskey/react @waaskey/sdk react
|
|
10
|
+
pnpm add @waaskey/react @waaskey/sdk @waaskey/client-wasm react
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Use
|
|
@@ -69,14 +69,14 @@ function Connect() {
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
| Component / hook
|
|
73
|
-
|
|
|
74
|
-
| `<WaasProvider
|
|
75
|
-
| `useWaas()`
|
|
76
|
-
| `<ConnectModal>`
|
|
77
|
-
| `<WalletWidget>`
|
|
78
|
-
| `<FundWidget>`
|
|
79
|
-
| `useSignPrompt()`
|
|
72
|
+
| Component / hook | What it does |
|
|
73
|
+
| ------------------------------ | ---------------------------------------------------------------------------------------- |
|
|
74
|
+
| `<WaasProvider options/theme>` | Client + theme context (alias of `WaaskeyProvider`; also accepts `client`). |
|
|
75
|
+
| `useWaas()` | `{ client, theme, auth }` — the unified surface. |
|
|
76
|
+
| `<ConnectModal>` | Email-OTP login modal (`auth`), `onConnect(session)`. |
|
|
77
|
+
| `<WalletWidget>` | Assets / Receive (QR) / Send / Activity panel. |
|
|
78
|
+
| `<FundWidget>` | Fiat on-ramp (provider widget URL) to fund the wallet. |
|
|
79
|
+
| `useSignPrompt()` | `requestSignature(tx)` → resolves on approve, rejects on cancel; renders `<SignPrompt>`. |
|
|
80
80
|
|
|
81
81
|
### Theming / white-label
|
|
82
82
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waaskey/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "React hooks + provider for the WAASKey SDK — non-custodial MPC wallets.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Waaskey",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@waaskey/sdk": "0.
|
|
58
|
+
"@waaskey/sdk": "0.2.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@testing-library/react": "^16.1.0",
|