@stridge/kit 0.1.0-alpha.0 → 0.1.0-alpha.2
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 +42 -0
- package/dist/kit/package.js +1 -1
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# `@stridge/kit`
|
|
2
|
+
|
|
3
|
+
React widgets and headless hooks for the Stridge Gateway — drop-in deposit and withdraw flows for crypto apps.
|
|
4
|
+
|
|
5
|
+
**Links** · [Website](https://stridge.com) · [Documentation](https://docs.stridge.com) · [Live demo](https://demo.stridge.com)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @stridge/kit
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Peer dependencies: `react`, `react-dom`, `viem`, `wagmi`.
|
|
14
|
+
|
|
15
|
+
## Quick start
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import { StridgeProvider, chains } from "@stridge/kit";
|
|
19
|
+
import { DepositDialog } from "@stridge/kit/deposit/dialog";
|
|
20
|
+
import { WithdrawDialog } from "@stridge/kit/withdraw/dialog";
|
|
21
|
+
|
|
22
|
+
<StridgeProvider
|
|
23
|
+
gatewayKey={process.env.NEXT_PUBLIC_STRIDGE_GATEWAY_KEY!}
|
|
24
|
+
asset={{ chain: chains.bsc, symbol: "USDC" }}
|
|
25
|
+
flows={{ deposit: {}, withdraw: {} }}
|
|
26
|
+
appearance={{ theme: "dark", accent: "oklch(78% 0.15 240)", radius: "rounded" }}
|
|
27
|
+
>
|
|
28
|
+
<YourApp />
|
|
29
|
+
<DepositDialog />
|
|
30
|
+
<WithdrawDialog />
|
|
31
|
+
</StridgeProvider>;
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Open or close the dialogs with `useDeposit().open()` / `useWithdraw().open()`. Headless integrators render their own UI via `useDeposit()`, `useDepositState()`, `useDepositSnapshot()` and the withdraw mirrors — the root entry ships no UI, so the headless bundle stays clean.
|
|
35
|
+
|
|
36
|
+
## Documentation
|
|
37
|
+
|
|
38
|
+
Full setup, configuration, and integration patterns at [docs.stridge.com](https://docs.stridge.com). A working integration runs at [demo.stridge.com](https://demo.stridge.com).
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
MIT © Stridge Foundation.
|
package/dist/kit/package.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=`0.1.0-alpha.
|
|
1
|
+
var e=`0.1.0-alpha.2`;export{e as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stridge/kit",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"vitest": "4.1.2",
|
|
123
123
|
"wagmi": "3.6.3",
|
|
124
124
|
"@stridge/kit-typescript": "0.0.0",
|
|
125
|
-
"@stridge/utils": "0.1.0-alpha.
|
|
125
|
+
"@stridge/utils": "0.1.0-alpha.2"
|
|
126
126
|
},
|
|
127
127
|
"dependencies": {
|
|
128
128
|
"@base-ui/react": "1.4.0",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"@stylexjs/stylex": "^0.18.3",
|
|
133
133
|
"cuer": "0.0.3",
|
|
134
134
|
"motion": "^12.38.0",
|
|
135
|
-
"@stridge/sdk": "0.1.0-alpha.
|
|
135
|
+
"@stridge/sdk": "0.1.0-alpha.2"
|
|
136
136
|
},
|
|
137
137
|
"scripts": {
|
|
138
138
|
"build": "pnpm run i18n:compile && tsdown",
|