@uniweb/build 0.76.0 → 0.76.1
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 +5 -5
- package/src/prerender.js +4 -1
- package/src/uwx/data-schema.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "0.76.
|
|
3
|
+
"version": "0.76.1",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"@uniweb/content-reader": "^1.2.8",
|
|
61
61
|
"@uniweb/content-writer": "^0.3.4",
|
|
62
62
|
"@uniweb/projections": "^0.7.14",
|
|
63
|
+
"@uniweb/schemas": "^0.12.0",
|
|
63
64
|
"@uniweb/semantic-parser": "^1.5.1",
|
|
64
|
-
"@uniweb/schemas": "^0.11.0",
|
|
65
65
|
"@uniweb/theming": "^0.2.0"
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
|
68
|
-
"@uniweb/runtime": "^0.29.
|
|
68
|
+
"@uniweb/runtime": "^0.29.1"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"@tailwindcss/vite": "^4.0.0",
|
|
75
75
|
"@vitejs/plugin-react": "^4.0.0 || ^5.0.0",
|
|
76
76
|
"vite-plugin-svgr": "^4.0.0",
|
|
77
|
-
"@uniweb/runtime": "^0.29.
|
|
78
|
-
"@uniweb/core": "^0.37.
|
|
77
|
+
"@uniweb/runtime": "^0.29.1",
|
|
78
|
+
"@uniweb/core": "^0.37.1"
|
|
79
79
|
},
|
|
80
80
|
"peerDependenciesMeta": {
|
|
81
81
|
"vite": {
|
package/src/prerender.js
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
deriveCacheKey,
|
|
24
24
|
evaluateQuery,
|
|
25
25
|
} from '@uniweb/core'
|
|
26
|
-
import { recordTitle, routePatternToRegex, routeFieldOf } from '@uniweb/core/route-match'
|
|
26
|
+
import { recordTitle, recordImage, routePatternToRegex, routeFieldOf } from '@uniweb/core/route-match'
|
|
27
27
|
import DataStore from '@uniweb/core/datastore'
|
|
28
28
|
import { executeFetch, mergeDataIntoContent, toFetchList } from './site/data-fetcher.js'
|
|
29
29
|
import { createFileTransport } from './site/file-transport.js'
|
|
@@ -473,6 +473,9 @@ export function expandDynamicPages(pages, fetched, onProgress = () => {}, stats
|
|
|
473
473
|
const title = recordTitle(item)
|
|
474
474
|
if (title) concretePage.title = title
|
|
475
475
|
if (item.description || item.excerpt) concretePage.description = item.description || item.excerpt
|
|
476
|
+
// ⭐ And its picture is what a link to the page shows (`recordImage`) — the SPA's rule.
|
|
477
|
+
const image = recordImage(item)
|
|
478
|
+
if (image) concretePage.seo = { ...(concretePage.seo || {}), image }
|
|
476
479
|
|
|
477
480
|
expandedPages.push(concretePage)
|
|
478
481
|
}
|
package/src/uwx/data-schema.js
CHANGED
|
@@ -112,7 +112,7 @@ export function isContentBodyField(field) {
|
|
|
112
112
|
* @param {(ref: string) => string} [opts.resolveOptions] - maps an `options`
|
|
113
113
|
* (item_ref) ref to its full `@org/model/<section>` path. Falls back to
|
|
114
114
|
* `resolveName` (model only) when not supplied.
|
|
115
|
-
* @returns {Object} the declaration (`{ name, label?, plural?, description?,
|
|
115
|
+
* @returns {Object} the declaration (`{ name, label?, plural?, icon?, description?,
|
|
116
116
|
* source_locale?, linkable?, sections }`).
|
|
117
117
|
*/
|
|
118
118
|
export function toDataSchemaDeclaration(normalized, { name, resolveName, resolveOptions } = {}) {
|
|
@@ -137,6 +137,9 @@ export function toDataSchemaDeclaration(normalized, { name, resolveName, resolve
|
|
|
137
137
|
const decl = { name }
|
|
138
138
|
if (normalized.label) decl.label = normalized.label
|
|
139
139
|
if (normalized.plural) decl.plural = normalized.plural
|
|
140
|
+
// The type's icon — a framework icon name (`lu-user`), sent as written; the registry
|
|
141
|
+
// stores it verbatim and a consumer resolves it. Since 2026-10-05 [Diego].
|
|
142
|
+
if (normalized.icon) decl.icon = normalized.icon
|
|
140
143
|
if (normalized.description) decl.description = normalized.description
|
|
141
144
|
if (normalized.sourceLocale) decl.source_locale = normalized.sourceLocale
|
|
142
145
|
// ⛔ No `creatable_by`: retired 2026-09-23 — Models are open, and `@uniweb/schemas`
|