@namehash/namehash-ui 1.13.1 → 1.14.0
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/dist/index.cjs +548 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +720 -23
- package/dist/index.d.ts +720 -23
- package/dist/index.js +543 -150
- package/dist/index.js.map +1 -1
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
The contained UI components are for reuse across multiple apps developed by the NameHash Labs team, but are highly opinionated according to our specific apps and therefore aren't intended for the general public.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This package also exports various React providers and hooks (e.g. `EnsNodeProvider`, `useRecords`, `usePrimaryName`, `usePrimaryNames`, `useResolvedIdentity`, `useIndexingStatus`, `useRegistrarActions`, `useNameTokens`, `useSwrQuery`, etc.).
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install @namehash/namehash-ui @
|
|
10
|
+
npm install @namehash/namehash-ui @tanstack/react-query sonner
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
> [!NOTE]
|
|
14
|
+
> `@tanstack/react-query` and `sonner` are peer dependencies. `@tanstack/react-query` is required when using the hooks/providers exported from this package; `sonner` is only required for the `CopyButton` component. Depending on which components you use, you may not need both installed.
|
|
14
15
|
|
|
15
16
|
## Setup
|
|
16
17
|
|
|
@@ -20,4 +21,4 @@ Make sure you import the `styles.css` file somewhere in your app:
|
|
|
20
21
|
|
|
21
22
|
```tsx
|
|
22
23
|
import "@namehash/namehash-ui/styles.css";
|
|
23
|
-
```
|
|
24
|
+
```
|