@uniweb/build 0.72.0 → 0.73.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/package.json +2 -2
- package/src/uwx/site-project.js +9 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.73.0",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"@uniweb/content-reader": "^1.2.7",
|
|
61
61
|
"@uniweb/content-writer": "^0.3.4",
|
|
62
62
|
"@uniweb/projections": "^0.7.11",
|
|
63
|
-
"@uniweb/semantic-parser": "^1.4.1",
|
|
64
63
|
"@uniweb/schemas": "^0.9.1",
|
|
64
|
+
"@uniweb/semantic-parser": "^1.4.1",
|
|
65
65
|
"@uniweb/theming": "^0.2.0"
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
package/src/uwx/site-project.js
CHANGED
|
@@ -387,7 +387,7 @@ export function siteInfoToConfig({ document, siteRoot, backend = null, sourceLoc
|
|
|
387
387
|
* Project one section `$`-record (from `page_sections` / `layout_sections`) to a
|
|
388
388
|
* section `.md` file — the inverse of site.js `mapSectionData`. Frontmatter is
|
|
389
389
|
* `type` + `hidden` + the flat `params` (`background` and `theme` among them) +
|
|
390
|
-
* the data declaration (`params.fetch
|
|
390
|
+
* the data declaration (`params.fetch`) + `id` (`stable_id`);
|
|
391
391
|
* the body is the section's content serialized to markdown. Idempotent.
|
|
392
392
|
*
|
|
393
393
|
* Note: `$children` (a section's child sections) are NOT written here — the page
|
|
@@ -406,10 +406,11 @@ export function siteInfoToConfig({ document, siteRoot, backend = null, sourceLoc
|
|
|
406
406
|
export function sectionRecordToFile({ filePath, record, sourceLocale = LOCALIZED_FIELD_ASSUMPTION.defaultSourceLocale, collector, freeformRelPath, freeformCandidates = null, writeId = true, context = null }) {
|
|
407
407
|
// ⛔ A stored `preset` or `input` is not written back: neither has an effect, and the build
|
|
408
408
|
// would only warn about it (2026-09-27).
|
|
409
|
-
// ⛔ No `background` / `theme_override` / `insets`: the site-content Model dropped all
|
|
410
|
-
// (2026-09-28), with a stored background
|
|
411
|
-
// filled in where `params` lacked the key, and a stored
|
|
412
|
-
|
|
409
|
+
// ⛔ No `background` / `theme_override` / `insets` / `fetch`: the site-content Model dropped all
|
|
410
|
+
// four from a section (2026-09-28), with a stored background, theme and data declaration copied
|
|
411
|
+
// into `params`. Until then a field filled in where `params` lacked the key, and a stored
|
|
412
|
+
// `insets[]` was re-inlined into the body. (A PAGE's `fetch` is its own field — `pageRecordToYml`.)
|
|
413
|
+
const { type, stable_id, hidden, params, content } = record || {}
|
|
413
414
|
|
|
414
415
|
// A localized `content` field unwraps to the source-locale doc for the body; its
|
|
415
416
|
// target-locale structural maps are captured into the locales/ collector, and any
|
|
@@ -429,11 +430,9 @@ export function sectionRecordToFile({ filePath, record, sourceLocale = LOCALIZED
|
|
|
429
430
|
// Invert the build's resolution rather than copy it — see fetch-shapes.js. A new
|
|
430
431
|
// file gets `query:` for a declaration of names alone; a section that declares
|
|
431
432
|
// its data locally keeps it (`writeSectionFile`, the declaration keys).
|
|
432
|
-
// ⭐ From `params.fetch`
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
if (ownFetch !== undefined) {
|
|
436
|
-
const { key, value } = authorableDeclaration(ownFetch)
|
|
433
|
+
// ⭐ From `params.fetch` — where a section carries its data since 2026-09-28.
|
|
434
|
+
if (paramFetch !== undefined) {
|
|
435
|
+
const { key, value } = authorableDeclaration(paramFetch)
|
|
437
436
|
frontmatter[key] = value
|
|
438
437
|
}
|
|
439
438
|
// `id:` only where the file's name does not already give it (`writeId`, `pageSectionsToFiles`).
|