You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5cb34e7
Browse filesBrowse the repository at this point in the historyBrowse files
The save gate's base-prop list now matches objectui's `SDUI_BASE_PROPS` at the console pin `db11afd4967c` (objectui#11008, #11044). Five keys join the `every-node` set: `bind`, `hidden`, `visibleWhen`, `hiddenOn`, `testId`. Six `BaseSchema` keys become `where-undeclared`: `name`, `label`, `description`, `placeholder`, `data`, `ariaLabel`are accepted without `unknown-prop` on a type whose registration declares no input of that name, and a type that declares one keeps its declared type check.
5
+
`@objectstack/sdui-parser` now reads one base-prop list, ported from objectui's `SDUI_BASE_PROPS` at the console pin `db11afd4967c` (objectui#11008, #11044). Both `validateTree` and the generated JSX types (`generateDts`'s `SduiBaseProps`) are driven by it.
6
6
7
-
Effect: `os validate` no longer warns `unknown-prop` on those keys where the protocol declares them. Only warnings disappear. No component in the served manifest declares any of the five `every-node` keys, and a declared `where-undeclared` key is still checked exactly as before, so no error-severity diagnostic is removed and no previously-rejected page is newly accepted as an error. The list is module-local here (no export); `codegen.ts` is unchanged.
7
+
- On every node, whatever the component declares: `bind`, `hidden`, `visibleWhen`, `hiddenOn`, `testId` are newly accepted. They no longer draw `unknown-prop`, and the generated types accept them as attributes.
8
+
- Only on a type whose registration declares no input of that name: `name`, `label`, `description`, `placeholder`, `data`, `ariaLabel` are newly accepted. A type that declares one keeps its declared type check and its declared attribute type; its generated interface `Omit`s that key from `SduiBaseProps`.
9
+
10
+
Effect for consumers: `os validate` stops warning `unknown-prop` on those keys, and a `.tsx` page that authors them now type-checks against `generateDts` output where it was a TypeScript error before. Measured on the tracked `sdui.manifest.json` (107 components), no component declares any of the five every-node keys, and every declared where-undeclared key is checked as before, so no diagnostic of error severity is removed for that manifest. The wider type surface is why this is a minor, not a patch.
0 commit comments