uniweb 0.14.30 → 0.14.32

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.14.30",
3
+ "version": "0.14.32",
4
4
  "description": "Create structured Vite + React sites with content/code separation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,12 +41,12 @@
41
41
  "js-yaml": "^4.1.0",
42
42
  "prompts": "^2.4.2",
43
43
  "tar": "^7.0.0",
44
+ "@uniweb/kit": "0.10.22",
44
45
  "@uniweb/core": "0.8.2",
45
- "@uniweb/runtime": "0.9.9",
46
- "@uniweb/kit": "0.10.21"
46
+ "@uniweb/runtime": "0.9.10"
47
47
  },
48
48
  "peerDependencies": {
49
- "@uniweb/build": "0.16.20",
49
+ "@uniweb/build": "0.16.22",
50
50
  "@uniweb/content-reader": "1.2.2",
51
51
  "@uniweb/semantic-parser": "1.2.1"
52
52
  },
@@ -892,7 +892,7 @@ Nothing to install — the import brings the plugin with it. **Skip the import a
892
892
  **Layout helpers:** `useGridLayout(columns, { gap })`, `useAccordion({ multiple, defaultOpen })`
893
893
  **Theming data:** `useThemeData()`, `useColorContext(block)`
894
894
  **Data fetching:** `useFetched`, `useCacheEntry`, `useEntityDetail`
895
- **Forms:** `useFormValues` (an author-designed form's state), `useFormSubmit`, `submitForm`, `resolveSubmitTarget` — see *Forms* below
895
+ **Forms:** `useFormValues` (an author-designed form's state), `valueAt(values, path)`, `useFormSubmit`, `submitForm`, `resolveSubmitTarget` — see *Forms* below
896
896
  **Utilities:** `cn()`, `SafeHtml`, `SocialIcon`, `filterSocialLinks(links)`, `getSocialPlatform(url)`, `getLocaleLabel(locale)`
897
897
  **Other styled:** `Code`, `Alert`, `Table`, `Details`, `Divider`, `Disclaimer`
898
898
 
@@ -1839,6 +1839,12 @@ const { submit, canSubmit, status } = useFormSubmit({ block })
1839
1839
  <button disabled={!canSubmit || missing.length > 0} onClick={() => submit(formData, { files })}>
1840
1840
  ```
1841
1841
 
1842
+ `valueAt(values, path)` reads one control's value back out. It is the companion
1843
+ of `setValue` and is exported for exactly this loop: `values` is **nested**, so a
1844
+ control at `address.street` lives at `values.address.street`, and `values[c.path]`
1845
+ returns `undefined` for every nested control — a form that silently renders blank
1846
+ inputs and submits empty answers. Use `valueAt`, never index by path.
1847
+
1842
1848
  It seeds each control's `default`, tracks edits, and reports `missing` — the
1843
1849
  `required` controls still empty — without enforcing anything, the same line
1844
1850
  `canSubmit` draws. **Submit `formData`, not `values`:** they differ because a
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-08-05T19:38:23.202Z",
3
+ "generatedAt": "2026-08-05T20:10:52.306Z",
4
4
  "packages": {
5
5
  "@uniweb/build": {
6
- "version": "0.16.20",
6
+ "version": "0.16.22",
7
7
  "path": "framework/build",
8
8
  "deps": [
9
9
  "@uniweb/content-reader",
@@ -46,7 +46,7 @@
46
46
  "deps": []
47
47
  },
48
48
  "@uniweb/kit": {
49
- "version": "0.10.21",
49
+ "version": "0.10.22",
50
50
  "path": "framework/kit",
51
51
  "deps": [
52
52
  "@uniweb/core",
@@ -73,7 +73,7 @@
73
73
  ]
74
74
  },
75
75
  "@uniweb/runtime": {
76
- "version": "0.9.9",
76
+ "version": "0.9.10",
77
77
  "path": "framework/runtime",
78
78
  "deps": [
79
79
  "@uniweb/core",
@@ -86,7 +86,7 @@
86
86
  "deps": []
87
87
  },
88
88
  "@uniweb/schemas": {
89
- "version": "0.2.8",
89
+ "version": "0.2.9",
90
90
  "path": "framework/schemas",
91
91
  "deps": []
92
92
  },
@@ -111,7 +111,7 @@
111
111
  "deps": []
112
112
  },
113
113
  "@uniweb/unipress": {
114
- "version": "0.6.18",
114
+ "version": "0.6.20",
115
115
  "path": "framework/unipress",
116
116
  "deps": [
117
117
  "@uniweb/build",