@geophrase/react 1.5.0 → 1.5.1

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 +3 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -84,12 +84,12 @@ The component calling `useGeophrase` relies on browser APIs, so it must be a **C
84
84
 
85
85
  ### TypeScript
86
86
 
87
- The hook is fully typed. Import `GeophraseAddress` and `GeophraseToken` from `@geophrase/core` to type `onSuccess` results:
87
+ The hook is fully typed. Import `GeophraseAddress` and `GeophraseRequestId` from `@geophrase/core` to type `onSuccess` results:
88
88
 
89
89
  ```tsx
90
- import { GeophraseAddress, GeophraseToken } from '@geophrase/core';
90
+ import { GeophraseAddress, GeophraseRequestId } from '@geophrase/core';
91
91
 
92
- const [result, setResult] = useState<GeophraseAddress | GeophraseToken | null>(null);
92
+ const [result, setResult] = useState<GeophraseAddress | GeophraseRequestId | null>(null);
93
93
  ```
94
94
 
95
95
  ## What the hook returns
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geophrase/react",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "React & Next.js hook for the Geophrase address picker. Drop-in widget that captures structured Indian addresses with coordinates to reduce RTO.",
5
5
  "license": "MIT",
6
6
  "author": "Geophrase",
@@ -44,7 +44,7 @@
44
44
  "react": ">=16.8.0"
45
45
  },
46
46
  "dependencies": {
47
- "@geophrase/core": "^1.5.0"
47
+ "@geophrase/core": "^1.5.1"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"