uniweb 0.87.2 → 0.87.3
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/backend/site-sync.js +11 -4
- package/src/framework-index.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "0.87.
|
|
3
|
+
"version": "0.87.3",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.0.0",
|
|
44
44
|
"@uniweb/core": "^0.38.0",
|
|
45
|
-
"@uniweb/schemas": "^0.13.0",
|
|
46
45
|
"@uniweb/kit": "^0.20.0",
|
|
46
|
+
"@uniweb/runtime": "^0.29.4",
|
|
47
|
+
"@uniweb/schemas": "^0.13.0",
|
|
47
48
|
"@uniweb/semantic-parser": "^1.5.1",
|
|
48
|
-
"@uniweb/content-writer": "^0.3.4"
|
|
49
|
-
"@uniweb/runtime": "^0.29.4"
|
|
49
|
+
"@uniweb/content-writer": "^0.3.4"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
+
"@uniweb/build": "^0.80.3",
|
|
52
53
|
"@uniweb/content-reader": "^1.2.8",
|
|
53
|
-
"@uniweb/build": "^0.80.2",
|
|
54
54
|
"@uniweb/semantic-parser": "^1.5.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
package/src/backend/site-sync.js
CHANGED
|
@@ -55,7 +55,8 @@ import {
|
|
|
55
55
|
backfillLinkUuids,
|
|
56
56
|
LINK_MODEL,
|
|
57
57
|
bankedFileUuids,
|
|
58
|
-
existingSectionFile
|
|
58
|
+
existingSectionFile,
|
|
59
|
+
layoutUnitFile
|
|
59
60
|
} from '@uniweb/build/uwx'
|
|
60
61
|
|
|
61
62
|
// First entity `$`-document out of a `.uwx` we produced or the backend served.
|
|
@@ -312,9 +313,15 @@ export function unitFilesOf(siteDir, unitPath) {
|
|
|
312
313
|
} catch {
|
|
313
314
|
/* no or unreadable site.yml — the defaults are right */
|
|
314
315
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
// A layout unit names its layout and area (`footer.md`, `default/header/1-alert.md`); the author may
|
|
317
|
+
// keep it as `default/footer.md` or `default/header/0-alert.md`, where a pull writes it back
|
|
318
|
+
// (`layoutUnitFile`). ⛔ Until 2026-10-08 it was looked up beside the unit's own path only.
|
|
319
|
+
if (unitPath.startsWith('layout/')) {
|
|
320
|
+
const base = join(siteDir, paths.layout || 'layout')
|
|
321
|
+
return [relative(siteDir, layoutUnitFile(base, unitPath.slice('layout/'.length)))]
|
|
322
|
+
}
|
|
323
|
+
if (unitPath.startsWith('pages/')) {
|
|
324
|
+
const rel = `${paths.pages || 'pages'}${unitPath.slice('pages'.length)}`
|
|
318
325
|
if (!rel.endsWith('.md') || existsSync(join(siteDir, rel))) return [rel]
|
|
319
326
|
const id = basename(rel, '.md')
|
|
320
327
|
const found = existingSectionFile(join(siteDir, dirname(rel)), id, id, { child: true })
|
package/src/framework-index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-10-
|
|
3
|
+
"generatedAt": "2026-10-08T17:12:48.725Z",
|
|
4
4
|
"packages": {
|
|
5
5
|
"@uniweb/api": {
|
|
6
6
|
"version": "0.7.0",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
]
|
|
11
11
|
},
|
|
12
12
|
"@uniweb/build": {
|
|
13
|
-
"version": "0.80.
|
|
13
|
+
"version": "0.80.3",
|
|
14
14
|
"path": "framework/build",
|
|
15
15
|
"deps": [
|
|
16
16
|
"@uniweb/content-reader",
|