@ar.io/wayfinder-react 1.0.19 → 1.0.20

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 CHANGED
@@ -2,12 +2,6 @@
2
2
 
3
3
  React components and hooks for the WayFinder project, making it easy to integrate AR.IO gateway routing in React applications.
4
4
 
5
- ## Features
6
-
7
- - React components for displaying and interacting with AR.IO gateways
8
- - Hooks for gateway selection and routing
9
- - Integration with the WayFinder core library
10
-
11
5
  ## Installation
12
6
 
13
7
  ```bash
@@ -23,15 +17,8 @@ yarn add @ar.io/wayfinder-react @ar.io/wayfinder-core
23
17
  ### Initial Setup
24
18
 
25
19
  ```tsx
26
- import {
27
- WayfinderProvider,
28
- useWayfinderRequest,
29
- useWayfinderUrl,
30
- } from '@ar.io/wayfinder-react';
31
- import {
32
- NetworkGatewaysProvider,
33
- LocalStorageGatewaysProvider,
34
- } from '@ar.io/wayfinder-core';
20
+ import { WayfinderProvider } from '@ar.io/wayfinder-react';
21
+ import { NetworkGatewaysProvider } from '@ar.io/wayfinder-core';
35
22
  import { ARIO } from '@ar.io/sdk';
36
23
 
37
24
  // Wrap your app with the WayfinderProvider
@@ -53,7 +40,7 @@ function App() {
53
40
  }
54
41
  ```
55
42
 
56
- ### Hooks
43
+ ## Hooks
57
44
 
58
45
  ### useWayfinderUrl
59
46
 
@@ -81,21 +68,12 @@ function WayfinderImage({ txId }: { txId: string }) {
81
68
  }
82
69
  ```
83
70
 
84
- #### useWayfinderRequest
71
+ ### useWayfinderRequest
85
72
 
86
73
  Fetch the data via wayfinder, and optionally verify the data.
87
74
 
88
75
  ```tsx
89
- import {
90
- WayfinderProvider,
91
- useWayfinderRequest,
92
- useWayfinderUrl,
93
- } from '@ar.io/wayfinder-react';
94
- import {
95
- NetworkGatewaysProvider,
96
- LocalStorageGatewaysProvider,
97
- } from '@ar.io/wayfinder-core';
98
- import { ARIO } from '@ar.io/sdk';
76
+ import { useWayfinderRequest } from '@ar.io/wayfinder-react';
99
77
 
100
78
  function WayfinderData({ txId }: { txId: string }) {
101
79
  const request = useWayfinderRequest();
package/dist/version.d.ts CHANGED
@@ -14,4 +14,4 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export declare const WAYFINDER_REACT_VERSION = "v1.0.19";
17
+ export declare const WAYFINDER_REACT_VERSION = "v1.0.20";
package/dist/version.js CHANGED
@@ -14,4 +14,4 @@
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- export const WAYFINDER_REACT_VERSION = 'v1.0.19';
17
+ export const WAYFINDER_REACT_VERSION = 'v1.0.20';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/wayfinder-react",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "React components for WayFinder",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "format:check": "biome format --config-path=../../biome.json"
32
32
  },
33
33
  "dependencies": {
34
- "@ar.io/wayfinder-core": "1.4.3",
34
+ "@ar.io/wayfinder-core": "1.5.0",
35
35
  "react": "^18.2.0",
36
36
  "react-dom": "^18.2.0"
37
37
  },