@kernhq/module-quire 0.7.1 → 0.7.3
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/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernhq/module-quire",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "Kern Quire: collaborative documents, spaces and page trees",
|
|
5
|
-
"homepage": "https://
|
|
5
|
+
"homepage": "https://github.com/KernAIO/module-quire#readme",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/KernAIO/
|
|
11
|
-
"directory": "packages/quire"
|
|
10
|
+
"url": "git+https://github.com/KernAIO/module-quire.git"
|
|
12
11
|
},
|
|
13
12
|
"publishConfig": {
|
|
14
13
|
"access": "public"
|
|
@@ -68,6 +67,8 @@
|
|
|
68
67
|
}
|
|
69
68
|
},
|
|
70
69
|
"devDependencies": {
|
|
70
|
+
"@biomejs/biome": "^2.0.0",
|
|
71
|
+
"@changesets/cli": "^2.27.0",
|
|
71
72
|
"@kernhq/tsconfig": "^0.1.0",
|
|
72
73
|
"@kernhq/ui": "^0.8.0",
|
|
73
74
|
"@tanstack/svelte-query": "^6.1.0",
|
|
@@ -80,11 +81,17 @@
|
|
|
80
81
|
"typescript": "~5.9.3",
|
|
81
82
|
"vitest": "^4.0.0"
|
|
82
83
|
},
|
|
84
|
+
"engines": {
|
|
85
|
+
"node": ">=24"
|
|
86
|
+
},
|
|
83
87
|
"scripts": {
|
|
84
88
|
"build": "tsc -p tsconfig.json",
|
|
85
89
|
"dev": "tsc -p tsconfig.json --watch --preserveWatchOutput",
|
|
86
90
|
"typecheck": "tsc -p tsconfig.json --noEmit && svelte-check --tsconfig ./tsconfig.client.json --threshold error",
|
|
87
91
|
"test": "vitest run",
|
|
88
|
-
"db:generate": "drizzle-kit generate"
|
|
92
|
+
"db:generate": "drizzle-kit generate",
|
|
93
|
+
"lint": "biome check . && node scripts/check-ranges.mjs package.json",
|
|
94
|
+
"format": "biome check --write .",
|
|
95
|
+
"changeset": "changeset"
|
|
89
96
|
}
|
|
90
97
|
}
|
|
@@ -27,9 +27,20 @@ import PageTreeRow from './PageTreeRow.svelte'
|
|
|
27
27
|
const api = getQuireApi()
|
|
28
28
|
const client = useQueryClient()
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
/**
|
|
31
|
+
* The shell passes these — `SidebarProps` — and they are the ones to use.
|
|
32
|
+
*
|
|
33
|
+
* Reading `navigation` here instead looks equivalent and is not: the shell fills that singleton
|
|
34
|
+
* from an `$effect`, which runs *after* the first render, so the sidebar's first paint would query
|
|
35
|
+
* with an empty workspace id and show nothing.
|
|
36
|
+
*/
|
|
37
|
+
interface Props {
|
|
38
|
+
workspaceId: string
|
|
39
|
+
workspaceSlug: string
|
|
40
|
+
pathname: string
|
|
41
|
+
segment: string
|
|
42
|
+
}
|
|
43
|
+
const { workspaceId, workspaceSlug }: Props = $props()
|
|
33
44
|
|
|
34
45
|
const spaceKeyInUrl = $derived(navigation.params.space ?? null)
|
|
35
46
|
const activePageId = $derived(navigation.params.page ?? null)
|