@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.
Files changed (2) hide show
  1. package/README.md +5 -4
  2. 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
- function CustomerDashboard() {
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://paykit.dev/docs/react)
64
- - [PayKit Documentation](https://paykit.dev)
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",
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.0"
29
+ "@paykit-sdk/core": ">=1.1.1-alpha.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@swc/core": "^1.12.9",