@byline/host-tanstack-start 4.1.0 → 4.3.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/dist/admin-shell/collections/tree-list-projection.d.ts +1 -1
- package/dist/server-fns/collections/upload.js +1 -0
- package/package.json +13 -13
- package/src/admin-shell/collections/tree-list-projection.ts +1 -1
- package/src/server-fns/collections/tree.ts +1 -1
- package/src/server-fns/collections/upload.ts +1 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* Pure projection helpers for the drag-to-reorder / re-parent tree list
|
|
10
|
-
* (docs/04-collections/
|
|
10
|
+
* (docs/04-collections/04-document-trees.md, phase 2). Adapted from the dnd-kit "sortable tree"
|
|
11
11
|
* pattern: a pre-order flattened list where the drag's **horizontal** offset
|
|
12
12
|
* projects a target depth, clamped to what the neighbouring rows allow, and the
|
|
13
13
|
* target parent + sibling neighbours are resolved from that depth.
|
|
@@ -96,6 +96,7 @@ const uploadCollectionField = createServerFn({
|
|
|
96
96
|
logger,
|
|
97
97
|
defaultLocale: serverConfig.i18n.content.defaultLocale,
|
|
98
98
|
slugifier: serverConfig.slugifier,
|
|
99
|
+
filenameSlugifier: serverConfig.uploads?.filenameSlugifier,
|
|
99
100
|
requestContext: await getAdminRequestContext(),
|
|
100
101
|
imageProcessor: {
|
|
101
102
|
extractMeta: extractImageMeta,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"version": "4.
|
|
6
|
+
"version": "4.3.0",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.9.0"
|
|
9
9
|
},
|
|
@@ -118,13 +118,13 @@
|
|
|
118
118
|
"react-json-view-lite": "^2.5.0",
|
|
119
119
|
"react-swipeable": "^7.0.2",
|
|
120
120
|
"zod": "^4.4.3",
|
|
121
|
-
"@byline/
|
|
122
|
-
"@byline/
|
|
123
|
-
"@byline/
|
|
124
|
-
"@byline/
|
|
125
|
-
"@byline/i18n": "4.
|
|
126
|
-
"@byline/ui": "4.
|
|
127
|
-
"@byline/
|
|
121
|
+
"@byline/admin": "4.3.0",
|
|
122
|
+
"@byline/auth": "4.3.0",
|
|
123
|
+
"@byline/client": "4.3.0",
|
|
124
|
+
"@byline/core": "4.3.0",
|
|
125
|
+
"@byline/i18n": "4.3.0",
|
|
126
|
+
"@byline/ui": "4.3.0",
|
|
127
|
+
"@byline/ai": "4.3.0"
|
|
128
128
|
},
|
|
129
129
|
"peerDependencies": {
|
|
130
130
|
"@tanstack/react-router": "^1.167.0",
|
|
@@ -134,12 +134,12 @@
|
|
|
134
134
|
"vite": "^8.0.0"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
|
-
"@biomejs/biome": "2.5.
|
|
137
|
+
"@biomejs/biome": "2.5.4",
|
|
138
138
|
"@rsbuild/plugin-react": "^2.1.0",
|
|
139
139
|
"@rslib/core": "^0.23.2",
|
|
140
|
-
"@tanstack/react-router": "^1.170.
|
|
141
|
-
"@tanstack/react-start": "^1.168.
|
|
142
|
-
"@types/node": "^26.1.
|
|
140
|
+
"@tanstack/react-router": "^1.170.18",
|
|
141
|
+
"@tanstack/react-start": "^1.168.28",
|
|
142
|
+
"@types/node": "^26.1.1",
|
|
143
143
|
"@types/react": "19.2.17",
|
|
144
144
|
"@types/react-dom": "19.2.3",
|
|
145
145
|
"lightningcss": "^1.32.0",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"rimraf": "^6.1.3",
|
|
149
149
|
"typescript": "^7.0.2",
|
|
150
150
|
"typescript-plugin-css-modules": "^5.2.0",
|
|
151
|
-
"vite": "^8.1.
|
|
151
|
+
"vite": "^8.1.5",
|
|
152
152
|
"vitest": "^4.1.10"
|
|
153
153
|
},
|
|
154
154
|
"publishConfig": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Pure projection helpers for the drag-to-reorder / re-parent tree list
|
|
11
|
-
* (docs/04-collections/
|
|
11
|
+
* (docs/04-collections/04-document-trees.md, phase 2). Adapted from the dnd-kit "sortable tree"
|
|
12
12
|
* pattern: a pre-order flattened list where the drag's **horizontal** offset
|
|
13
13
|
* projects a target depth, clamped to what the neighbouring rows allow, and the
|
|
14
14
|
* target parent + sibling neighbours are resolved from that depth.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* behind the sidebar tree-placement widget. Thin wrappers over the
|
|
12
12
|
* `@byline/client` tree API, which asserts the actor ability, enforces the
|
|
13
13
|
* cycle / same-collection invariants, and fires the `afterTreeChange`
|
|
14
|
-
* invalidation hook. See docs/04-collections/
|
|
14
|
+
* invalidation hook. See docs/04-collections/04-document-trees.md.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { createServerFn } from '@tanstack/react-start'
|
|
@@ -198,6 +198,7 @@ export const uploadCollectionField = createServerFn({ method: 'POST' })
|
|
|
198
198
|
logger,
|
|
199
199
|
defaultLocale: serverConfig.i18n.content.defaultLocale,
|
|
200
200
|
slugifier: serverConfig.slugifier,
|
|
201
|
+
filenameSlugifier: serverConfig.uploads?.filenameSlugifier,
|
|
201
202
|
requestContext: await getAdminRequestContext(),
|
|
202
203
|
imageProcessor: {
|
|
203
204
|
extractMeta: extractImageMeta,
|