@ar.io/wayfinder-react 1.0.23 → 1.0.24
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 +4 -15
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,10 +6,10 @@ React components and hooks for the WayFinder project, making it easy to integrat
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
# Using npm
|
|
9
|
-
npm install @ar.io/wayfinder-react
|
|
9
|
+
npm install @ar.io/wayfinder-react
|
|
10
10
|
|
|
11
11
|
# Using yarn
|
|
12
|
-
yarn add @ar.io/wayfinder-react
|
|
12
|
+
yarn add @ar.io/wayfinder-react
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
@@ -18,22 +18,11 @@ yarn add @ar.io/wayfinder-react @ar.io/wayfinder-core
|
|
|
18
18
|
|
|
19
19
|
```tsx
|
|
20
20
|
import { WayfinderProvider } from '@ar.io/wayfinder-react';
|
|
21
|
-
import { NetworkGatewaysProvider } from '@ar.io/wayfinder-core';
|
|
22
|
-
import { ARIO } from '@ar.io/sdk';
|
|
23
21
|
|
|
24
|
-
// Wrap your app with the WayfinderProvider
|
|
25
22
|
function App() {
|
|
26
23
|
return (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
// https://github.com/ar-io/wayfinder/tree/alpha/packages/wayfinder-core#custom-configuration
|
|
30
|
-
// by default, the provider will cache the gateways in local storage for 1 hour to avoid unnecessary network requests
|
|
31
|
-
gatewaysProvider={new NetworkGatewaysProvider({
|
|
32
|
-
ario: ARIO.mainnet(),
|
|
33
|
-
limit: 10,
|
|
34
|
-
sortBy: 'operatorStake',
|
|
35
|
-
})}
|
|
36
|
-
>
|
|
24
|
+
// Provide custom configuration if needed - https://github.com/ar-io/wayfinder/tree/alpha/packages/wayfinder-core#custom-configuration
|
|
25
|
+
<WayfinderProvider>
|
|
37
26
|
<YourApp />
|
|
38
27
|
</WayfinderProvider>
|
|
39
28
|
);
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ar.io/wayfinder-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "React components for WayFinder",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"format:check": "biome format --config-path=../../biome.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@ar.io/wayfinder-core": "1.7.
|
|
39
|
+
"@ar.io/wayfinder-core": "1.7.2",
|
|
40
40
|
"react": "^18.2.0",
|
|
41
41
|
"react-dom": "^18.2.0"
|
|
42
42
|
},
|