Skip to content

Commit 17cbfb3

Browse files
committed
changeset: dated notes on the two pending entries the closed gap sets make false
`.changeset/6151-stack-schema-omit-collapse.md` read `gap` as one `number` member declared once on `FlexLayoutProps`; `StackSchema` now declares its own literal union over an `Omit` of it. `.changeset/11441-retire-nav-responsive-grid-layout.md` said `grid` accepts a `gap` number; it now accepts one of ten steps. Each gets an append-only dated note in the house form naming objectui#11474 and the changeset that ships. Claude-Session: https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1db960c commit 17cbfb3

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎.changeset/11441-retire-nav-responsive-grid-layout.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ Migration, measured against `objectui validate` on both of its faces:
1515
- `basePath` has no app-document spelling: the strict face refuses it as an unrecognized key. It belongs to the shell, as `AppSchemaRenderer`'s `basePath` prop.
1616

1717
**Clause-②: yes** — two registrations leave the runtime (narrowing), released as `minor` with this banner.
18+
19+
⚠️ **Dated note, 2026-10-02 — `grid` takes one of ten `gap` steps, not any number — objectui#11474.** At this change `grid` accepted any `gap` number; now it accepts one of 0, 1, 2, 3, 4, 5, 6, 8, 10 and 12, the steps the `grid` renderer maps, and `objectui validate` refuses any other `G` at `gap` on both faces with that set named: 7, 9, 11, a number above 12, a negative number or a fraction. For such a number `grid` drew no gap anyway, because the class it built at runtime is in no compiled stylesheet. So in the migration above `G` must be one of those ten steps; each step `ResponsiveGrid`'s own class map drew (0 to 6 and 8) is one of them. `.changeset/11474-layout-spacing-sets.md` states what ships. The rest of this entry is kept as the reading of this change.

‎.changeset/6151-stack-schema-omit-collapse.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,17 @@ package's own tsconfig and asserts (1) `StackSchema` declares exactly what `Flex
5050
declares, and (2) no member of the `LayoutSchema` union has lost any of `BaseSchema`'s
5151
named members — so the next heritage clause that collapses under the index signature reds
5252
for the whole class, not just for this one interface.
53+
54+
⚠️ **Dated note, 2026-10-02 — `StackSchema` declares its own `gap` — objectui#11474.**
55+
At this change `gap` was a `number` member of `FlexLayoutProps`, declared once and inherited by
56+
`FlexSchema` and `StackSchema` alike, and `stack.tsx` was read as feeding it to a Tailwind
57+
numeric scale; now each node's `gap` is the closed set of steps its renderer maps.
58+
`FlexLayoutProps.gap` is `0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8`, shared by `FlexSchema` and the
59+
authored `flex` bag. `StackSchema` extends `BaseSchema` and `Omit<FlexLayoutProps, 'gap'>` and
60+
declares its own `gap?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10`, the nine steps `stack.tsx` has a
61+
gap class for. So `gap` is declared twice while the other members stay declared once, and `tsc`
62+
refuses any other number on a `stack`, as it refuses `gap: 'large'`. That `Omit` crosses no
63+
index signature (`FlexLayoutProps` carries none), so it erases no member name, and
64+
`stack-schema-emitted-members.test.ts`, which measures the emitted declaration, still passes.
65+
`.changeset/11474-layout-spacing-sets.md` states what ships. The rest of this entry is kept as
66+
the reading of this change.

0 commit comments

Comments
 (0)