@paykit-sdk/react 1.1.0-alpha.3 → 1.1.0-alpha.4
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 +5 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,8 +32,9 @@ function App() {
|
|
|
32
32
|
```tsx
|
|
33
33
|
import * as React from 'react';
|
|
34
34
|
import { useCustomer, useSubscription, useCheckout } from '@paykit-sdk/react';
|
|
35
|
+
import { CustomerView } from './customer-view';
|
|
35
36
|
|
|
36
|
-
|
|
37
|
+
const CustomerDashboard = ({ customerId }: { customerId: string }) => {
|
|
37
38
|
const { retrieve, create, update } = useCustomer();
|
|
38
39
|
|
|
39
40
|
React.useEffect(() => {
|
|
@@ -45,7 +46,7 @@ function CustomerDashboard() {
|
|
|
45
46
|
if (retrieve.error) return <Error error={retrieve.error} />;
|
|
46
47
|
|
|
47
48
|
return <CustomerView customer={retrieve.data} />;
|
|
48
|
-
}
|
|
49
|
+
};
|
|
49
50
|
```
|
|
50
51
|
|
|
51
52
|
## Available Hooks
|
|
@@ -60,8 +61,8 @@ Works with any PayKit provider including Stripe, Polar, Gumroad, and more.
|
|
|
60
61
|
|
|
61
62
|
## Documentation
|
|
62
63
|
|
|
63
|
-
- [React Documentation](https://
|
|
64
|
-
- [PayKit Documentation](https://
|
|
64
|
+
- [React Documentation](https://usepaykit.dev/docs/react)
|
|
65
|
+
- [PayKit Documentation](https://usepaykit.dev)
|
|
65
66
|
- [Production Examples](https://usepaykit.dev/docs/examples)
|
|
66
67
|
|
|
67
68
|
## TypeScript Support
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paykit-sdk/react",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=16.8.0",
|
|
28
28
|
"react-dom": ">=16.8.0",
|
|
29
|
-
"@paykit-sdk/core": ">=1.1.
|
|
29
|
+
"@paykit-sdk/core": ">=1.1.1-alpha.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@swc/core": "^1.12.9",
|