@vryzel/file-next-headless 0.4.4 → 0.4.5
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 +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Headless React hooks for file-next. No UI, no Tailwind, no Radix. You inject ser
|
|
|
5
5
|
[Live demo](https://file-next-test-production.up.railway.app)
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pnpm add @vryzel/file-next-headless
|
|
8
|
+
pnpm add @vryzel/file-next @vryzel/file-next-headless
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Peer: `react`, `@vryzel/file-next`. Safe in Client Components — it never imports `server-only`.
|
|
@@ -21,7 +21,7 @@ import { listFiles } from "./actions"; // "use server"
|
|
|
21
21
|
export function Folder({ parentId }: { parentId: string | null }) {
|
|
22
22
|
const { status, files, error, refetch } = useFileBrowser({
|
|
23
23
|
listFiles,
|
|
24
|
-
tenantId: asTenantId("
|
|
24
|
+
tenantId: asTenantId("demo"),
|
|
25
25
|
parentId,
|
|
26
26
|
autoFetch: true,
|
|
27
27
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vryzel/file-next-headless",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "Headless React hooks for file-next
|
|
3
|
+
"version": "0.4.5",
|
|
4
|
+
"description": "Headless React hooks for file-next. Requires @vryzel/file-next. No UI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "https://github.com/Vryzel/file-next.git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react-dom": "^18.3.1",
|
|
42
42
|
"tsup": "^8.3.5",
|
|
43
43
|
"vitest": "^2.1.5",
|
|
44
|
-
"@vryzel/file-next": "0.4.
|
|
44
|
+
"@vryzel/file-next": "0.4.5"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"react",
|