Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions content/docs/references/ui/expression-bindable-text-keys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,16 @@ at the top level (`alert`/`empty`/`dialog` `title`+`description`, `badge`
`label`, form inputs' `value`/`label`, …) — those rows are deliberately NOT
declared yet: form-control `value` is interactive state rather than display
text, and each row is an accept-surface widening that should arrive with its
own measurement, not ride this one (startup scope discipline). Adding a row
is additive and spec-first; do it here, never as a renderer-side inference.
own measurement, not ride this one (startup scope discipline). `text` reads
back `schema.content || schema.value` (`basic/text.tsx`) — unlike the rows
above, its omission is not merely unmeasured: `value` there is a fallback
spelling for the same slot `content` already evaluates (see `content` NOT a
member, above), not a second read point, so a `text: ['value']` row would
legitimize the fallback spelling and give one slot two declared evaluation
paths. The objectstack#13670 ruling settled `text`'s intended evaluation
channel as `content` alone and declared `text.value` OUT on those grounds —
this omission is deliberate, not pending measurement. Adding a row is
additive and spec-first; do it here, never as a renderer-side inference.

<Callout type="info">
**Source:** `packages/spec/src/ui/expression-bindable-text-keys.zod.ts`
Expand Down
12 changes: 10 additions & 2 deletions packages/spec/src/ui/expression-bindable-text-keys.zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,16 @@
* `label`, form inputs' `value`/`label`, …) — those rows are deliberately NOT
* declared yet: form-control `value` is interactive state rather than display
* text, and each row is an accept-surface widening that should arrive with its
* own measurement, not ride this one (startup scope discipline). Adding a row
* is additive and spec-first; do it here, never as a renderer-side inference.
* own measurement, not ride this one (startup scope discipline). `text` reads
* back `schema.content || schema.value` (`basic/text.tsx`) — unlike the rows
* above, its omission is not merely unmeasured: `value` there is a fallback
* spelling for the same slot `content` already evaluates (see `content` NOT a
* member, above), not a second read point, so a `text: ['value']` row would
* legitimize the fallback spelling and give one slot two declared evaluation
* paths. The objectstack#13670 ruling settled `text`'s intended evaluation
* channel as `content` alone and declared `text.value` OUT on those grounds —
* this omission is deliberate, not pending measurement. Adding a row is
* additive and spec-first; do it here, never as a renderer-side inference.
*/

import { z } from 'zod';
Expand Down
Loading