uniweb 0.14.13 → 0.14.14
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/partials/agents.md +4 -0
- package/src/framework-index.json +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.14",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"js-yaml": "^4.1.0",
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.0.0",
|
|
44
|
+
"@uniweb/kit": "0.10.12",
|
|
44
45
|
"@uniweb/core": "0.8.1",
|
|
45
|
-
"@uniweb/runtime": "0.9.
|
|
46
|
-
"@uniweb/kit": "0.10.12"
|
|
46
|
+
"@uniweb/runtime": "0.9.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
+
"@uniweb/build": "0.16.8",
|
|
49
50
|
"@uniweb/content-reader": "1.2.2",
|
|
50
|
-
"@uniweb/semantic-parser": "1.2.1"
|
|
51
|
-
"@uniweb/build": "0.16.7"
|
|
51
|
+
"@uniweb/semantic-parser": "1.2.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependenciesMeta": {
|
|
54
54
|
"@uniweb/build": {
|
package/partials/agents.md
CHANGED
|
@@ -1376,6 +1376,10 @@ Back up your database **before** running this. It is not reversible.
|
|
|
1376
1376
|
|
|
1377
1377
|
**Why this instead of a component reference.** ` ```@Alert ` names *which component renders this*, which is a rendering decision sitting in content. `md:warning` names *what the content is* and leaves rendering to the foundation — so the same content works under a different foundation, and an editor can recognize the concept and offer a surface built for it.
|
|
1378
1378
|
|
|
1379
|
+
**A data block whose value is itself a schema.** An author can design a form in the visual editor; it lands as a ` ```yaml:form ` block at `content.data.form`. A component that renders one is the inverse of every other component: it doesn't declare the fields, it *receives* them and draws whatever it's given — the field names are the author's and aren't knowable when you write `meta.js`.
|
|
1380
|
+
|
|
1381
|
+
That makes one distinction worth holding onto. You **may** declare a schema describing the form *definition's envelope* — `title`, `description`, `fields` as a map — and get build-time validation that an authored form is well-formed. What you can't declare is a schema whose fields are *the form's* fields (`name`, `email`, …); that's describing the visitor's answers, which arrive at runtime and belong to a form you've never seen. A tag is a binding, not a gate, so the value reaches you either way — declare a schema only if you want it checked, and only of the envelope.
|
|
1382
|
+
|
|
1379
1383
|
**Reading one in a component.** `content.data[tag]` gives you both views: `items` for anything row-shaped (an accordion, a step list), `sequence` when you don't recognize the tag and want to render it faithfully in document order. Both are derived, so nothing is stored twice.
|
|
1380
1384
|
|
|
1381
1385
|
```jsx
|
package/src/framework-index.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-07-
|
|
3
|
+
"generatedAt": "2026-07-31T23:11:07.347Z",
|
|
4
4
|
"packages": {
|
|
5
5
|
"@uniweb/build": {
|
|
6
|
-
"version": "0.16.
|
|
6
|
+
"version": "0.16.8",
|
|
7
7
|
"path": "framework/build",
|
|
8
8
|
"deps": [
|
|
9
9
|
"@uniweb/content-reader",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
74
|
"@uniweb/runtime": {
|
|
75
|
-
"version": "0.9.
|
|
75
|
+
"version": "0.9.3",
|
|
76
76
|
"path": "framework/runtime",
|
|
77
77
|
"deps": [
|
|
78
78
|
"@uniweb/core",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"deps": []
|
|
86
86
|
},
|
|
87
87
|
"@uniweb/schemas": {
|
|
88
|
-
"version": "0.2.
|
|
88
|
+
"version": "0.2.5",
|
|
89
89
|
"path": "framework/schemas",
|
|
90
90
|
"deps": []
|
|
91
91
|
},
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"deps": []
|
|
101
101
|
},
|
|
102
102
|
"@uniweb/templates": {
|
|
103
|
-
"version": "0.9.
|
|
103
|
+
"version": "0.9.3",
|
|
104
104
|
"path": "framework/templates",
|
|
105
105
|
"deps": []
|
|
106
106
|
},
|