@uniweb/build 0.10.1 → 0.10.2
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"@uniweb/theming": "0.1.3"
|
|
58
58
|
},
|
|
59
59
|
"optionalDependencies": {
|
|
60
|
-
"@uniweb/
|
|
60
|
+
"@uniweb/content-reader": "1.1.4",
|
|
61
61
|
"@uniweb/schemas": "0.2.1",
|
|
62
|
-
"@uniweb/
|
|
62
|
+
"@uniweb/runtime": "0.8.2"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@tailwindcss/vite": "^4.0.0",
|
|
69
69
|
"@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
|
|
70
70
|
"vite-plugin-svgr": "^4.0.0",
|
|
71
|
-
"@uniweb/core": "0.7.
|
|
71
|
+
"@uniweb/core": "0.7.1"
|
|
72
72
|
},
|
|
73
73
|
"peerDependenciesMeta": {
|
|
74
74
|
"vite": {
|
|
@@ -103,6 +103,15 @@ function parseCollectionConfig(name, config) {
|
|
|
103
103
|
// automatically on dynamic-route pages (entity-store routes the
|
|
104
104
|
// singular detail there) or via the kit's useEntityDetail hook.
|
|
105
105
|
deferred: Array.isArray(config.deferred) ? config.deferred.slice() : null,
|
|
106
|
+
// `detailUrl:` names the per-record endpoint pattern for API-backed
|
|
107
|
+
// collections (where the build emits no per-record files because
|
|
108
|
+
// there are no on-disk source files to materialize). Used by the
|
|
109
|
+
// runtime's auto-detail injection and the useEntityDetail kit hook.
|
|
110
|
+
// Pattern uses {slug} as the placeholder; substitution at runtime
|
|
111
|
+
// pulls from the dynamic-route param (entity-store) or the record's
|
|
112
|
+
// slug field (useEntityDetail). Markdown-backed collections leave
|
|
113
|
+
// this null and get the static-file default /data/<name>/<slug>.json.
|
|
114
|
+
detailUrl: typeof config.detailUrl === 'string' ? config.detailUrl : null,
|
|
106
115
|
// `queryable:` declares the queryable surface — which fields a
|
|
107
116
|
// foundation can offer for filtering UI, with their type and
|
|
108
117
|
// type-specific metadata (enum options, range bounds). Foundations
|