uniweb 0.81.0 → 0.81.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",
3
- "version": "0.81.0",
3
+ "version": "0.81.2",
4
4
  "description": "Create structured Vite + React sites with content/code separation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -43,13 +43,13 @@
43
43
  "tar": "^7.0.0",
44
44
  "@uniweb/content-writer": "^0.3.4",
45
45
  "@uniweb/core": "^0.36.0",
46
- "@uniweb/runtime": "^0.28.10",
47
46
  "@uniweb/kit": "^0.19.15",
48
- "@uniweb/schemas": "^0.10.2",
49
- "@uniweb/semantic-parser": "^1.5.1"
47
+ "@uniweb/runtime": "^0.28.10",
48
+ "@uniweb/semantic-parser": "^1.5.1",
49
+ "@uniweb/schemas": "^0.10.2"
50
50
  },
51
51
  "peerDependencies": {
52
- "@uniweb/build": "^0.75.0",
52
+ "@uniweb/build": "^0.75.1",
53
53
  "@uniweb/content-reader": "^1.2.8",
54
54
  "@uniweb/semantic-parser": "^1.5.1"
55
55
  },
@@ -2761,6 +2761,8 @@ locales/freeform/es/records/article/x.md # records work too
2761
2761
 
2762
2762
  These are **body only — no frontmatter**; params and config still come from the source section. `uniweb i18n init-freeform es pages/about hero` creates one pre-filled and records a source hash, so `uniweb i18n status --freeform` can tell you when the original moved on (`update-hash` to acknowledge). `move`, `rename`, and `prune --freeform` keep them aligned when pages get reorganized.
2763
2763
 
2764
+ **A tagged data block translates by the shape its key declares** in the component's `meta.js` `data:` — a data schema or an inline field map: its text fields, never an enum, a URL or a `translatable: false` field. A key declared `{}` leaves its blocks to a heuristic that offers any string whose field name and value don't look structural, so a `style: display-black` naming one of your component's looks gets translated too. Declare the shape of every block a translator will see — `{ name: 'string', style: { type: 'string', enum: [...] } }`.
2765
+
2764
2766
  **Records translate in the same `extract` run**, into their own manifest at `locales/records/manifest.json` — keyed by the RECORD, so a record translated once is found by every query that returns it. A record whose query has a data schema translates exactly the fields the schema says are text — never an enum, a URL, a date, a number, a file, a reference or a `translatable: false` field — which are the fields a push carries in each language; mark a string that is a code or a key `translatable: false` and no translator is asked for it. An excerpt the build derives is re-derived from each language's body.
2765
2767
 
2766
2768
  **Component side.** Nothing to do: `content.title` arrives in the active language. The one thing a foundation builds is a switcher.
@@ -73,6 +73,7 @@ import { downloadMissingAssets, downloadFileRecords } from '../backend/asset-dow
73
73
  import {
74
74
  readBackendState,
75
75
  siteContentDocumentToProject,
76
+ dataBlockModels,
76
77
  recordsToProject,
77
78
  siteSelfScope,
78
79
  readZip,
@@ -988,7 +989,10 @@ export async function pull(args = [], deps = {}) {
988
989
  prune,
989
990
  keepAuthoredFoundation,
990
991
  // So a query's `@acme/member` comes back as the author's `@/member`.
991
- scope: await scopeFor(siteDoc)
992
+ scope: await scopeFor(siteDoc),
993
+ // A translated data block is read back by what its section's type declares it is, as the
994
+ // push translated it — after the registered foundation above, whose section types say it.
995
+ dataModel: await dataBlockModels(siteDir)
992
996
  })
993
997
  wrote.push(...report.pages, ...report.sections, ...report.layout)
994
998
  removed.push(
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-10-02T01:45:25.043Z",
3
+ "generatedAt": "2026-10-03T13:45:26.166Z",
4
4
  "packages": {
5
5
  "@uniweb/api": {
6
6
  "version": "0.6.9",
@@ -10,7 +10,7 @@
10
10
  ]
11
11
  },
12
12
  "@uniweb/build": {
13
- "version": "0.75.0",
13
+ "version": "0.75.1",
14
14
  "path": "framework/build",
15
15
  "deps": [
16
16
  "@uniweb/content-reader",
@@ -117,7 +117,7 @@
117
117
  "deps": []
118
118
  },
119
119
  "@uniweb/templates": {
120
- "version": "0.17.11",
120
+ "version": "0.17.12",
121
121
  "path": "framework/templates",
122
122
  "deps": []
123
123
  },
@@ -127,7 +127,7 @@
127
127
  "deps": []
128
128
  },
129
129
  "@uniweb/unipress": {
130
- "version": "0.10.18",
130
+ "version": "0.10.19",
131
131
  "path": "framework/unipress",
132
132
  "deps": [
133
133
  "@uniweb/build",