@byline/host-tanstack-start 1.0.3 → 1.0.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.
|
@@ -43,7 +43,7 @@ function padRows(value) {
|
|
|
43
43
|
}
|
|
44
44
|
const HistoryView = ({ collectionDefinition, adminConfig, data, workflowStatuses, currentDocument, contentLocales, defaultContentLocale })=>{
|
|
45
45
|
const { id, collection } = useParams({
|
|
46
|
-
from: '/
|
|
46
|
+
from: '/_byline/admin/collections/$collection/$id/history'
|
|
47
47
|
});
|
|
48
48
|
const navigate = useNavigate();
|
|
49
49
|
const columns = adminConfig?.columns || [];
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* `createFileRoute(path)({...})`. The host's route file collapses to:
|
|
14
14
|
*
|
|
15
15
|
* import { createCollectionListRoute } from '@byline/host-tanstack-start/routes'
|
|
16
|
-
* export const Route = createCollectionListRoute('/
|
|
16
|
+
* export const Route = createCollectionListRoute('/_byline/admin/collections/$collection/')
|
|
17
17
|
*
|
|
18
18
|
* Routes that need host-specific data (i18n bridge component, content
|
|
19
19
|
* locales) take a second `opts` argument.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.5",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.9.0"
|
|
9
9
|
},
|
|
@@ -101,19 +101,19 @@
|
|
|
101
101
|
"react-swipeable": "^7.0.2",
|
|
102
102
|
"uuid": "^14.0.0",
|
|
103
103
|
"zod": "^4.4.2",
|
|
104
|
-
"@byline/admin": "0.10.
|
|
105
|
-
"@byline/
|
|
106
|
-
"@byline/
|
|
107
|
-
"@byline/
|
|
108
|
-
"@byline/
|
|
104
|
+
"@byline/admin": "0.10.5",
|
|
105
|
+
"@byline/auth": "0.10.5",
|
|
106
|
+
"@byline/ui": "0.10.5",
|
|
107
|
+
"@byline/client": "0.10.5",
|
|
108
|
+
"@byline/core": "0.10.5"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
111
|
"@tanstack/react-router": "^1.167.0",
|
|
112
112
|
"@tanstack/react-start": "^1.167.0",
|
|
113
113
|
"react": "^19.0.0",
|
|
114
114
|
"react-dom": "^19.0.0",
|
|
115
|
-
"@byline/db-postgres": "0.10.
|
|
116
|
-
"@byline/storage-local": "0.10.
|
|
115
|
+
"@byline/db-postgres": "0.10.5",
|
|
116
|
+
"@byline/storage-local": "0.10.5"
|
|
117
117
|
},
|
|
118
118
|
"peerDependenciesMeta": {
|
|
119
119
|
"@byline/db-postgres": {
|
|
@@ -139,8 +139,8 @@
|
|
|
139
139
|
"typescript": "6.0.3",
|
|
140
140
|
"typescript-plugin-css-modules": "^5.2.0",
|
|
141
141
|
"vitest": "^4.1.5",
|
|
142
|
-
"@byline/
|
|
143
|
-
"@byline/
|
|
142
|
+
"@byline/storage-local": "0.10.5",
|
|
143
|
+
"@byline/db-postgres": "0.10.5"
|
|
144
144
|
},
|
|
145
145
|
"publishConfig": {
|
|
146
146
|
"access": "public",
|
|
@@ -104,7 +104,7 @@ export const HistoryView = ({
|
|
|
104
104
|
defaultContentLocale: string
|
|
105
105
|
}) => {
|
|
106
106
|
const { id, collection } = useParams({
|
|
107
|
-
from: '/
|
|
107
|
+
from: '/_byline/admin/collections/$collection/$id/history',
|
|
108
108
|
})
|
|
109
109
|
const navigate = useNavigate()
|
|
110
110
|
const columns = adminConfig?.columns || []
|
|
@@ -39,7 +39,7 @@ import type React from 'react'
|
|
|
39
39
|
import { useRouteContext } from '@tanstack/react-router'
|
|
40
40
|
|
|
41
41
|
/** Route id of the admin shell — the layout route that owns `user` on context. */
|
|
42
|
-
const ADMIN_ROUTE_ID = '/
|
|
42
|
+
const ADMIN_ROUTE_ID = '/_byline/admin' as const
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* `true` when the current admin holds the given ability (or is a
|
package/src/routes/index.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* `createFileRoute(path)({...})`. The host's route file collapses to:
|
|
15
15
|
*
|
|
16
16
|
* import { createCollectionListRoute } from '@byline/host-tanstack-start/routes'
|
|
17
|
-
* export const Route = createCollectionListRoute('/
|
|
17
|
+
* export const Route = createCollectionListRoute('/_byline/admin/collections/$collection/')
|
|
18
18
|
*
|
|
19
19
|
* Routes that need host-specific data (i18n bridge component, content
|
|
20
20
|
* locales) take a second `opts` argument.
|