@uniweb/build 0.67.0 → 0.67.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 +7 -7
- package/src/site/content-collector.js +9 -8
- package/src/uwx/site.js +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "0.67.
|
|
3
|
+
"version": "0.67.1",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"sharp": "^0.35.3",
|
|
59
59
|
"yaml": "^2.5.0",
|
|
60
60
|
"@uniweb/content-reader": "^1.2.5",
|
|
61
|
+
"@uniweb/content-writer": "^0.3.4",
|
|
62
|
+
"@uniweb/schemas": "^0.8.1",
|
|
61
63
|
"@uniweb/semantic-parser": "^1.4.1",
|
|
62
64
|
"@uniweb/projections": "^0.7.7",
|
|
63
|
-
"@uniweb/
|
|
64
|
-
"@uniweb/theming": "^0.1.15",
|
|
65
|
-
"@uniweb/schemas": "^0.8.1"
|
|
65
|
+
"@uniweb/theming": "^0.1.15"
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
|
68
|
-
"@uniweb/runtime": "^0.27.
|
|
68
|
+
"@uniweb/runtime": "^0.27.10"
|
|
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/core": "^0.32.
|
|
78
|
-
"@uniweb/runtime": "^0.27.
|
|
77
|
+
"@uniweb/core": "^0.32.2",
|
|
78
|
+
"@uniweb/runtime": "^0.27.10"
|
|
79
79
|
},
|
|
80
80
|
"peerDependenciesMeta": {
|
|
81
81
|
"vite": {
|
|
@@ -1011,14 +1011,16 @@ async function processMarkdownFile(filePath, id, siteRoot, defaultStableId = nul
|
|
|
1011
1011
|
|
|
1012
1012
|
// `query`, `fetch` and `data` are never params: `query:` / `fetch:` declare the
|
|
1013
1013
|
// section's own data, and a leftover `data:` is refused (`declaredFetch`).
|
|
1014
|
-
|
|
1015
|
-
// child sections
|
|
1016
|
-
//
|
|
1017
|
-
// `
|
|
1018
|
-
|
|
1019
|
-
|
|
1014
|
+
const { type, preset, input, props, fetch, query, data, id: frontmatterId, ...params } = frontMatter
|
|
1015
|
+
// ⭐ `grid` — the layout of the section's child sections, `3` or `'40/60'` [Diego,
|
|
1016
|
+
// 2026-09-27] — is a name framework reserves, and it stays in the params like
|
|
1017
|
+
// `background`: that is where it is stored and synced, with no field of its own.
|
|
1018
|
+
// `@uniweb/core` lifts it to `block.grid` (a component never receives it as a param)
|
|
1019
|
+
// and kit's `ChildGrid` lays the children out. ⛔ For a few hours on 2026-09-27 it was
|
|
1020
|
+
// taken out of the params into a field the sync wire could not carry.
|
|
1021
|
+
if (params.grid !== undefined && !parseGrid(params.grid)) {
|
|
1020
1022
|
console.warn(
|
|
1021
|
-
`[content-collector] ${relative(siteRoot, filePath)}: grid: ${JSON.stringify(grid)} is not a layout — ` +
|
|
1023
|
+
`[content-collector] ${relative(siteRoot, filePath)}: grid: ${JSON.stringify(params.grid)} is not a layout — ` +
|
|
1022
1024
|
`write a column count (grid: 3) or relative widths (grid: '40/60'). The component's own layout applies.`
|
|
1023
1025
|
)
|
|
1024
1026
|
}
|
|
@@ -1052,7 +1054,6 @@ async function processMarkdownFile(filePath, id, siteRoot, defaultStableId = nul
|
|
|
1052
1054
|
params: { ...params, ...props },
|
|
1053
1055
|
content: proseMirrorContent,
|
|
1054
1056
|
fetch: parseFetchConfig(resolvedFetch, relative(siteRoot, filePath), { level: 'section' }),
|
|
1055
|
-
...(grid !== undefined ? { grid } : {}),
|
|
1056
1057
|
subsections: []
|
|
1057
1058
|
}
|
|
1058
1059
|
|
package/src/uwx/site.js
CHANGED
|
@@ -316,16 +316,6 @@ function mapSectionData(section) {
|
|
|
316
316
|
setIf(data, 'fetch', section.fetch ?? undefined)
|
|
317
317
|
setIf(data, 'background', background)
|
|
318
318
|
setIf(data, 'theme_override', themeOverride)
|
|
319
|
-
// ⛔ `grid` — the section's layout for its children — is NOT SENT YET: it is a new
|
|
320
|
-
// field, and the store refuses a whole push carrying a key it has not declared
|
|
321
|
-
// (kb/framework/build/uwx-format.md § A page section's fields). It goes on the wire
|
|
322
|
-
// once backend declares it; until then a static build renders it and the file keeps it.
|
|
323
|
-
if (section.grid !== undefined) {
|
|
324
|
-
console.warn(
|
|
325
|
-
`[uwx] section ${section.stableId ?? section.id}: grid: ${JSON.stringify(section.grid)} is not sent — ` +
|
|
326
|
-
`the backend does not store a section's grid yet. It renders on a static build; the file keeps it.`
|
|
327
|
-
)
|
|
328
|
-
}
|
|
329
319
|
return data
|
|
330
320
|
}
|
|
331
321
|
|