kerfjs 5.0.0-beta.7 → 5.0.0-beta.71
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/CHANGELOG.md +2488 -117
- package/README.md +96 -37
- package/ai/cursorrules +110 -61
- package/ai/manifest.json +16 -7
- package/ai/skill.md +120 -75
- package/dist/actions.d.ts +1 -1
- package/dist/actions.js +10 -6
- package/dist/actions.js.map +1 -1
- package/dist/array-signal.js +1 -1
- package/dist/async.js +22 -19
- package/dist/async.js.map +1 -1
- package/dist/attach.js +1 -66
- package/dist/attach.js.map +1 -1
- package/dist/{chunk-HW7KSM2Y.js → chunk-3C6F6NM4.js} +1 -1
- package/dist/{chunk-HW7KSM2Y.js.map → chunk-3C6F6NM4.js.map} +1 -1
- package/dist/{chunk-GY4XV2UV.js → chunk-4TX6YJDM.js} +10 -3
- package/dist/chunk-4TX6YJDM.js.map +1 -0
- package/dist/{chunk-QIP723L4.js → chunk-5WRGJZV6.js} +3 -2
- package/dist/chunk-5WRGJZV6.js.map +1 -0
- package/dist/{chunk-KZJXHFIB.js → chunk-BI4HGICV.js} +3 -3
- package/dist/chunk-BI4HGICV.js.map +1 -0
- package/dist/chunk-FM6N2B4N.js +70 -0
- package/dist/chunk-FM6N2B4N.js.map +1 -0
- package/dist/{chunk-LVH3GC6B.js → chunk-H7WTRM6F.js} +3 -3
- package/dist/chunk-H7WTRM6F.js.map +1 -0
- package/dist/{chunk-U6FK33SG.js → chunk-IHMDBBUJ.js} +2 -2
- package/dist/chunk-IHMDBBUJ.js.map +1 -0
- package/dist/chunk-JN7EJM3B.js +86 -0
- package/dist/chunk-JN7EJM3B.js.map +1 -0
- package/dist/{chunk-UZJ6I4T6.js → chunk-MK42GLPV.js} +1 -1
- package/dist/chunk-MK42GLPV.js.map +1 -0
- package/dist/{chunk-SVATPF5R.js → chunk-TLL3KXT6.js} +249 -160
- package/dist/chunk-TLL3KXT6.js.map +1 -0
- package/dist/{chunk-ZDCJZCNO.js → chunk-UGNPDLNI.js} +78 -45
- package/dist/chunk-UGNPDLNI.js.map +1 -0
- package/dist/{chunk-V46JKE44.js → chunk-WKIPLNVO.js} +1 -1
- package/dist/chunk-WKIPLNVO.js.map +1 -0
- package/dist/{delegate-CL9VTZFb.d.ts → delegate--CrfgYtC.d.ts} +0 -34
- package/dist/dev.d.ts +31 -13
- package/dist/dev.js +101 -35
- package/dist/dev.js.map +1 -1
- package/dist/html.js +5 -4
- package/dist/html.js.map +1 -1
- package/dist/index.d.ts +14 -9
- package/dist/index.js +29 -20
- package/dist/index.js.map +1 -1
- package/dist/jsx-runtime.d.ts +13 -5
- package/dist/jsx-runtime.js +1 -1
- package/dist/list.d.ts +7 -3
- package/dist/list.js +126 -28
- package/dist/list.js.map +1 -1
- package/dist/overlay.d.ts +25 -28
- package/dist/overlay.js +580 -275
- package/dist/overlay.js.map +1 -1
- package/dist/remount.js +2 -2
- package/dist/router.d.ts +13 -4
- package/dist/router.js +37 -10
- package/dist/router.js.map +1 -1
- package/dist/scope.d.ts +35 -8
- package/dist/scope.js +61 -30
- package/dist/scope.js.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/timing.d.ts +3 -2
- package/dist/timing.js +1 -1
- package/dist/timing.js.map +1 -1
- package/llms.txt +11 -4
- package/package.json +32 -7
- package/setup/cli.mjs +90 -0
- package/setup/index.d.mts +37 -0
- package/setup/index.mjs +1347 -0
- package/setup/jsonc.mjs +201 -0
- package/setup/state.schema.json +56 -0
- package/dist/chunk-GY4XV2UV.js.map +0 -1
- package/dist/chunk-KPXIOG2C.js +0 -54
- package/dist/chunk-KPXIOG2C.js.map +0 -1
- package/dist/chunk-KZJXHFIB.js.map +0 -1
- package/dist/chunk-LVH3GC6B.js.map +0 -1
- package/dist/chunk-QIP723L4.js.map +0 -1
- package/dist/chunk-SVATPF5R.js.map +0 -1
- package/dist/chunk-U6FK33SG.js.map +0 -1
- package/dist/chunk-UZJ6I4T6.js.map +0 -1
- package/dist/chunk-V46JKE44.js.map +0 -1
- package/dist/chunk-ZDCJZCNO.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,2457 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- **LucideIcon supports filled glyphs.** Pass `appearance="solid"` to use the
|
|
10
|
+
icon's current text color as its fill; outline remains the default.
|
|
11
|
+
|
|
12
|
+
- **Doctor detects borrowed component markup.** Source modules that place a
|
|
13
|
+
foreign public class in JSX, raw HTML, or DOM class writes now receive
|
|
14
|
+
`KUI-L023`; documented placeable classes remain allowed.
|
|
15
|
+
|
|
16
|
+
- **Doctor offers strict same-package selector context checks.**
|
|
17
|
+
`ownershipContext: "any"` reports a sibling component's class even when it is
|
|
18
|
+
only used as selector context; cross-package composition stays available.
|
|
19
|
+
|
|
20
|
+
- **Doctor catches classless descendants of composed components.** Component
|
|
21
|
+
mode uses JSX evidence to identify element selectors below component hooks,
|
|
22
|
+
sibling roots, and direct composed child roots.
|
|
23
|
+
|
|
24
|
+
- **Doctor component ownership recognizes source evidence.** Selection-only
|
|
25
|
+
components and literal BEM classes rendered by a component are protected
|
|
26
|
+
when its stylesheet styles their block. CSS imports can supply the owned
|
|
27
|
+
stylesheet, and uncataloged modules can opt into the same inference.
|
|
28
|
+
|
|
29
|
+
- **`createScope().dispose` is typed as a bound function property.** Consumers
|
|
30
|
+
can store or return it as a teardown without a wrapper or an unbound-method
|
|
31
|
+
lint suppression.
|
|
32
|
+
|
|
33
|
+
- **ToolbarControlGroup grow sizing keeps its basis in wide toolbars.** An
|
|
34
|
+
expanded grow search now contributes its minimum width to the trailing zone's
|
|
35
|
+
intrinsic size, keeping sibling groups beside it instead of wrapping early.
|
|
36
|
+
|
|
37
|
+
- **TabBar can settle overflowing peers at whole-tab starts.** Opt into
|
|
38
|
+
`snapTabs` beside a pinned leading AppTab; selection and scroll gestures
|
|
39
|
+
align peers after the pin in LTR and RTL, with enough end room for the final
|
|
40
|
+
tab instead of leaving a clipped sliver at rest.
|
|
41
|
+
|
|
42
|
+
- **The pre-push check no longer adds timing metadata to Hot Sheet tickets.**
|
|
43
|
+
It still runs the repository gate or skips an identical verified clean tree;
|
|
44
|
+
historical timing notes remain readable through `ticket:timing summary`.
|
|
45
|
+
|
|
46
|
+
- **Wrapping catalog resource groups align with the toolbar control band.** A
|
|
47
|
+
single row centers in the band, while multiple rows start at its top.
|
|
48
|
+
|
|
49
|
+
- **UI browser checks cover the current catalog specimens.** Select, toolbar,
|
|
50
|
+
tab, and control group browser assertions now address the expanded demos;
|
|
51
|
+
a focused toolbar search field restores its default surface color when no
|
|
52
|
+
background override is set.
|
|
53
|
+
|
|
54
|
+
- **Pinned tabs cover the full leading edge of their scroll strip.** The
|
|
55
|
+
backing now includes the strip border as well as its padding, preventing a
|
|
56
|
+
sliver of a scrolling tab label from showing beside the pinned tab.
|
|
57
|
+
|
|
58
|
+
- **Catalog resource links remain readable at phone widths.** The resource
|
|
59
|
+
group wraps whole actions onto another row instead of clipping the Guidance
|
|
60
|
+
label at the right edge; `ToolbarControlGroup overflow="wrap"` is available
|
|
61
|
+
for the same independent-link pattern.
|
|
62
|
+
|
|
63
|
+
- **The UI analyzer resolves application component imports through TypeScript
|
|
64
|
+
path aliases.** `KUI-L022` now catches a styled hook class when an imported
|
|
65
|
+
cataloged component uses an exact or wildcard `paths` mapping; Doctor uses
|
|
66
|
+
the same resolution.
|
|
67
|
+
|
|
68
|
+
- **TabBar accepts standalone Web Awesome actions in `trailing` and `end`.**
|
|
69
|
+
A single `wa-button` can sit beside the scrolling tabs or at the far edge
|
|
70
|
+
without ToolbarControlGroup chrome; the composition rule recognizes the
|
|
71
|
+
cataloged custom element in these zones.
|
|
72
|
+
|
|
73
|
+
- **FieldLabel matches form-control labels over field previews.** The
|
|
74
|
+
`@kerfjs/ui/text` export gives a read-only field the same label typography
|
|
75
|
+
and inset as a themed Web Awesome input, with an id for accessible grouping.
|
|
76
|
+
|
|
77
|
+
- **TokenSearchField form fields match adjacent Web Awesome inputs.** The
|
|
78
|
+
control uses the form-control radius, and its required marker uses the
|
|
79
|
+
same neutral color and offset tokens as `wa-input`.
|
|
80
|
+
|
|
81
|
+
- **Grid supports labeled multi-select ContentItem tiles.** Opt into
|
|
82
|
+
`selectionMode="multiple"` with `ariaLabel`; `wireContentItems` follows the
|
|
83
|
+
rendered columns with four arrow keys and keeps nested controls independent.
|
|
84
|
+
|
|
85
|
+
- **Collapsible TokenSearchField can fill a stretched Toolbar center.** The
|
|
86
|
+
`fill` prop expands the field and its search group to the available width
|
|
87
|
+
while preserving the compact collapsed action.
|
|
88
|
+
|
|
89
|
+
- **TokenSearchField has a typed trailing icon action.** `trailingAction`
|
|
90
|
+
renders an accessible button with Kerf owned chrome and a full 24px wide hit
|
|
91
|
+
target; the existing `trailing` content slot remains for passive content.
|
|
92
|
+
|
|
93
|
+
- **PopupMenu and registered PopupSurface dropdowns preserve fast keyboard
|
|
94
|
+
navigation during opening.** Item focus gained while Web Awesome animates
|
|
95
|
+
the menu is restored after its initial focus handoff, so Enter acts on the
|
|
96
|
+
item the user reached.
|
|
97
|
+
|
|
98
|
+
- **PopupMenu submenu checkmarks stay inside the menu surface.** Checked
|
|
99
|
+
submenu rows align their checkmark beside the label instead of letting the
|
|
100
|
+
Web Awesome negative check margin paint beyond the submenu border.
|
|
101
|
+
|
|
102
|
+
- **Filled SegmentedControl labels keep contrast while switching themes.**
|
|
103
|
+
Web Awesome's native button color transition no longer interpolates the
|
|
104
|
+
label against the already-switched track fill.
|
|
105
|
+
|
|
106
|
+
- **Workbench numeric overlays no longer restyle the full work area on unrelated changes.**
|
|
107
|
+
The overlay wiring mirrors active presentation and open state onto the Workbench
|
|
108
|
+
root for CSS, and avoids layout measurements when no wired panel uses a numeric
|
|
109
|
+
breakpoint.
|
|
110
|
+
|
|
111
|
+
## [5.0.0] - 2026-09-29
|
|
112
|
+
|
|
113
|
+
- **`ui-public-boundaries` inspects `kerfjs/html` tagged templates.** The
|
|
114
|
+
no-build `html` template writes the same markup as JSX, so its static
|
|
115
|
+
`class` attributes now carry `KUI-L101` (private `kui-*` anatomy) and
|
|
116
|
+
`KUI-L103` (a component's anatomy on your own element):
|
|
117
|
+
``html`<aside class="kui-pane">` `` is reported with `Pane` to render, and a
|
|
118
|
+
plain ``html`<div class="kui-content-item">` `` with `ContentItem`, while a
|
|
119
|
+
`<ul>` carrier keeps the placeable class. The template's static parts are
|
|
120
|
+
read by the runtime's own rules; a class a hole supplies (`class=${cls}`)
|
|
121
|
+
is unknown and skipped.
|
|
122
|
+
|
|
123
|
+
- **`KUI-L103`'s "render X instead" answer has one implementation.**
|
|
124
|
+
`@kerfjs/ui` ships `ai/component-class-owners.cjs`, the rule that decides
|
|
125
|
+
which cataloged classes are a component's anatomy and which export renders
|
|
126
|
+
each. `eslint-plugin-kerfjs`'s `ui-public-boundaries` loads it beside
|
|
127
|
+
`application-ui-profile-sync.cjs`, and the generated `ai/components/*.md`
|
|
128
|
+
pages use it too, so the lint message and the component reference can no
|
|
129
|
+
longer name different components (a test pins their agreement over the whole
|
|
130
|
+
shipped catalog). A vendored `profileContractPath` directory must now also
|
|
131
|
+
hold `component-class-owners.cjs`; an `@kerfjs/ui` without it reports
|
|
132
|
+
`KUI-L090`.
|
|
133
|
+
|
|
134
|
+
- **A delegated click no longer re-fires on a target the re-render recycled.**
|
|
135
|
+
A delegated handler that writes a signal makes `mount()` re-render
|
|
136
|
+
synchronously, inside the same event dispatch; when the morph recycled the
|
|
137
|
+
clicked element in place into a control with a different `data-action`,
|
|
138
|
+
delegates registered later for the same event matched the recycled element
|
|
139
|
+
and fired too (a `request` click immediately ran `cancel` and undid itself).
|
|
140
|
+
`delegate()`, `delegateCapture()`, and `kerfjs/actions`' `delegateActions()`
|
|
141
|
+
now resolve every delegate's match against the DOM as it stood when the
|
|
142
|
+
event reached the first kerf delegate listener, like per-element listeners:
|
|
143
|
+
a delegate that matched at dispatch start still fires (unless an earlier
|
|
144
|
+
handler removed its element), one that matches only after a re-render does
|
|
145
|
+
not, and `delegateActions()` dispatches by the action value the element
|
|
146
|
+
carried at dispatch start. `mount()` stays synchronous. The
|
|
147
|
+
wrap-it-in-a-distinct-element workaround is no longer needed. Cost: about
|
|
148
|
+
0.11 KB min+gzip, which moves the advertised core size from ~12 KB to
|
|
149
|
+
~13 KB.
|
|
150
|
+
|
|
151
|
+
- **Component packages declare `placeableClasses`, and `KUI-L103` covers
|
|
152
|
+
their anatomy classes.** `create-kerf-component`'s `kerf.components.json`
|
|
153
|
+
accepts optional `boundaries.placeableClasses` (a subset of
|
|
154
|
+
`publicClasses`) and `boundaries.rootElement`, validates them, and copies
|
|
155
|
+
them into the generated `component-composition.json`.
|
|
156
|
+
`eslint-plugin-kerfjs`'s `ui-public-boundaries` now checks every class the
|
|
157
|
+
application or third-party catalogs in `.kerf-ui-profile.json` declare, not
|
|
158
|
+
only `kui-*` names: `<div class="acme-meter">` is reported with the
|
|
159
|
+
package's component to render (`Meter`), while its placeable classes stay
|
|
160
|
+
allowed. The scaffold template's README explains the field, and
|
|
161
|
+
`@kerfjs/ui/ai/skill.md` (1.50.0) applies the rule to package entries.
|
|
162
|
+
|
|
163
|
+
- **`eslint-plugin-kerfjs` `ui-public-boundaries` reports a plain
|
|
164
|
+
`<div class="kui-content-item">` as `ContentItem` recreated (`KUI-L103`).**
|
|
165
|
+
The `kui-content-item` classes stay placeable on another carrier (a `<ul>`, a
|
|
166
|
+
`Text`, a control-cluster `<footer>`), but a plain `<div>` carrying them is
|
|
167
|
+
exactly what `ContentItem` renders; the diagnostic now says to render
|
|
168
|
+
`ContentItem`. The `@kerfjs/ui` catalogs gain an additive `rootElement`
|
|
169
|
+
field (selection entry and composition `boundaries.rootElement`) naming the
|
|
170
|
+
element a component renders around its own placeable classes, and
|
|
171
|
+
`check:guidance` derives its repository check from the same fields, so the
|
|
172
|
+
package check and the downstream diagnostic cannot drift. The rule also
|
|
173
|
+
inspects the static class names of a template-literal `class` /
|
|
174
|
+
`className` value.
|
|
175
|
+
|
|
176
|
+
- **`eslint-plugin-kerfjs` `ui-public-boundaries` reports a component's
|
|
177
|
+
anatomy class written onto an application-owned element (`KUI-L103`).**
|
|
178
|
+
`<div class="kui-toolbar">`, `<aside class="kui-pane">`, or
|
|
179
|
+
`<wa-dropdown class="kui-popup-menu">` recreates a component by class and
|
|
180
|
+
inherits (and invites restyling of) its CSS; the diagnostic names the
|
|
181
|
+
component to render instead (`Toolbar`, `Pane`, `PopupMenu`). The
|
|
182
|
+
`@kerfjs/ui` catalogs gain `placeableClasses` (selection entry field and
|
|
183
|
+
composition `boundaries.placeableClasses`) naming the public classes an
|
|
184
|
+
application may place itself — the layout utilities, `kui-app-root`, the
|
|
185
|
+
`kui-content-item` geometry on a non-div carrier, and Web Awesome
|
|
186
|
+
`hide-actions` — and `check:catalog` requires every class-only entry to list
|
|
187
|
+
its classes there. A component's own element (`<Toolbar className="kui-toolbar">`)
|
|
188
|
+
is not reported. The README pane example and `@kerfjs/ui/ai/skill.md`
|
|
189
|
+
(1.47.0) now render `Pane` instead of writing its classes, and each generated
|
|
190
|
+
`ai/components/*.md` page states which classes are placeable and which
|
|
191
|
+
component renders the rest.
|
|
192
|
+
|
|
193
|
+
- **`kerf-ui-analyze` retires `KUI-L005` ("forced component dimension").**
|
|
194
|
+
`KUI-L019` already reports any application rule whose subject is a cataloged
|
|
195
|
+
component, dimensions included, so `.kui-pane { width: 300px }` was reported
|
|
196
|
+
twice (an error and a review finding). L005's only other shape, a public
|
|
197
|
+
class as an ancestor (`.kui-pane .app-sidebar { width: 240px }`), sizes the
|
|
198
|
+
application's own element and is allowed. The analyzer no longer emits it;
|
|
199
|
+
the id stays in the diagnostic registry (now listing it under `retired`) so
|
|
200
|
+
existing profile exceptions that name it still load.
|
|
201
|
+
|
|
202
|
+
- **`KUI-L301` now reports every `Discouraged` Web Awesome element rendered
|
|
203
|
+
directly.** The `@kerfjs/ui` package-default application profile avoids all
|
|
204
|
+
fifteen Discouraged entries (Dropdown/Dropdown Item → `PopupMenu`,
|
|
205
|
+
Select/Option → `Select`, Tab Group/Tab/Tab Panel → `TabBar`, Icon →
|
|
206
|
+
`LucideIcon`, Split Panel → `ResizableRegion`, Button Group →
|
|
207
|
+
`SegmentedControl`, Tree/Tree Item → `List`, and Animated Image, Comparison,
|
|
208
|
+
and Zoomable Frame → `ContentItem`), each with a rationale, and
|
|
209
|
+
`eslint-plugin-kerfjs` `ui-preferences` (and `kerf-ui-doctor`, which runs it)
|
|
210
|
+
now resolves a custom-element JSX tag such as `<wa-dropdown>` to its catalog
|
|
211
|
+
entry, not only an imported component. A declared component's own source
|
|
212
|
+
stays exempt because it is the wrapper that owns the element. A test keeps
|
|
213
|
+
the profile's avoid set equal to the catalog's Discouraged set in both
|
|
214
|
+
directions and lints the UX demo, recipes, and catalog shell clean;
|
|
215
|
+
`@kerfjs/ui/ai/skill.md` (1.46.0) names the diagnostic.
|
|
216
|
+
|
|
217
|
+
- **New (`@kerfjs/ui`): `NavStack` and `TabScaffold` take `chromeDividers`
|
|
218
|
+
(`'scroll' | 'always' | 'none'`), like `Pane`.** `scroll` (the default) keeps
|
|
219
|
+
today's behavior: the stack's top-chrome and bottom-toolbar lines and the
|
|
220
|
+
scaffold's bar line follow the scroll once `wireScrollDividers` is installed.
|
|
221
|
+
`always` draws them permanently without the wiring; `none` never draws them,
|
|
222
|
+
even when wired. The top `Toolbar`'s own `toolbarConfig.dividerSides` is
|
|
223
|
+
unaffected. `SplitView` forwards it to its compact stack through
|
|
224
|
+
`compactStack.chromeDividers`.
|
|
225
|
+
|
|
226
|
+
- **Fix (`@kerfjs/ui`): a `Pane` that is the only content of a `NavStack` view
|
|
227
|
+
or a `TabScaffold` scene fills it.** It used to size to its content, so the
|
|
228
|
+
view scrolled the whole Pane and its header scrolled away. Now the Pane's own
|
|
229
|
+
content scrolls under its pinned header and footer, the Pane's slots take the
|
|
230
|
+
safe-area edges the view or scene still reaches, and scroll dividers key on
|
|
231
|
+
the Pane's content. The rule lives in `pane.css`, as the Workbench-region fill
|
|
232
|
+
does.
|
|
233
|
+
|
|
234
|
+
- **The `@kerfjs/ui` suite-v3 AI-regression protocol test runs in every gate
|
|
235
|
+
again.** `ui/tests/integration/ai-regressions-v3.test.ts` was selected by no
|
|
236
|
+
package script, so neither `npm --prefix ui run check` nor CI executed it. It
|
|
237
|
+
now runs as `test:ai-regressions` inside the package's `npm test`, and a new
|
|
238
|
+
unit guard fails when any file under `ui/tests` is selected by no script
|
|
239
|
+
reachable from `check` or `test:e2e`.
|
|
240
|
+
|
|
241
|
+
- **Importing `@kerfjs/ui/catalog` or `@kerfjs/ui/workbench` now ships every
|
|
242
|
+
stylesheet those composites render.** `catalog`, `workbench`, `nav-stack`,
|
|
243
|
+
`split-view`, `tab-scaffold`, and `collapsible-panel` gain a CSS-aware
|
|
244
|
+
`browser` export condition whose generated wrapper imports the foundation, the
|
|
245
|
+
CSS of each internally rendered component (Pane, Toolbar, ToolbarText, List,
|
|
246
|
+
ListItem, ListInsetText, Row, PopupMenu, …) in dependency order, and the
|
|
247
|
+
composite's own CSS. Apps no longer hand-import `pane.css`, and a Catalog
|
|
248
|
+
sidebar's styling no longer depends on whether the app happens to import
|
|
249
|
+
`ListInsetText` elsewhere. The list is derived from the source import graph
|
|
250
|
+
(now following parent-relative imports), the `import` condition stays
|
|
251
|
+
CSS-free, and the companion `.css` subpaths remain for pipelines without the
|
|
252
|
+
`browser` condition. `@kerfjs/ui/ai/skill.md` is 1.46.0.
|
|
253
|
+
|
|
254
|
+
- **The `@kerfjs/ui` AI guidance now states every maintainer design rule
|
|
255
|
+
explicitly.** An audit of the package's tickets folded the missing rules into
|
|
256
|
+
`@kerfjs/ui/ai/skill.md` (1.45.0), `llms.txt`, and the design docs: prefer a
|
|
257
|
+
Kerf UI component over a Web Awesome component over a raw tag and never render
|
|
258
|
+
a `Discouraged` Web Awesome element directly (only through the Kerf component
|
|
259
|
+
that wraps it); nothing wraps inside a `ToolbarControlGroup` and a
|
|
260
|
+
`ToolbarText` is one ellipsized line unless `wrap`/`maxLines` is set; a
|
|
261
|
+
`Select` or `PopupMenu` trigger drops its focus ring while its popup is open
|
|
262
|
+
and the ring follows the control's shape (never add ring CSS); dividers earn
|
|
263
|
+
their place (`dividerSides=""` over self-spacing content or between a pane's
|
|
264
|
+
header and its list, never padded around); a control sits near where its
|
|
265
|
+
effect appears; and text aligns to text and icons to icons — a border is
|
|
266
|
+
never the alignment anchor. The ToolbarControlGroup catalog entry no longer
|
|
267
|
+
points at a hand-written `wa-dropdown` trigger, and the bundled kerf app
|
|
268
|
+
configs (`ai/skill.md` 1.25.0, `ai/cursorrules` 1.23.0) name the List family
|
|
269
|
+
and carry the "components own their styles; configure, never override" rule.
|
|
270
|
+
|
|
271
|
+
- **Applications and component packages are held to the component-ownership
|
|
272
|
+
rules `@kerfjs/ui` enforces internally: components own their styles and are
|
|
273
|
+
configured, never overridden.** `kerf-ui-analyze` and `kerf-ui-doctor` add
|
|
274
|
+
four error diagnostics (review findings under `--adoption`):
|
|
275
|
+
- `KUI-L019` — a CSS rule whose subject is another package's cataloged
|
|
276
|
+
component: a public class (`.kui-toolbar`, `.acme-meter`), its
|
|
277
|
+
`[data-component]` root, or a Web Awesome tag the package themes
|
|
278
|
+
(`wa-button`). Your own element in a component's context
|
|
279
|
+
(`.kui-toolbar > .my-widget`), keying on its state inside `:has()`, and
|
|
280
|
+
setting its public tokens stay allowed.
|
|
281
|
+
- `KUI-L020` — reading or writing another component's private `--_*`
|
|
282
|
+
variable (`--_kui-list-gap`).
|
|
283
|
+
- `KUI-L021` — overriding a token a typed prop sets (`--kui-list-gap` is
|
|
284
|
+
`<List gap>`); the message quotes the prop's example.
|
|
285
|
+
- `KUI-L022` — a class placed on a component's root (`<Toolbar
|
|
286
|
+
className="header" />`) that the application then styles.
|
|
287
|
+
|
|
288
|
+
Each message names the component's configuration (typed props, public
|
|
289
|
+
tokens, variants) and ends by routing a need with no prop to a component-gap
|
|
290
|
+
report instead of an override. Ownership is per package, from the nearest
|
|
291
|
+
`package.json`, so a component package styling its own components — including
|
|
292
|
+
in a Kerf UI parent's context — passes, and third-party catalogs declared in
|
|
293
|
+
`.kerf-ui-profile.json` get the same protection. `eslint-plugin-kerfjs` adds
|
|
294
|
+
`ui-component-ownership` (in `recommended-ui` and `strict-ui`, `error`),
|
|
295
|
+
reporting `KUI-L020` / `KUI-L021` in style strings, style objects, and
|
|
296
|
+
`style.setProperty()`. The `create-kerf-component` scaffold now ships a
|
|
297
|
+
`counter.css` that styles only Counter (configured by a typed `size` prop and
|
|
298
|
+
a `--kerf-counter-gap` token, with context named after Counter and a
|
|
299
|
+
Toolbar-context rule in its own stylesheet), plus `npm run check:styles`
|
|
300
|
+
(`kerf-ui-analyze`, from a new `@kerfjs/ui` dev dependency) in
|
|
301
|
+
`prepublishOnly`.
|
|
302
|
+
|
|
303
|
+
- **Behavior change (`@kerfjs/ui`): `NavStack` and `TabScaffold` chrome
|
|
304
|
+
dividers follow the scroll.** The `NavStack` bottom toolbar's and the
|
|
305
|
+
`TabScaffold` bar's top borders are no longer permanent. With `wireScrollDividers`
|
|
306
|
+
installed, a `NavStack`'s top chrome draws a line along its bottom edge only
|
|
307
|
+
while the active view's content is scrolled beneath it, its bottom toolbar a
|
|
308
|
+
line along its top edge only while more content lies below, and a
|
|
309
|
+
`TabScaffold` bar a line along its top edge only while the active scene's
|
|
310
|
+
content continues below it — none when the content fits. The line follows
|
|
311
|
+
the active view across a push or pop and the active scene across a tab
|
|
312
|
+
switch, and keys on whichever element actually scrolls: the view or scene
|
|
313
|
+
itself, or, through a sole child with no chrome of its own on that edge, a
|
|
314
|
+
`Pane`'s content or a nested `NavStack`'s active view (a sole `Pane`'s own
|
|
315
|
+
header or footer draws that boundary instead). Each layout draws the line
|
|
316
|
+
from its own stylesheet (an overlaid pseudo-element on the stack's chrome; the
|
|
317
|
+
bottom toolbar and bar keep their 1px top border, transparent until shown),
|
|
318
|
+
so nothing moves; the wiring
|
|
319
|
+
writes only its `data-scroll-overflow` / `data-scroll-divider` state. Without
|
|
320
|
+
the wiring those edges draw no line.
|
|
321
|
+
|
|
322
|
+
- **Behavior change (`@kerfjs/ui`): toolbars no longer draw a divider by
|
|
323
|
+
default; dividers between pinned chrome and scrolling content follow the
|
|
324
|
+
scroll.** `Toolbar`'s `dividerSides` now defaults to `''` (was `'b'`), and
|
|
325
|
+
the `Workbench` (`mainToolbar`, `mainBottomToolbar`, panel toolbars, and the
|
|
326
|
+
`mainHeader` / `mainFooter` lists), `CollapsiblePanel`, and `Catalog`
|
|
327
|
+
toolbars no longer place dividers of their own. Instead a `Pane` draws one
|
|
328
|
+
line under its header and one over its footer, wherever that chrome ends:
|
|
329
|
+
the header's only while content is scrolled beneath it, the footer's only
|
|
330
|
+
while more content lies below, and neither when the content fits. The new
|
|
331
|
+
`@kerfjs/ui/wire-scroll-dividers` subpath's `wireScrollDividers(root, {
|
|
332
|
+
targets? })` reports that state — call it once at the app root and keep its
|
|
333
|
+
disposer (`wireCatalog` installs it for its own root). It also marks each
|
|
334
|
+
side of a `TabBar` strip with tabs scrolled out of view, and lets a
|
|
335
|
+
`Toolbar` or `List` named as chrome in `targets` draw the divider facing an
|
|
336
|
+
app-owned scroller. The wiring only writes the `data-scroll-overflow` /
|
|
337
|
+
`data-scroll-divider` state attributes; each component draws its own line,
|
|
338
|
+
and no state moves the chrome, the content, or a tab. `Pane` gains
|
|
339
|
+
`chromeDividers` (`scroll` default, `always`, `none`; also in `PaneConfig`,
|
|
340
|
+
so `mainPane` and a panel's `pane` forward it) and TabBar the
|
|
341
|
+
`--kui-tab-bar-divider-color` token. To keep a permanent line, set
|
|
342
|
+
`chromeDividers: "always"` on the pane or an explicit `dividerSides`.
|
|
343
|
+
|
|
344
|
+
- **`@kerfjs/ui`: `Pane`, `NavStack`, `SplitView`, and `TabScaffold` fill a
|
|
345
|
+
Workbench region from their own stylesheets.** As a Workbench main area's
|
|
346
|
+
or panel's only child, each sets its own `height: 100%` in that context,
|
|
347
|
+
which the Workbench marks on its regions (`data-workbench-main`, and the new
|
|
348
|
+
`data-workbench-panel-content` on each panel's content); `workbench.css` no
|
|
349
|
+
longer sizes another component's root (it still fills a nested Workbench).
|
|
350
|
+
Rendering is unchanged.
|
|
351
|
+
|
|
352
|
+
- **`@kerfjs/ui`: layouts name the covered-floating-controls context after
|
|
353
|
+
themselves, and no longer write `FloatingToolbar`'s inset token.** Workbench,
|
|
354
|
+
CollapsiblePanel, and ResizableRegion each provide their own private
|
|
355
|
+
`--_kui-<layout>-covered` context in place of the shared
|
|
356
|
+
`--_kui-floating-covered` flag; `FloatingToolbar` and every restore corner
|
|
357
|
+
read all three. A restore corner no longer sets
|
|
358
|
+
`--kui-floating-toolbar-inset: 0px`; `FloatingToolbar` zeroes its own inset
|
|
359
|
+
inside a restore corner (a toolbar's own `inset` still wins). Rendering is
|
|
360
|
+
unchanged. One edge case changes: a floating control inside an open overlay
|
|
361
|
+
of one layout type that is itself covered by another layout type's open
|
|
362
|
+
overlay (for example, a ResizableRegion overlay in a Workbench work area
|
|
363
|
+
under an open rail overlay) now stays hidden.
|
|
364
|
+
|
|
365
|
+
- **`@kerfjs/ui`: `ListHeader`, `NavStack`, `Select`, and `StateBanner` no
|
|
366
|
+
longer restyle a composed child through a class on its root.** Each child
|
|
367
|
+
now styles itself: `Text` sets a `ListHeader` label from `text.css`, `Badge`
|
|
368
|
+
spaces a `Select` count and a `StateBanner` badge from `badge.css`, and a
|
|
369
|
+
`NavStack` title uses `ToolbarText`'s new `fill` option. Rendering is
|
|
370
|
+
unchanged. `ToolbarText` gains `fill` (grow into the free space of its
|
|
371
|
+
toolbar zone and truncate there). The `kui-list-header__label`,
|
|
372
|
+
`kui-nav-stack__title`, `kui-select__count`, and `kui-state-banner__badge`
|
|
373
|
+
classes are removed; select a ListHeader label with
|
|
374
|
+
`.kui-list-header__title > .kui-text` and a NavStack title with
|
|
375
|
+
`.kui-toolbar-text[data-fill="true"]` if a test needs to find them.
|
|
376
|
+
|
|
377
|
+
- **`@kerfjs/ui` ships a markdown component reference for AI assistants.**
|
|
378
|
+
`@kerfjs/ui/ai/components/README.md` indexes every catalog entry in one line,
|
|
379
|
+
and `@kerfjs/ui/ai/components/<id>.md` gives each entry a short page: when to
|
|
380
|
+
use and avoid it, imports and CSS/registration side effects, a link to its
|
|
381
|
+
exact props, legal parents and zones (JSX prop and child count), app- and
|
|
382
|
+
wiring-owned state, geometry, accessibility obligations, its styling boundary
|
|
383
|
+
(configure through props; do not override internals), and its diagnostics.
|
|
384
|
+
`llms.txt` and the shipped skill now send assistants there instead of to the
|
|
385
|
+
263 KB `component-catalog.json` and 221 KB `component-composition.json`,
|
|
386
|
+
which remain the canonical sources for tools. The pages are generated from
|
|
387
|
+
those two files and a package check fails when they drift.
|
|
388
|
+
|
|
389
|
+
- **Breaking (`@kerfjs/ui` and `create-kerf-component`): the composition
|
|
390
|
+
catalog files are renamed so they no longer read as a "v2" of the component
|
|
391
|
+
catalog.** The composition catalog is a generated composition layer beside
|
|
392
|
+
`component-catalog.json`, not a newer version of it. Update any import,
|
|
393
|
+
`$schema`, `$ref`, or `.kerf-ui-profile.json` catalog location that names an
|
|
394
|
+
old path:
|
|
395
|
+
|
|
396
|
+
| Old path | New path |
|
|
397
|
+
| -------------------------------------------------------------- | --------------------------------------------------------------- |
|
|
398
|
+
| `@kerfjs/ui/ai/component-catalog-v2.json` | `@kerfjs/ui/ai/component-composition.json` |
|
|
399
|
+
| `@kerfjs/ui/ai/component-catalog-v2.schema.json` | `@kerfjs/ui/ai/component-composition.schema.json` |
|
|
400
|
+
| `@kerfjs/ui/ai/component-catalog-v2.d.ts` | `@kerfjs/ui/ai/component-composition.d.ts` |
|
|
401
|
+
| `@kerfjs/ui/ai/component-catalog-v2-overrides.json` | `@kerfjs/ui/ai/component-composition-rules.json` |
|
|
402
|
+
| `@kerfjs/ui/ai/component-catalog-extension-v2.schema.json` | `@kerfjs/ui/ai/component-composition-extension.schema.json` |
|
|
403
|
+
| `@kerfjs/ui/ai/component-catalog-extension-v2.d.ts` | `@kerfjs/ui/ai/component-composition-extension.d.ts` |
|
|
404
|
+
| `@kerfjs/ui/docs/examples/component-catalog-extension-v2.json` | `@kerfjs/ui/docs/examples/component-composition-extension.json` |
|
|
405
|
+
| scaffolded package `component-catalog-v2.json` | scaffolded package `component-composition.json` |
|
|
406
|
+
|
|
407
|
+
The exported types follow: `ComponentCatalogV2` → `ComponentComposition`,
|
|
408
|
+
`CatalogCompositionEntryV2` → `CatalogCompositionEntry`,
|
|
409
|
+
`ConsumerComponentCatalogV2` → `ConsumerComponentComposition`, and
|
|
410
|
+
`ConsumerCatalogEntryV2` → `ConsumerCompositionEntry`. In the repository,
|
|
411
|
+
`npm run catalog:v2:sync` is now `npm run composition:sync`
|
|
412
|
+
(`catalog:sync` still runs both generators). The file contents and their
|
|
413
|
+
`schemaVersion` are unchanged.
|
|
414
|
+
|
|
415
|
+
- **Breaking (`@kerfjs/ui`, `create-kerf-component`, and `kerfjs setup`): the
|
|
416
|
+
composition catalog's own fields no longer read as a "v2" of the component
|
|
417
|
+
catalog.** In `component-composition.json` (and any consumer composition
|
|
418
|
+
catalog), `"schemaVersion": 2` is now `"schemaVersion": 1` — the composition
|
|
419
|
+
format's own first version, independent of `component-catalog.json`'s — and
|
|
420
|
+
`compatibility.v1Catalog` is now `compatibility.componentCatalog`. A
|
|
421
|
+
scaffolded package's `kerf.components.json` renames its `v1Catalog` field to
|
|
422
|
+
`componentCatalog` the same way. Regenerate scaffolded catalogs
|
|
423
|
+
(`npm run catalog:generate`), and change any `.kerf-ui-profile.json` `composition`
|
|
424
|
+
location from `"schemaVersion": 2` to `"schemaVersion": 1`; a catalog still
|
|
425
|
+
carrying the old fields fails validation with a message naming the rename.
|
|
426
|
+
The `ComponentComposition` type follows (`schemaVersion: 1`,
|
|
427
|
+
`compatibility.componentCatalog`).
|
|
428
|
+
|
|
429
|
+
- **`@kerfjs/ui` `NavStack` bars use the standard `Toolbar` padding.** The
|
|
430
|
+
navigation bar dropped its toolbar's block padding to stay 44px tall, so its
|
|
431
|
+
title and controls touched the bar's edges. It now keeps the 8px above and
|
|
432
|
+
below that every other toolbar has (60px plus any top safe-area inset).
|
|
433
|
+
|
|
434
|
+
- **`@kerfjs/ui` multiline list rows break long camelCase names at word
|
|
435
|
+
boundaries.** A string label in a `multiline` `ListItem` or `ListActionRow`
|
|
436
|
+
(such as a Catalog sidebar entry) gets `<wbr>` break opportunities at its
|
|
437
|
+
camelCase and acronym boundaries, so `QuickTicketComposer` wraps as
|
|
438
|
+
`QuickTicket` / `Composer` instead of `QuickTicketComp` / `oser`. Breaking
|
|
439
|
+
mid-word remains the fallback for a single word that is still too wide.
|
|
440
|
+
- **`wbr` is a typed JSX intrinsic element.** The runtime already rendered it
|
|
441
|
+
as a void element; `JSX.IntrinsicElements` now declares it.
|
|
442
|
+
|
|
443
|
+
- **`@kerfjs/ui` `Badge` has a text-free dot, and `TabScaffold` tabs can show
|
|
444
|
+
it.** `Badge` takes `size="dot"`: an 8px solid circle in the badge's tone,
|
|
445
|
+
with no children, appearance, or shape. Because a dot has no text, its props
|
|
446
|
+
require either a `label` (announced as an image, for example
|
|
447
|
+
`label="New activity"`) or `ariaHidden` when the owning component already
|
|
448
|
+
announces it. `TabScaffoldTab` accepts `badge: true` for the iOS tab-bar dot
|
|
449
|
+
(new content without a count), centered on the icon's top-trailing corner;
|
|
450
|
+
its `badgeLabel` is required and joins the tab's accessible name
|
|
451
|
+
("Settings, Update available"). `BadgeTextProps` and `BadgeDotProps` are
|
|
452
|
+
exported from the root barrel.
|
|
453
|
+
|
|
454
|
+
- **`@kerfjs/ui` `Toolbar` truncates the leading title instead of letting the
|
|
455
|
+
center zone cover it.** When a leading identity, a `center` group, and
|
|
456
|
+
trailing actions no longer fit one row, the center zone keeps its whole
|
|
457
|
+
content width and the leading title ends in an ellipsis. Previously the
|
|
458
|
+
center track could shrink below its group, which then painted over the
|
|
459
|
+
title — a pushed `NavStack` view with a center group did this at 390px. The
|
|
460
|
+
fix holds under every `responsive` policy and both `centerAlign` values, and
|
|
461
|
+
a toolbar that fits lays out exactly as before.
|
|
462
|
+
|
|
463
|
+
- **`@kerfjs/ui` `ValueTableRow` keeps its value readable beside a long
|
|
464
|
+
label.** A long single-word label (such as `ConnectionStateBanner` in a
|
|
465
|
+
390px-wide table) no longer squeezes the value to 0px wide, where it wrapped
|
|
466
|
+
one character per line while the label ran underneath it. The label and value
|
|
467
|
+
now share the row as two content-sized columns: a short value stays whole on
|
|
468
|
+
one line, the label wraps at its spaces and ends an over-long word in an
|
|
469
|
+
ellipsis before the value, and when both are long they split the row.
|
|
470
|
+
|
|
471
|
+
- **`@kerfjs/ui` pinned chrome can give way in a short pane.** `Pane` takes
|
|
472
|
+
`chromePlacement="auto"`: its header and footer stay pinned while the pane is
|
|
473
|
+
at least 480px (30rem) tall, and below that the whole pane scrolls as one
|
|
474
|
+
column so tall chrome never squeezes the content to nothing.
|
|
475
|
+
`WorkbenchChromePlacement` gains `"auto"` for `mainHeaderPlacement` /
|
|
476
|
+
`mainFooterPlacement`, and `Catalog` now defaults `headerPlacement` /
|
|
477
|
+
`footerPlacement` to `"auto"`. Its entry description is pinned under the
|
|
478
|
+
toolbar, which at 200% text size on a short window had left the preview 0px
|
|
479
|
+
tall.
|
|
480
|
+
|
|
481
|
+
- **`@kerfjs/ui` `TabScaffold` tabs can show a badge.** Give a
|
|
482
|
+
`TabScaffoldTab` a `badge` (a count or short string) to show the iOS tab-bar
|
|
483
|
+
badge — a compact, solid danger `Badge` at the top-trailing corner of the
|
|
484
|
+
tab's icon. The badge is hidden from assistive technology; the tab's
|
|
485
|
+
accessible name becomes `"<label>, <badgeLabel>"` (for example
|
|
486
|
+
"Inbox, 3 unread"), with `badgeLabel` defaulting to the badge text. Tabs
|
|
487
|
+
without a badge are unchanged.
|
|
488
|
+
|
|
489
|
+
- **`@kerfjs/ui` `ListItem` and `ListActionRow` labels stay out of the
|
|
490
|
+
trailing slot.** A long single-word primary label (such as a Catalog sidebar
|
|
491
|
+
entry named `ConnectionStateBanner` in a narrow rail) no longer runs
|
|
492
|
+
underneath trailing status text. Single-line rows now end the primary label
|
|
493
|
+
and description with a real ellipsis (previously the text was cut mid-glyph
|
|
494
|
+
with no "…"), and `multiline` rows break a word wider than the label column
|
|
495
|
+
onto the next line.
|
|
496
|
+
|
|
497
|
+
- **Custom elements keep the `role` and `aria-*` they set on themselves across
|
|
498
|
+
re-renders.** Web components conventionally own their host's ARIA (Web
|
|
499
|
+
Awesome's `wa-option` sets `role="option"` / `aria-selected`, `wa-divider`
|
|
500
|
+
sets `role="separator"`; Shoelace and FAST do the same), but a template never
|
|
501
|
+
mentions them, so the morph and the keyed-list attribute fast path stripped
|
|
502
|
+
them on the next re-render. On any custom element (hyphenated tag), `role`
|
|
503
|
+
and `aria-*` are now element-owned like `open`: never removed just because
|
|
504
|
+
the template omits them. The template can still set or change them, a signal
|
|
505
|
+
binding set to `null` / `false` still removes them, and plain elements are
|
|
506
|
+
unchanged. Trade-off: omitting one from a static template no longer removes
|
|
507
|
+
it from a custom element — render an explicit value (`aria-pressed="false"`)
|
|
508
|
+
instead.
|
|
509
|
+
|
|
510
|
+
- **`@kerfjs/ui` layout regions no longer slow edits to long lists inside
|
|
511
|
+
them.** The rule that clears the safe-area context for the children of a
|
|
512
|
+
Workbench main area or panel, SplitView list or detail, NavStack view,
|
|
513
|
+
TabScaffold scene, or CollapsiblePanel content made each child re-check the
|
|
514
|
+
region in Chromium on every DOM change. A 1000-row list placed directly in
|
|
515
|
+
one of these regions took about 46ms per style recalculation (2ms with the
|
|
516
|
+
list one level down), and now takes about 0.2ms. Layout and insets are
|
|
517
|
+
unchanged.
|
|
518
|
+
|
|
519
|
+
- **`@kerfjs/ui` `CollapsiblePanel` no longer slows insertions into long
|
|
520
|
+
lists.** An expanded inline panel clears its screen edge for its siblings;
|
|
521
|
+
the rules that did so selected the siblings themselves
|
|
522
|
+
(`:has(~ panel)` and `panel ~ *`), which in Chromium made each row inserted
|
|
523
|
+
into or removed from a long list restyle the list's other rows — about
|
|
524
|
+
14.6ms instead of 0.2ms per insertion beside a 1000-row list. The panel's
|
|
525
|
+
container now carries a flag that a CSS style query reads, so a list pays
|
|
526
|
+
nothing. The edge still clears for the panel's siblings and returns when it
|
|
527
|
+
collapses; the one difference is that a sibling placed before a left panel
|
|
528
|
+
or after a right or bottom panel now loses the edge too.
|
|
529
|
+
|
|
530
|
+
- **`@kerfjs/ui` restore corners and covered floating controls no longer slow
|
|
531
|
+
every style recalculation.** The `CollapsiblePanel` / `ResizableRegion`
|
|
532
|
+
restore-corner anchor scope (`:has(> restore) > * > * > *`) and the static
|
|
533
|
+
side-overlay covered flag (`:has(> open overlay) > :not(overlay)`) put a
|
|
534
|
+
universal selector after a `:has()` container, which in Chromium restyled
|
|
535
|
+
the children of every ancestor of each DOM change — about 85ms instead of
|
|
536
|
+
1ms per edit beside a 1000-row list. The drawer now publishes its anchor
|
|
537
|
+
only beside a restore control's container (or its work-area column), and
|
|
538
|
+
the covered flag is set on the overlay's container and cleared on its
|
|
539
|
+
overlay children. Restore-corner placement and covered-control hiding are
|
|
540
|
+
unchanged; a new CSS unit test rejects the costly `:has()` shapes.
|
|
541
|
+
|
|
542
|
+
- **`@kerfjs/ui` adds `ContentItem`.** Import it from
|
|
543
|
+
`@kerfjs/ui/content-item` to render one self-contained pane child with the
|
|
544
|
+
shared 8px margin, 1px border, and 8px padding. Framing and shape are typed
|
|
545
|
+
props instead of hand-written modifier classes:
|
|
546
|
+
- `frame="framed"` paints the neutral border in the 1px the item always
|
|
547
|
+
reserves, so its geometry does not change (replacing
|
|
548
|
+
`class="kui-content-item kui-content-item--framed"`);
|
|
549
|
+
- `shape="pill"` selects the 22px radius.
|
|
550
|
+
- `ariaLabel` names a distinct region, and `focusTarget` makes the item a
|
|
551
|
+
programmatic focus target (`tabindex="-1"`), such as a NavStack view's
|
|
552
|
+
`data-nav-focus` target.
|
|
553
|
+
|
|
554
|
+
The `.kui-content-item` classes stay public for elements that must carry the
|
|
555
|
+
geometry themselves; their CSS now lives in `content-item.css`, which
|
|
556
|
+
`layout.css` still imports. There is no filled variant — use `SunkenPanel`
|
|
557
|
+
for a lowered surface. The catalog, demos, and recipes use the component.
|
|
558
|
+
|
|
559
|
+
- **`@kerfjs/ui` icon-only toolbar buttons show the same help tag.** An
|
|
560
|
+
icon-only `<button>` or link inside a `ToolbarControlGroup`, named by
|
|
561
|
+
`aria-label` with no visible text, now shows the help tag icon-only Selects
|
|
562
|
+
and PopupMenus show, with the same 500ms hover delay, keyboard-focus-only
|
|
563
|
+
display, press/Escape dismissal, and quick scanning along a toolbar. The tag
|
|
564
|
+
is `aria-hidden` and never renames the button. A button with a native
|
|
565
|
+
`title`, or with its own Web Awesome tooltip, keeps that and gets no second
|
|
566
|
+
tag. The `select/register` and `popup-menu/register` imports install it; a
|
|
567
|
+
toolbar with icon-only buttons but neither control imports the new
|
|
568
|
+
`@kerfjs/ui/help-tags/register` subpath, which registers only the tooltip.
|
|
569
|
+
|
|
570
|
+
- **`@kerfjs/ui` icon-only Select and PopupMenu triggers show a help tag.**
|
|
571
|
+
An icon-only `Select` (single or `multiple` with `triggerIcon`) and an
|
|
572
|
+
icon-only `PopupMenu` now show a Web Awesome tooltip naming the control on
|
|
573
|
+
hover (after 500ms) and on keyboard focus: a filter reads "Filter by label:
|
|
574
|
+
Bug, Docs", a single Select its name and current choice, a menu its `label`.
|
|
575
|
+
It hides while the popup is open, on a press, and on Escape. The tag repeats
|
|
576
|
+
the accessible name, so it is `aria-hidden` and never joins
|
|
577
|
+
`aria-labelledby`; screen readers still hear the name once. It is installed
|
|
578
|
+
by the existing `select/register` and `popup-menu/register` imports, needs no
|
|
579
|
+
props, and never appears for labeled Selects or text menu triggers.
|
|
580
|
+
|
|
581
|
+
- **`@kerfjs/ui` toolbar groups drop their focus ring while a popup is open.**
|
|
582
|
+
A `ToolbarControlGroup` that owns the ring (`focusRing="outline"` or
|
|
583
|
+
`"halo"`) no longer paints it while a Select listbox or `PopupMenu` inside it
|
|
584
|
+
is open; the open popup shows focus, and the ring returns when the popup
|
|
585
|
+
closes with focus still in the group. This matches the per-control Select
|
|
586
|
+
and PopupMenu triggers.
|
|
587
|
+
|
|
588
|
+
- **`@kerfjs/ui` multiple `Select` can be an icon-only toolbar filter menu.**
|
|
589
|
+
Set `selectedPresentation: 'icon-only'` on a `multiple` Select together with
|
|
590
|
+
a fixed `triggerIcon` (for example a funnel `LucideIcon`); the types require
|
|
591
|
+
`triggerIcon` there and reject it everywhere else. The trigger keeps the
|
|
592
|
+
icon-only caret pill used in a `ToolbarControlGroup`, and:
|
|
593
|
+
- shows the fixed icon whatever is chosen;
|
|
594
|
+
- adds a compact count `Badge` while any choice is chosen;
|
|
595
|
+
- ends the combobox's accessible name with the chosen labels in choice order
|
|
596
|
+
("Filter by label: Bug, Docs"), leaving the hidden value text empty so the
|
|
597
|
+
list is not announced twice.
|
|
598
|
+
|
|
599
|
+
The popup still stays open while choices toggle.
|
|
600
|
+
|
|
601
|
+
- **`@kerfjs/ui` `Select` options keep their accessibility semantics across
|
|
602
|
+
re-renders.** Re-rendering a Select (for example after its `change` handler
|
|
603
|
+
updates the controlling signal) removed the `role="option"` and
|
|
604
|
+
`aria-selected` Web Awesome sets on each option, so screen readers lost every
|
|
605
|
+
option's role and selected state. They now survive in single and `multiple`
|
|
606
|
+
Selects through the core rule below (custom elements own their `role` /
|
|
607
|
+
`aria-*`), with no Select-specific restore.
|
|
608
|
+
|
|
609
|
+
- **`@kerfjs/ui` `Select` dividers keep their separator role across
|
|
610
|
+
re-renders.** The `wa-divider` a `separatorBefore` choice adds lost the
|
|
611
|
+
`role="separator"` and `aria-orientation` Web Awesome sets on it the first
|
|
612
|
+
time the enclosing mount re-rendered, and never got them back, so assistive
|
|
613
|
+
technology stopped announcing the break between option runs. The Select now
|
|
614
|
+
renders both attributes itself.
|
|
615
|
+
|
|
616
|
+
- **`@kerfjs/ui` `Select` and `PopupMenu` re-renders no longer force Web
|
|
617
|
+
Awesome updates.** Web Awesome reflects its default `size`, `appearance`,
|
|
618
|
+
`placement`, and `orientation` onto `wa-select`, `wa-dropdown`, and
|
|
619
|
+
`wa-divider`; the templates omitted them, so every re-render of the enclosing
|
|
620
|
+
mount stripped them and each host ran a full Lit update to put them back. The
|
|
621
|
+
templates now render those defaults (`wa-select size="m"
|
|
622
|
+
appearance="outlined" placement="bottom"`, `wa-dropdown size="m"`, divider
|
|
623
|
+
`orientation="horizontal"`), so an unchanged re-render leaves the hosts
|
|
624
|
+
alone. No visual change. The `@kerfjs/ui/webawesome` JSX declarations type
|
|
625
|
+
these attributes.
|
|
626
|
+
|
|
627
|
+
- **`@kerfjs/ui` Workbench and CollapsiblePanel panes and chrome lists are
|
|
628
|
+
configurable.** The `Pane`s these layouts compose around app content now
|
|
629
|
+
take the new `PaneConfig` type (`contentElement`, `contentLabel`,
|
|
630
|
+
`separators`, `safeAreaEdges`): a Workbench panel's or `CollapsiblePanel`'s
|
|
631
|
+
`pane`, and the Workbench's `mainPane`. The `List`s holding `mainHeader` /
|
|
632
|
+
`mainFooter` take the new `ListConfig` type (`gap`, `hAlign`, `vAlign`,
|
|
633
|
+
`dividerSides`, `textInsets`, `controlInsets`) through `mainHeaderList` /
|
|
634
|
+
`mainFooterList`. Previously this configuration was hard-coded, so, for
|
|
635
|
+
example, a navigator rail could not render its content as a `nav` landmark
|
|
636
|
+
without restyling. Omitted or `undefined` fields keep today's defaults, and
|
|
637
|
+
the default markup is unchanged.
|
|
638
|
+
|
|
639
|
+
- **`@kerfjs/ui` `SplitView` forwards its `ResizableRegion` and compact
|
|
640
|
+
`NavStack` configuration.** `resizable` now also takes the list region's
|
|
641
|
+
`separator`, `handleIcon`, `contentOverflow`, and collapse options
|
|
642
|
+
(`collapsed`, `transitioning`, `collapseMotion`, `restoreControl`,
|
|
643
|
+
`restorePosition`), so an app can hide the list and float a restore control
|
|
644
|
+
without leaving `SplitView`. The new `compactStack` prop forwards the compact
|
|
645
|
+
stack's `toolbarConfig`, `backIcon`, `backText`, `hideToolbar`, and
|
|
646
|
+
persistent `bottomToolbar`, and gives the list and detail views their own
|
|
647
|
+
toolbar groups (`list` / `detail`: `leading`, `center`, `toolbar`,
|
|
648
|
+
`bottomToolbar`). Omitted options keep today's defaults.
|
|
649
|
+
|
|
650
|
+
- **`@kerfjs/ui` `NavStack` renders its top chrome as a real `Toolbar`.** The
|
|
651
|
+
back control is a borderless `ToolbarControlGroup` and the title a
|
|
652
|
+
`ToolbarText` in the leading zone, and the stack now forwards:
|
|
653
|
+
- `toolbarConfig` — the `Toolbar` configuration (`dividerSides`,
|
|
654
|
+
`centerAlign`, `responsive`, `responsiveAt`, `safeAreaEdges`) plus `label`,
|
|
655
|
+
`titleSize` (default `large`), and `headingLevel`;
|
|
656
|
+
- per-view `leading` and `center` groups beside the existing trailing
|
|
657
|
+
`toolbar`;
|
|
658
|
+
- `backIcon` and visible `backText` for the back control.
|
|
659
|
+
|
|
660
|
+
The defaults keep today's bar: no divider, one 44px band, and the top and
|
|
661
|
+
side safe-area edges claimed. The hand-rolled `kui-nav-stack__lead` and
|
|
662
|
+
`kui-nav-stack__actions` wrappers are gone (their content now sits in the
|
|
663
|
+
toolbar's zones), and `kui-nav-stack__back` / `kui-nav-stack__back-icon`
|
|
664
|
+
are no longer styled by the stack.
|
|
665
|
+
|
|
666
|
+
- **`@kerfjs/ui` configures with props instead of token overrides.** Five
|
|
667
|
+
settings apps previously reached through raw `--kui-*` overrides now have a
|
|
668
|
+
typed prop or modifier; each defaults to today's rendering, and the
|
|
669
|
+
underlying tokens keep working:
|
|
670
|
+
- `FloatingToolbar` `inset` (a `CssLength`, default `--kui-space-m`) moves
|
|
671
|
+
it from the container edges. Omit it inside a restore corner, which owns
|
|
672
|
+
the inset.
|
|
673
|
+
- `DisclosureArrow` `size` (a `CssLength`, default 18px root-scaled).
|
|
674
|
+
- `ListHeader` `headingLevel` (1–6, default 2) sets the label's native
|
|
675
|
+
heading element for passive and trailing-action headers; a toggle header
|
|
676
|
+
has no heading and rejects it at compile time.
|
|
677
|
+
- `TokenSearchField` `clearIcon` replaces the clear action's glyph.
|
|
678
|
+
- `.kui-content-item--framed` paints the standard neutral border on a
|
|
679
|
+
content item that marks a real distinction, with no geometry change.
|
|
680
|
+
|
|
681
|
+
The docs and AI guidance also stop recommending `--kui-edge-inset-*`
|
|
682
|
+
overrides: an app-owned arrangement passes `safeAreaEdges` to its panes and
|
|
683
|
+
edge-claiming toolbars (including the layout toolbar configurations, which
|
|
684
|
+
forward it).
|
|
685
|
+
|
|
686
|
+
- **`@kerfjs/ui` hides a work area's floating controls under an open side
|
|
687
|
+
overlay.** While a side overlay is open — a Workbench rail (static
|
|
688
|
+
`presentation: "overlay"`, or a responsive overlay whose breakpoint applies),
|
|
689
|
+
a `wireSidebar` compact overlay or `presentation="overlay"`
|
|
690
|
+
`CollapsiblePanel`, or a horizontal `presentation="overlay"`
|
|
691
|
+
`ResizableRegion` — the covered work area's `FloatingToolbar`s and the
|
|
692
|
+
layouts' restore corners are now hidden (`visibility: hidden`, so they also
|
|
693
|
+
leave the tab order and the accessibility tree) instead of relying on
|
|
694
|
+
stacking order alone. A phone-width app could otherwise paint the main
|
|
695
|
+
column's floating drawer toggle over its open inspector. They come back as
|
|
696
|
+
the overlay closes; the overlay's own floating controls and a bottom
|
|
697
|
+
drawer's overlay are unaffected.
|
|
698
|
+
|
|
699
|
+
- **`@kerfjs/ui` `Select` supports multiple selection.** Set `multiple: true`
|
|
700
|
+
and pass the chosen values as an array `value`; the props are typed so an
|
|
701
|
+
array value requires `multiple`. Behavior:
|
|
702
|
+
- The popup stays open while the person toggles choices with the pointer,
|
|
703
|
+
Enter, or Space, and closes only on an outside press, Escape, or focus
|
|
704
|
+
leaving.
|
|
705
|
+
- Each chosen option shows a check.
|
|
706
|
+
- The closed control summarizes the chosen labels in choice order as a short
|
|
707
|
+
localized list, or shows `placeholderText` when none are chosen.
|
|
708
|
+
- `change` / `input` report the value array, and a form submits every chosen
|
|
709
|
+
value under `name`.
|
|
710
|
+
- Re-rendering with a different `value` updates the selection even after the
|
|
711
|
+
person has interacted.
|
|
712
|
+
|
|
713
|
+
`renderSelected` and `selectedPresentation="icon-only"` stay single-value
|
|
714
|
+
only.
|
|
715
|
+
|
|
716
|
+
- **`@kerfjs/ui` `PopupMenu` now looks exactly like `Select`.** Both read one
|
|
717
|
+
shared popup contract, so a command menu beside a value list in a toolbar
|
|
718
|
+
draws the same popup. `PopupMenu` changes:
|
|
719
|
+
- its caret turns to face the open menu;
|
|
720
|
+
- its menu fades in without scaling;
|
|
721
|
+
- it takes the Select listbox's 4px inset (also under the default
|
|
722
|
+
`menuInset="standard"`);
|
|
723
|
+
- its rows use the Select option's height, padding, and reserved check
|
|
724
|
+
column, and its icons use the same 16px size and 8px gap;
|
|
725
|
+
- a keyboard-focused item takes the Select's current-option fill instead of
|
|
726
|
+
a focus ring;
|
|
727
|
+
- headings render as the Select's uppercase group titles rather than slotted
|
|
728
|
+
`h3` elements.
|
|
729
|
+
|
|
730
|
+
An open `Select` also no longer paints its trigger focus ring. The open
|
|
731
|
+
listbox shows focus, and the ring returns when it closes.
|
|
732
|
+
|
|
733
|
+
- **`@kerfjs/ui` `Catalog` exposes its sidebar and toolbar configuration.** New
|
|
734
|
+
`sidebar` prop (size, `resizable`, `separator`, `collapseMotion`,
|
|
735
|
+
`presentation`, `responsiveOverlayAt`, `compactOverlay`, and the header
|
|
736
|
+
`toolbar`'s `ToolbarConfig`) forwarded to its Workbench rail, plus
|
|
737
|
+
`mainToolbar` / `footerToolbar` `ToolbarConfig` props. `wireCatalog` takes
|
|
738
|
+
`sidebarSize` / `sidebarStorageKey` to wire a resizable sidebar. Today's
|
|
739
|
+
288px fixed sidebar and toolbar policies remain the defaults.
|
|
740
|
+
|
|
741
|
+
- **`@kerfjs/ui` composed toolbars are configurable.** `WorkbenchMainToolbar`,
|
|
742
|
+
`WorkbenchMainBottomToolbar`, and the panel `toolbar` of a Workbench panel or
|
|
743
|
+
`CollapsiblePanel` now take the `Toolbar`'s configuration: the new
|
|
744
|
+
`ToolbarConfig` type, covering `dividerSides`, `centerAlign`, `responsive`,
|
|
745
|
+
`responsiveAt`, and `safeAreaEdges`. Previously their dividers were
|
|
746
|
+
hard-coded, so for example dropping the line between a toolbar and its
|
|
747
|
+
content took CSS. Today's dividers remain the defaults. Also:
|
|
748
|
+
- `mainBottomToolbar` and panel toolbars take a `center`;
|
|
749
|
+
- panel toggles take localized `showLabel` / `hideLabel`;
|
|
750
|
+
- a Workbench panel's floating restore controls follow its
|
|
751
|
+
`restorePosition`.
|
|
752
|
+
|
|
753
|
+
- **Breaking (`@kerfjs/ui`): removed the pre-release compatibility surface.**
|
|
754
|
+
- The `DividerSides` type is gone; use `Sides`, from the renamed `sides`
|
|
755
|
+
module.
|
|
756
|
+
- `ListInsetText.horizontalOnly` and its `kui-list-inset-text--horizontal`
|
|
757
|
+
class are gone; pass `sides="rl"` instead.
|
|
758
|
+
- The legacy color tokens are gone, both as `--kui-color-*` properties and
|
|
759
|
+
as `uiColor()` names. Replace them with their canonical tokens:
|
|
760
|
+
|
|
761
|
+
| Removed | Use instead |
|
|
762
|
+
| --------------------------------------------- | ----------------------- |
|
|
763
|
+
| `border` | `neutral-border-normal` |
|
|
764
|
+
| `border-quiet` | `neutral-border-quiet` |
|
|
765
|
+
| `accent` | `brand-fill-normal` |
|
|
766
|
+
| `accent-text` | `brand-on-quiet` |
|
|
767
|
+
| `pop` | `pop-fill-quiet` |
|
|
768
|
+
| `pop-text` | `pop-on-fill` |
|
|
769
|
+
| `success`, `warning`, `danger` | `*-fill-quiet` |
|
|
770
|
+
| `success-text`, `warning-text`, `danger-text` | `*-on-quiet` |
|
|
771
|
+
|
|
772
|
+
- **New `@kerfjs/ui` `PopupMenu` (`@kerfjs/ui/popup-menu`).** It renders a
|
|
773
|
+
trigger and typed commands, headings, and dividers over the Web Awesome
|
|
774
|
+
dropdown. Put it in a `single` `ToolbarControlGroup` with `nestedDropdown`, or
|
|
775
|
+
wrap it in a `PopupSurface`. Register it once with
|
|
776
|
+
`@kerfjs/ui/popup-menu/register`. It replaces hand-written `wa-dropdown`
|
|
777
|
+
markup, which the catalog discourages: the guidance, the toolbar demos, and
|
|
778
|
+
the Catalog's "Components" menu now use it. It also fixes two defects that
|
|
779
|
+
hand-written menus had:
|
|
780
|
+
- Icon-only triggers were unnamed, because a Web Awesome button ignores an
|
|
781
|
+
`aria-label` on its host. PopupMenu renders `label` as visually hidden text
|
|
782
|
+
inside the button.
|
|
783
|
+
- A keyboard choice (Enter or Space) never reached click-delegated
|
|
784
|
+
`data-action` handlers. PopupMenu's registration routes it through the
|
|
785
|
+
item's click.
|
|
786
|
+
- The UX catalog's application-layout demo no longer uses the discouraged
|
|
787
|
+
`wa-button-group`.
|
|
788
|
+
|
|
789
|
+
- **`@kerfjs/ui`'s `TokenSearchField` takes a `revision` prop for programmatic
|
|
790
|
+
text replacement.** The editor's text is DOM-owned, so a new `query` with the
|
|
791
|
+
same tokens was silently ignored, for example when reseeding a persistent
|
|
792
|
+
dialog's field on reopen. Changing `revision` rebuilds the editor from `query`
|
|
793
|
+
and `tokens`, so consumers no longer need to re-key a wrapper element.
|
|
794
|
+
|
|
795
|
+
- **`@kerfjs/ui`'s `TabBar` strip no longer scrolls vertically.** The strip set
|
|
796
|
+
only `overflow-x: auto`, so any vertical excess (consumer padding, focus-ring
|
|
797
|
+
insets, taller tabs under larger text) let it scroll up and down on touch. It
|
|
798
|
+
now scrolls only horizontally, and it takes a `min-height` so it grows to fit
|
|
799
|
+
taller tabs instead of clipping them.
|
|
800
|
+
|
|
801
|
+
- **The `@kerfjs/ui` desktop app-shell recipe is a `Workbench`.** The old
|
|
802
|
+
pane switcher that showed one pane at a time below desktop sizes is gone. The
|
|
803
|
+
navigation and inspector are now resizable Workbench rails with their own
|
|
804
|
+
toolbars, and their show toggles relocate into the work-area toolbar. On a
|
|
805
|
+
narrow container the rails overlay the task list one at a time. The
|
|
806
|
+
collapsible-sidebar recipe composes each panel's `toolbar` and uses
|
|
807
|
+
`CollapsiblePanelRelocated` for its restore controls.
|
|
808
|
+
|
|
809
|
+
- **`@kerfjs/ui`'s `CollapsiblePanel` composes a panel toolbar and relocates its
|
|
810
|
+
controls.** A panel takes the same `toolbar` roles as a `Workbench` panel
|
|
811
|
+
(`title`, `panelOnly`, `constant`, and a standard `toggle`) plus a `footer`,
|
|
812
|
+
and the new `CollapsiblePanelRelocated` renders a collapsed panel's constant
|
|
813
|
+
groups and toggle wherever the app's work-area toolbar holds them.
|
|
814
|
+
`wireSidebar` hands focus to that relocated toggle when the panel closes, even
|
|
815
|
+
when the app renders it a frame late. `collapsiblePanelToggleIcon` is
|
|
816
|
+
unchanged.
|
|
817
|
+
|
|
818
|
+
- **`@kerfjs/ui`'s `Catalog` is built on `Workbench` and dogfoods the package's
|
|
819
|
+
components.** The sidebar is a Workbench left rail with the standard toggle
|
|
820
|
+
(labels "Show/Hide {brand} catalog"), which moves into the entry toolbar while
|
|
821
|
+
collapsed; on a small screen the sidebar overlays the stage instead of the
|
|
822
|
+
former stacked two-column navigation, which is gone. The sidebar, sections,
|
|
823
|
+
footer, and example notes are `List` / `ListHeader` / `ListInsetText` / `Text`
|
|
824
|
+
compositions, and most catalog CSS (and every viewport media query in the
|
|
825
|
+
shell) is removed. New: `Catalog`'s `id`, `headerPlacement`, and
|
|
826
|
+
`footerPlacement`; `wireCatalog`'s `collapsed` and `id` options (the sidebar is
|
|
827
|
+
wired like a Workbench rail and an open overlay closes on a selection);
|
|
828
|
+
`Workbench`'s `mainHeader`, `mainFooter`, `mainHeaderPlacement`,
|
|
829
|
+
`mainFooterPlacement`, and `mainToolbar.responsive` / `responsiveAt`;
|
|
830
|
+
`ListInsetText`'s `rootAttributes`. `wireWorkbench` now also re-checks panel
|
|
831
|
+
breakpoints when the root font size changes, and hands focus to a panel's
|
|
832
|
+
relocated toggle when an unfocused click on its own toggle closes it (WebKit).
|
|
833
|
+
|
|
834
|
+
- **`@kerfjs/ui`'s `Workbench` rails overlay the work area on small screens by
|
|
835
|
+
default.** A rail's `responsiveOverlayAt` now defaults to `"narrow"` (704px
|
|
836
|
+
of Workbench width; the new `"never"` keeps it inline), so a sidebar covers
|
|
837
|
+
the work area and any open drawer instead of squeezing it, one at a time
|
|
838
|
+
with `wireWorkbench`. On a compact (448px) Workbench an open overlay rail
|
|
839
|
+
fills the width less a 44px dismiss strip
|
|
840
|
+
(`--kui-workbench-overlay-dismiss-margin`) on the side away from its edge;
|
|
841
|
+
the new per-rail `compactOverlay: "full"` fills it. The bottom drawer's
|
|
842
|
+
behavior is unchanged. `WorkbenchPanelToolbar` and the other panel-toolbar
|
|
843
|
+
types are now exported from `@kerfjs/ui/workbench`.
|
|
844
|
+
|
|
845
|
+
- **`@kerfjs/ui`'s `Workbench` composes panel toolbars and moves a closed
|
|
846
|
+
panel's controls into the work area.** A panel takes an optional `toolbar`
|
|
847
|
+
(`title`, `panelOnly`, `constant`, and a standard `toggle: { action, name }`
|
|
848
|
+
the Workbench renders) and `footer`; the Workbench takes `mainToolbar` and
|
|
849
|
+
`mainBottomToolbar`. While a panel is closed its constant groups and toggle
|
|
850
|
+
move to the work area — a left rail's lead the main toolbar, a right rail's
|
|
851
|
+
end it, a drawer's trail the bottom toolbar or float in a corner
|
|
852
|
+
`FloatingToolbar` — and its panel-only groups stay behind. `wireWorkbench`
|
|
853
|
+
keeps focus with the toggle as it moves. Panels without a `toolbar` render
|
|
854
|
+
exactly as before, and a region's only-child `Pane` or layout now fills it.
|
|
855
|
+
|
|
856
|
+
- **`@kerfjs/ui`'s list-detail dialog guidance is Workbench-shaped.** On roomy
|
|
857
|
+
devices the list is a full-height sidebar and the detail a full-height main
|
|
858
|
+
column, each a `Pane` with its own top `Toolbar`; the main column carries
|
|
859
|
+
the primary title, the close control (`data-dialog="close"` in a
|
|
860
|
+
`without-header` Web Awesome dialog), and the record actions, instead of a
|
|
861
|
+
dialog header spanning both columns. The recipe, `docs/recipes.md`, and the
|
|
862
|
+
shipped AI skill say so; compact devices keep the full-screen drill-down
|
|
863
|
+
sheet.
|
|
864
|
+
|
|
865
|
+
- **`@kerfjs/ui`'s `ToolbarControlGroup` centers a direct icon tile.** A
|
|
866
|
+
non-interactive icon placed directly in a group — a heading's identity
|
|
867
|
+
glyph — now takes an icon button's 40px slot and 16px visual, so it centers
|
|
868
|
+
in the group. It previously sat at the group's start edge, which pushed
|
|
869
|
+
apps to wrap it in a focusable `<button>` that did nothing.
|
|
870
|
+
|
|
871
|
+
- **`@kerfjs/ui`'s `Toolbar` keeps its controls in a top control band.** A
|
|
872
|
+
toolbar now reserves one 44px band at its top: each zone item no taller than
|
|
873
|
+
the band is centered in it by its own size, and a taller item — a wrapped
|
|
874
|
+
`ToolbarText` title, a multi-line search, a second trailing row — starts at
|
|
875
|
+
the band's top and grows down without moving the others. A wrapped title
|
|
876
|
+
centers its first line in the band, so trailing controls stay beside that
|
|
877
|
+
line instead of dropping to the middle of the whole title.
|
|
878
|
+
|
|
879
|
+
- **`@kerfjs/ui`'s segmented `TabBar` ends its strip concentric with the pill
|
|
880
|
+
track.** The first tab's leading corners, and with `allocation="fill"` the
|
|
881
|
+
last tab's trailing corners, now follow the track's curve instead of keeping
|
|
882
|
+
the small segment radius, and compact tabs are inset from the track's ends
|
|
883
|
+
by the same distance as from its top and bottom. Corners between tabs are
|
|
884
|
+
unchanged.
|
|
885
|
+
|
|
886
|
+
- **`@kerfjs/ui`'s `StateBanner` keeps its title, badge, and detail on one
|
|
887
|
+
baseline in Safari.** The truncating detail was a clipped `inline-block`,
|
|
888
|
+
which WebKit baselines at its bottom edge: the detail rose about 2px above
|
|
889
|
+
the title and pushed the title and badge down, so the banner's contents
|
|
890
|
+
looked vertically misaligned. The detail is now an inline flex wrapper
|
|
891
|
+
around a clipped inner `<span>`, which takes its text baseline in every
|
|
892
|
+
engine; truncation and the narrow-width detail line are unchanged.
|
|
893
|
+
|
|
894
|
+
- **`@kerfjs/ui`'s `wireTabBars` reveals a tab the application selects.** A
|
|
895
|
+
tab added and selected by the app in an overflowing `TabBar` stayed
|
|
896
|
+
off-screen, because the wiring revealed a selection only at wire-up, on
|
|
897
|
+
focus, and after its own keyboard/drag changes. A change of a bar's selected
|
|
898
|
+
tab now scrolls that bar's strip (never the page) to show it; re-renders that
|
|
899
|
+
keep the selection leave a user-scrolled strip alone.
|
|
900
|
+
|
|
901
|
+
- **`eslint-plugin-kerfjs`'s `ui-composition` rule resolves application
|
|
902
|
+
wrappers imported through a barrel.** A cataloged wrapper registered only by
|
|
903
|
+
its defining source file, so `import { DemandSegmentsControl } from
|
|
904
|
+
'./components/index.js'` (where `index.ts` re-exports it) was an unknown
|
|
905
|
+
element and reported `KUI-L202` in a toolbar zone despite its `rendersAs`.
|
|
906
|
+
Relative re-exports — `export { X } from`, `export { X as Y } from`,
|
|
907
|
+
`export * from`, and chains of them — are now followed to the cataloged
|
|
908
|
+
source file. Type-only and namespace re-exports and non-cataloged components
|
|
909
|
+
stay unresolved.
|
|
910
|
+
|
|
911
|
+
- **A collapsed `@kerfjs/ui` `Workbench` panel or `ResizableRegion` leaves
|
|
912
|
+
the accessibility tree.** Only its content was `inert`, so the labeled
|
|
913
|
+
`aside` / `section` stayed behind as an empty complementary or region
|
|
914
|
+
landmark that a screen-reader user could still land on. The collapsed
|
|
915
|
+
region itself now renders `inert` and `aria-hidden="true"`, like a
|
|
916
|
+
collapsed `CollapsiblePanel`; its separator was already hidden, and each
|
|
917
|
+
`restoreControl` renders outside it and stays reachable.
|
|
918
|
+
|
|
919
|
+
- **An expanded `@kerfjs/ui` `CollapsiblePanel` holds its size in a flex
|
|
920
|
+
layout.** The panel shrank like any flex item beside a work area with wide
|
|
921
|
+
content, while its content kept the panel's fixed size for the slide-out, so
|
|
922
|
+
the panel's edge clipped the content — in the collapsible-sidebar recipe at
|
|
923
|
+
1280px, the rail showed 211 of its 232px and cut off the selected Inbox
|
|
924
|
+
row's count. The panel is now `flex-shrink: 0`; the sibling work area gives
|
|
925
|
+
way instead.
|
|
926
|
+
|
|
927
|
+
- **`@kerfjs/ui` overlay panels span their host on the fixed axis.** The
|
|
928
|
+
85vw / 85vh overlay maximums (`--kui-resizable-region-overlay-max-*`,
|
|
929
|
+
`--kui-workbench-overlay-max-*`) applied to both axes, so an overlay bottom
|
|
930
|
+
drawer stopped about 15% short of its host's width and an overlay side rail
|
|
931
|
+
in a full-height layout stopped short of the bottom. Each maximum now caps
|
|
932
|
+
only the panel's resizable axis: side overlays cap their width, drawers
|
|
933
|
+
their height.
|
|
934
|
+
|
|
935
|
+
- **An overlay `@kerfjs/ui` `ResizableRegion` paints the surface.** With
|
|
936
|
+
`presentation="overlay"` the region floated over the work area with a
|
|
937
|
+
shadow but no background, so the content beneath — and a collapsed rail's
|
|
938
|
+
restore control stacked under it — showed through. It now paints
|
|
939
|
+
`--kui-color-surface`, like an overlay `CollapsiblePanel`; an inline region
|
|
940
|
+
stays transparent over its host.
|
|
941
|
+
|
|
942
|
+
- **A pinned `@kerfjs/ui` resize separator no longer overwrites the
|
|
943
|
+
remembered size.** When a container squeezes a `Workbench` rail, drawer, or
|
|
944
|
+
`ResizableRegion` below its `min` (or its reachable range collapses to one
|
|
945
|
+
size), the separator cannot move it, yet an arrow/Home/End key or a drag
|
|
946
|
+
still committed the configured `min` to the app's size signal and storage:
|
|
947
|
+
a rail remembered at 280px silently became 180px and came back at 180px
|
|
948
|
+
when the window widened. A pinned separator now commits nothing, so the
|
|
949
|
+
track returns at its remembered size once there is room.
|
|
950
|
+
|
|
951
|
+
- **A `pending` `@kerfjs/ui` `AppTab` is selectable and no longer dimmed.**
|
|
952
|
+
A known tab that is still opening now keeps its select button enabled and
|
|
953
|
+
in the roving tab order, so a user can switch to it and the application can
|
|
954
|
+
show placeholder content in its panel until loading completes. With
|
|
955
|
+
`webawesome.css` loaded, Web Awesome's native `button:disabled` no longer
|
|
956
|
+
dims the pending pill to 50%; it shows only its quiet name color and
|
|
957
|
+
trailing spinner, as documented. Close and dragging stay disabled while
|
|
958
|
+
pending, and it stays `aria-busy`. An unknown `placeholder` tab is
|
|
959
|
+
unchanged: disabled and out of the tab order.
|
|
960
|
+
|
|
961
|
+
- **Closing a `@kerfjs/ui` `Workbench` panel from its own control by mouse
|
|
962
|
+
returns focus in Safari.** Safari never focuses a clicked button, so
|
|
963
|
+
pressing an open panel's Hide control blurred the focused control to the
|
|
964
|
+
page before the click collapsed the panel, and `wireWorkbench` — which
|
|
965
|
+
returns focus only when it is inside the closing panel — left focus on the
|
|
966
|
+
page body instead of the toggle that opened it. A press that starts inside
|
|
967
|
+
the panel while focus is there now counts as focus inside, so the close
|
|
968
|
+
returns it; focus the user has moved to another element since is left
|
|
969
|
+
alone.
|
|
970
|
+
- **A collapsed `@kerfjs/ui` `CollapsiblePanel` or `ResizableRegion` leaves
|
|
971
|
+
the Tab order.** Both kept collapsed content in the DOM, only slid out and
|
|
972
|
+
clipped, so Tab still reached its controls; focusing one scrolled the clipped
|
|
973
|
+
panel, and a `CollapsiblePanel`'s `aria-hidden` put those focusable controls
|
|
974
|
+
inside a hidden subtree. A collapsed `CollapsiblePanel` now renders `inert`
|
|
975
|
+
beside its `aria-hidden`, and a collapsed `ResizableRegion` renders its
|
|
976
|
+
content wrapper `inert`, with no wiring needed. The slide-out still animates,
|
|
977
|
+
each `restoreControl` stays outside the inert subtree and reachable, and
|
|
978
|
+
`wireSidebar` still hands focus to the panel's toggle when it collapses from
|
|
979
|
+
inside.
|
|
980
|
+
|
|
981
|
+
- **A collapsed `@kerfjs/ui` `Workbench` rail's restore control no longer
|
|
982
|
+
covers an expanded bottom drawer.** A `leftRail` / `rightRail`
|
|
983
|
+
`restoreControl` floats in the Workbench's bottom corner, which the bottom
|
|
984
|
+
drawer's column reaches once the rail collapses, so with the drawer expanded
|
|
985
|
+
the control sat on the drawer's content. An expanded inline drawer now
|
|
986
|
+
publishes its top edge as a CSS anchor scoped to its Workbench, and the
|
|
987
|
+
rail's control floats the restore inset above it, returning to the corner
|
|
988
|
+
when the drawer collapses. An overlay drawer (static or `responsiveOverlayAt`)
|
|
989
|
+
still covers the control as every open overlay does, a nested Workbench's
|
|
990
|
+
drawer moves only its own rails' controls, and engines without anchor
|
|
991
|
+
positioning keep the corner.
|
|
992
|
+
|
|
993
|
+
- **A collapsed `@kerfjs/ui` `Workbench` panel's content leaves the Tab order.**
|
|
994
|
+
A collapsed rail or bottom drawer kept its content in the DOM, only slid out
|
|
995
|
+
and clipped, so Tab still reached its controls; focusing one (at a narrow
|
|
996
|
+
width, the collapsed inspector's or output drawer's own Hide control)
|
|
997
|
+
scrolled the clipped panel and slid its hidden content back over the work
|
|
998
|
+
area. The panel's content wrapper now renders `inert` while `collapsed`, with
|
|
999
|
+
no wiring needed, so neither Tab nor assistive technology reaches it; the
|
|
1000
|
+
slide-out still animates and the `restoreControl`, which lives outside the
|
|
1001
|
+
content, stays reachable.
|
|
1002
|
+
|
|
1003
|
+
- **A `kerfjs/overlay` popover or tooltip in a transformed or filtered modal
|
|
1004
|
+
`<dialog>` now lands against its anchor.** A surface rendered into a
|
|
1005
|
+
dialog's `[data-kerf-overlay-host][data-morph-skip]` slot is
|
|
1006
|
+
`position: fixed`, and a dialog styled with `transform`, `filter`,
|
|
1007
|
+
`perspective`, `contain`, or `will-change` becomes the containing block for
|
|
1008
|
+
fixed descendants, so the surface used to land offset by the dialog's
|
|
1009
|
+
position (and scale). `positionAnchored` (and so `autoReposition`,
|
|
1010
|
+
`popover()`, and `tooltip()`) now measures the element's fixed-position
|
|
1011
|
+
containing block with a transient 1px probe and maps its viewport
|
|
1012
|
+
coordinates into it, compensating translation and scale. Rotated or skewed
|
|
1013
|
+
containing blocks are not compensated.
|
|
1014
|
+
- **The `@kerfjs/ui` UX catalog demonstrates a standalone restore control.**
|
|
1015
|
+
The CollapsiblePanel route gains a "Restore control" example: a bottom
|
|
1016
|
+
drawer that collapses to a `FloatingToolbar` `restoreControl` in its frame's
|
|
1017
|
+
corner, wired with `wireSidebar` so the control restores the drawer and
|
|
1018
|
+
focus moves between it and the drawer's own hide toggle.
|
|
1019
|
+
|
|
1020
|
+
- **A `@kerfjs/ui` collapsed rail's restore control no longer covers an open
|
|
1021
|
+
bottom drawer beside it.** When a `CollapsiblePanel` or `ResizableRegion`
|
|
1022
|
+
with a `restoreControl` shared its container with an expanded bottom
|
|
1023
|
+
drawer — a bottom `CollapsiblePanel` or bottom `ResizableRegion` — as a
|
|
1024
|
+
sibling or inside the app's work-area column, the control floated in the
|
|
1025
|
+
container's bottom corner, on top of the drawer. It now floats the same
|
|
1026
|
+
inset above the drawer's top edge, follows the drawer as it resizes, and
|
|
1027
|
+
returns to the corner when the drawer collapses. A drawer nested deeper,
|
|
1028
|
+
inside the work area's own content, does not move it. This uses CSS anchor
|
|
1029
|
+
positioning; engines without it keep the container corner.
|
|
1030
|
+
|
|
1031
|
+
- **An open `@kerfjs/ui` `CollapsiblePanel` or `ResizableRegion` overlay now
|
|
1032
|
+
covers other panels' restore controls, as a `Workbench` overlay does.** A
|
|
1033
|
+
collapsed panel's `restoreControl` stacked at z-index 42, above
|
|
1034
|
+
`wireSidebar`'s compact overlay and its backdrop and above an overlay
|
|
1035
|
+
`ResizableRegion`, so it floated over an open overlay and stayed clickable
|
|
1036
|
+
behind the overlay's focus trap. `--kui-collapsible-panel-restore-z` now
|
|
1037
|
+
defaults to two less than `--kui-collapsible-panel-overlay-z` (38),
|
|
1038
|
+
`--kui-resizable-region-restore-z` to two less than
|
|
1039
|
+
`--kui-resizable-region-overlay-z` (39), and the compact backdrop's
|
|
1040
|
+
`--kui-collapsible-panel-backdrop-z` to one less than the overlay (still
|
|
1041
|
+
39), so an app that moves the overlay z-index keeps the order. When the
|
|
1042
|
+
overlay closes, the control shows and works again.
|
|
1043
|
+
- **An open `@kerfjs/ui` `Workbench` overlay now covers other panels'
|
|
1044
|
+
restore controls.** Restore controls stacked above every overlay, so a
|
|
1045
|
+
collapsed drawer's corner restore control floated over an open right-rail
|
|
1046
|
+
overlay's content. An open overlay is now the top layer, like a sheet over
|
|
1047
|
+
the view beneath it: `--kui-workbench-restore-z` defaults to two less than
|
|
1048
|
+
`--kui-workbench-overlay-z` (39 by default, previously 42), below the
|
|
1049
|
+
drawer and rail overlays. When the overlay closes, the control shows and
|
|
1050
|
+
works again; a collapsed overlay passes pointer events through to it.
|
|
1051
|
+
- **`@kerfjs/ui` `wireWorkbench` overlay panels now take focus and keep Tab
|
|
1052
|
+
inside them,** like `wireSidebar`'s compact overlay (the ARIA dialog
|
|
1053
|
+
pattern). An open overlay covers the work area, yet focus stayed on the
|
|
1054
|
+
control that opened it and Tab walked through the covered editor. A wired
|
|
1055
|
+
panel that opens while it presents as an overlay now focuses its first
|
|
1056
|
+
focusable control (usually the close control in its header); while it is
|
|
1057
|
+
open, Tab and Shift+Tab cycle through its controls, and Escape, its own
|
|
1058
|
+
close control, or an outside press leaves it, returning focus to the
|
|
1059
|
+
opener. Panels opening inline never move focus. Focus returned on close
|
|
1060
|
+
also skips an opener inside another panel that has closed since.
|
|
1061
|
+
`dismissOverlays: false` leaves all of this to the app.
|
|
1062
|
+
- **`@kerfjs/ui` `Workbench` keeps its work-area minimum beside fixed rails
|
|
1063
|
+
and above the bottom drawer.** `mainMinSize` used to apply only beside a
|
|
1064
|
+
resizable rail, so two fixed 280px rails on a ~730px Workbench left the
|
|
1065
|
+
editor 174px; now every inline rail, fixed or resizable, shrinks in
|
|
1066
|
+
proportion (its content following the shown width) to keep the work area
|
|
1067
|
+
`mainMinSize` px wide. A new `mainMinHeight` prop (default 120, `0` turns it
|
|
1068
|
+
off) is the drawer's counterpart: an inline drawer, fixed or resizable,
|
|
1069
|
+
shrinks when the Workbench gets shorter, and `wireWorkbench` stops a
|
|
1070
|
+
resizable drawer where the work area would drop below that height (reported
|
|
1071
|
+
in `aria-valuemax`) instead of only at the drawer's own `max`.
|
|
1072
|
+
- **A `@kerfjs/ui` Workbench rail squeezed below its minimum now reports the
|
|
1073
|
+
width it shows.** When the Workbench was too narrow for a rail's `min`
|
|
1074
|
+
beside the work-area minimum, the rail showed about 172px while its
|
|
1075
|
+
separator still announced `aria-valuenow="180"`. The separator now reports
|
|
1076
|
+
the shown width, with `aria-valuemin` and `aria-valuemax` pinned to it: the
|
|
1077
|
+
WAI-ARIA window splitter's value is the separator's actual position and must
|
|
1078
|
+
sit inside its range, and the separator cannot move a rail the container
|
|
1079
|
+
holds there. Resizing still commits no less than `min`, and the configured
|
|
1080
|
+
range returns once there is room. A `ResizableRegion` a parent clamps below
|
|
1081
|
+
its `min` reports the same way.
|
|
1082
|
+
- **`KUI-L018` (`kerf-ui-analyze` / `kerf-ui-doctor`) now measures contrast and
|
|
1083
|
+
follows the cascade.** When a `--wa-color-{tone}-fill-loud` override and its
|
|
1084
|
+
`on-loud` are both literal colors (including `light-dark()`), a pair below
|
|
1085
|
+
4.5:1 in either color scheme is reported with its ratio, and an unpaired
|
|
1086
|
+
literal fill that still clears 4.5:1 against the theme's default `on-loud`
|
|
1087
|
+
is no longer reported. An `on-loud` set in an ancestor scope (`:root`, or the
|
|
1088
|
+
leading selector of a descendant chain) or in another stylesheet the same
|
|
1089
|
+
entry loads now counts as the pair.
|
|
1090
|
+
- **`kerf-component-catalog` lets a private application declare components
|
|
1091
|
+
without a fake `exports` map.** In a private package
|
|
1092
|
+
(`"private": true`), a component's `publicExports` items may omit `subpath`; the generator
|
|
1093
|
+
verifies each name against the component's `source` file instead of
|
|
1094
|
+
requiring a `./dist/<path>.js` export the bundled app never emits. Publishable
|
|
1095
|
+
packages still need every subpath in `exports`. The v2 catalog schema makes
|
|
1096
|
+
`subpath` optional to match, and the `kerfjs/ui-composition` rule resolves a
|
|
1097
|
+
subpath-less export only by its source file.
|
|
1098
|
+
- **`kerf-ui-doctor` and the `kerfjs/ui-public-boundaries` ESLint rule no
|
|
1099
|
+
longer flag the documented `class="kui-app-root"` as KUI-L101 private
|
|
1100
|
+
anatomy.** The `@kerfjs/ui` component catalog now has a `document-baseline`
|
|
1101
|
+
composition entry for `@kerfjs/ui/document.css` that lists `kui-app-root`
|
|
1102
|
+
as its public class, with a catalog demo route showing a `SplitView` filling
|
|
1103
|
+
the root's definite height.
|
|
1104
|
+
- The `@kerfjs/ui` heading guidance (`ai/skill.md`, `llms.txt`,
|
|
1105
|
+
`docs/component-selection.md`, `docs/layout.md`) now sizes a panel title to
|
|
1106
|
+
its track: extra-large `ToolbarText` stays the title size for a page, view,
|
|
1107
|
+
dialog, or pane that holds it, while a narrow peripheral rail or drawer
|
|
1108
|
+
names itself with the default size, since extra-large truncated "Inspector"
|
|
1109
|
+
to "Ins…" in a 160px Workbench rail.
|
|
1110
|
+
- **A `@kerfjs/ui` `Workbench` panel open when `wireWorkbench` wired up no
|
|
1111
|
+
longer drops focus to the page when it closes from inside.** Such a panel
|
|
1112
|
+
had no recorded opener, so without a restore control closing it from its
|
|
1113
|
+
own header left focus on `<body>`. Focus now falls back to a control
|
|
1114
|
+
outside the panel whose `aria-controls` names it (or an element inside it).
|
|
1115
|
+
Each panel renders a stable `id` for that — `<id>-left-rail`,
|
|
1116
|
+
`<id>-right-rail`, and `<id>-bottom-drawer` — so a toggle can name the
|
|
1117
|
+
panel it controls.
|
|
1118
|
+
- **`@kerfjs/ui` `wireWorkbench` keeps overlay panels exclusive.** At a narrow
|
|
1119
|
+
width two overlay rails could both be open and, together wider than the
|
|
1120
|
+
Workbench, the right rail covered the left rail's own close control. Opening
|
|
1121
|
+
a panel while it presents as an overlay now closes every other open overlay
|
|
1122
|
+
panel, the bottom drawer included, like `wireSidebar`'s compact overlays;
|
|
1123
|
+
panels presenting inline are never closed by it. New option
|
|
1124
|
+
`exclusiveOverlays` (default `true`); pass `false` to let overlays stay open
|
|
1125
|
+
together.
|
|
1126
|
+
- **A `@kerfjs/ui` `CollapsiblePanel` or `ResizableRegion` restore control
|
|
1127
|
+
stays inside its container.** `restoreControl` was `position: fixed` to the
|
|
1128
|
+
viewport, so a panel or region embedded in a page floated it over unrelated
|
|
1129
|
+
page content. It now floats in the `restorePosition` corner of the element
|
|
1130
|
+
that holds the panel (or region), scrolls with it, and is inset by the
|
|
1131
|
+
component's restore inset plus the unsafe area of the edges that container
|
|
1132
|
+
reaches, so a full-viewport shell still places it clear of them. While the
|
|
1133
|
+
control is shown, that container isolates its stacking and becomes its
|
|
1134
|
+
containing block; an app that positions the container itself keeps its own
|
|
1135
|
+
`position`. As in `Workbench`, the corner owns the inset, so a
|
|
1136
|
+
`FloatingToolbar` hosting the control no longer doubles it.
|
|
1137
|
+
- The `@kerfjs/ui` UX catalog's Workbench page gains a responsive overlay
|
|
1138
|
+
drawer example: an output drawer with `responsiveOverlayAt: "narrow"` that
|
|
1139
|
+
takes its own track beside a wide editor and becomes a transient overlay
|
|
1140
|
+
over the editor's bottom once the Workbench is 704px or narrower, starting
|
|
1141
|
+
hidden there and closing from its own header, on Escape, or on a press
|
|
1142
|
+
outside it. The Workbench guide shows the pattern.
|
|
1143
|
+
- A `@kerfjs/ui` `Workbench` now stacks overlay rails above an overlay bottom
|
|
1144
|
+
drawer. With the drawer and a rail both presented as overlays, their order
|
|
1145
|
+
followed the markup, so the drawer covered the left rail while the right
|
|
1146
|
+
rail covered the drawer. Both rails now stack above the drawer, mirroring
|
|
1147
|
+
the inline layout where rails span the full height beside the drawer's
|
|
1148
|
+
column, and the right rail stacks above the left; restore controls stay
|
|
1149
|
+
above every overlay. The drawer's overlay z-index is now one less than
|
|
1150
|
+
`--kui-workbench-overlay-z`.
|
|
1151
|
+
- **A `@kerfjs/ui` `Workbench` overlay rail can always be closed from inside
|
|
1152
|
+
itself.** At a narrow width, the UX catalog's inspector overlay covered the
|
|
1153
|
+
editor toolbar's "Hide inspector" toggle, leaving only Escape or an outside
|
|
1154
|
+
press to close it. The catalog's resizable rails now carry their own close
|
|
1155
|
+
control in their `Pane` header, and the Workbench guide recommends the same
|
|
1156
|
+
for any panel that may present as an overlay. `wireWorkbench` now returns
|
|
1157
|
+
focus stranded in a panel however the panel closed — including through the
|
|
1158
|
+
app's own control inside it, and for inline panels — to the control that
|
|
1159
|
+
opened it, else to its restore control; before, only an Escape, an outside
|
|
1160
|
+
press, or a breakpoint collapse returned it.
|
|
1161
|
+
- **A `@kerfjs/ui` `Workbench` restore control stays inside its Workbench.**
|
|
1162
|
+
`restoreControl` was `position: fixed` to the viewport, so an embedded
|
|
1163
|
+
Workbench (the UX catalog's, for one) floated it over the page footer. It is
|
|
1164
|
+
now anchored to a corner of the Workbench itself — the drawer's in the
|
|
1165
|
+
corner of the work-area column, so it never covers an expanded rail — inset
|
|
1166
|
+
by `--kui-workbench-restore-inset` plus the unsafe area of the edges that
|
|
1167
|
+
corner reaches, and it scrolls with the Workbench. The Workbench now
|
|
1168
|
+
isolates its own stacking, so its overlays and restore controls never stack
|
|
1169
|
+
against the page around it. A `FloatingToolbar` can host the control
|
|
1170
|
+
without doubling the inset: the corner owns it, and `FloatingToolbar` now
|
|
1171
|
+
honors `--kui-floating-toolbar-inset` set on an ancestor as well as on
|
|
1172
|
+
itself. The catalog's collapsed console restores from such a toolbar.
|
|
1173
|
+
- **`@kerfjs/ui` `wireWorkbench` makes overlay panels transient.** A rail
|
|
1174
|
+
whose `responsiveOverlayAt` breakpoint applied stayed expanded over the
|
|
1175
|
+
editor until the user found its toggle. Pass a panel's app-owned
|
|
1176
|
+
`collapsed` signal (`panels: { leftRail: { collapsed } }`; `size` is now
|
|
1177
|
+
optional, so a panel need not be resizable) and, like `wireSidebar`'s
|
|
1178
|
+
compact overlay, the wiring collapses it when the breakpoint begins to
|
|
1179
|
+
apply (without the collapse motion) and gives back its inline state when
|
|
1180
|
+
the breakpoint stops applying or the wiring is disposed. An open overlay
|
|
1181
|
+
panel, responsive or `presentation: "overlay"`, closes on Escape or on a
|
|
1182
|
+
press that starts and ends outside it, and focus stranded inside returns to
|
|
1183
|
+
the control that opened it, else to its restore control. It is on by
|
|
1184
|
+
default for panels given `collapsed`; `dismissOverlays: false` turns it
|
|
1185
|
+
off. The UX catalog's resizable example wires its rails this way.
|
|
1186
|
+
- A `@kerfjs/ui` `Workbench` rail with `presentation: "overlay"` now renders
|
|
1187
|
+
exactly its size. Out of flow, it sized to its content plus its 1px
|
|
1188
|
+
separator border, so a 280px rail measured 281px; it now takes its size
|
|
1189
|
+
explicitly, as the responsive overlays do. Rails and the drawer are also
|
|
1190
|
+
`border-box` now, so a panel's `size` is its whole track, border included,
|
|
1191
|
+
even in an app without a global `box-sizing` reset, and overlay content
|
|
1192
|
+
fills the panel inside its separator instead of painting over it.
|
|
1193
|
+
- **A `@kerfjs/ui` `Workbench` bottom drawer with `presentation: "overlay"`
|
|
1194
|
+
is visible again.** Its content is positioned against the drawer's bottom
|
|
1195
|
+
edge, so the out-of-flow overlay box had no height of its own and collapsed
|
|
1196
|
+
to its 1px border. An overlay drawer now takes its configured height (220px
|
|
1197
|
+
by default, or its `size`), covers the bottom of the work-area column, and
|
|
1198
|
+
clamps its content to the overlay maximum height. The drawer also accepts
|
|
1199
|
+
`responsiveOverlayAt: "narrow" | "compact"` like the rails: below that
|
|
1200
|
+
Workbench width it presents as the same overlay, without a separator and
|
|
1201
|
+
never resizable, while the work area takes the full height and keeps its
|
|
1202
|
+
bottom safe-area inset beneath it.
|
|
1203
|
+
- The bundled AI assistant configs (`ai/skill.md`, `ai/cursorrules`) now
|
|
1204
|
+
explain the `data-kerf-overlay-host` opt-in next to the one-`mount()`-per-root
|
|
1205
|
+
rule: a modal `<dialog>` of your own that anchors kerf popovers or tooltips
|
|
1206
|
+
needs `<div data-kerf-overlay-host data-morph-skip></div>`, the one allowed
|
|
1207
|
+
nested-mount boundary. The `kerfjs/ai-assistant-configs` lint rule reports
|
|
1208
|
+
installed copies as stale until they are refreshed.
|
|
1209
|
+
- The opt-in `rebuiltListeners` dev warning no longer reports a popover or
|
|
1210
|
+
tooltip closing inside a modal dialog's host slot. Removals inside a
|
|
1211
|
+
`[data-kerf-overlay-host][data-morph-skip]` slot belong to the surface's own
|
|
1212
|
+
mount, so the enclosing mount now ignores them, as its re-renders already
|
|
1213
|
+
did. A listener lost to a re-render inside the surface is still reported,
|
|
1214
|
+
once.
|
|
1215
|
+
- **A popover or tooltip in a modal `<dialog>` no longer lingers after the
|
|
1216
|
+
dialog is removed when its anchor was moved out first.** A surface rendered
|
|
1217
|
+
into a dialog's host slot left with the dialog, but because its anchor was
|
|
1218
|
+
still in the document, kerf kept it registered as open, and a tooltip on
|
|
1219
|
+
that anchor never showed again. A slot-hosted surface now closes itself
|
|
1220
|
+
(without calling `onDismiss`) when it leaves the document, and the tooltip
|
|
1221
|
+
shows again on the next hover or focus.
|
|
1222
|
+
- **A popover inside a modal `<dialog>` is reachable by Tab in Safari on
|
|
1223
|
+
macOS.** A popover or tooltip rendered into a dialog's host slot follows the
|
|
1224
|
+
dialog's own Tab order, and WebKit on macOS skips buttons and links there
|
|
1225
|
+
unless the system keyboard-navigation setting is on. kerf now gives each
|
|
1226
|
+
implicitly tabbable control in a slot-hosted surface an explicit
|
|
1227
|
+
`tabindex="0"` when it opens and again before each Tab keypress, the same
|
|
1228
|
+
way its focus trap already did. Authored tabindexes, disabled controls, and
|
|
1229
|
+
surfaces outside a slot are left alone.
|
|
1230
|
+
- `@kerfjs/ui` `Workbench` rails gain `responsiveOverlayAt: "narrow" |
|
|
1231
|
+
"compact"`, mirroring `ResizableRegion`'s `responsiveFillAt`: below the
|
|
1232
|
+
Workbench's own 704px (`narrow`) or 448px (`compact`) width the rail
|
|
1233
|
+
presents as an overlay over the work area, without a separator and never
|
|
1234
|
+
resizable, and inline above it — the CSS decides, so apps no longer derive
|
|
1235
|
+
`presentation` from a `deviceClass()` check. The bottom drawer ignores it.
|
|
1236
|
+
A collapsed overlay rail (with `presentation: "overlay"` too) now drops its
|
|
1237
|
+
surface and shadow instead of leaving an empty panel-sized box over the work
|
|
1238
|
+
area. The UX catalog's resizable example uses it and now renders at phone
|
|
1239
|
+
widths, and its collapsed console's restore control is a `ToolbarControlGroup`
|
|
1240
|
+
toggle that actually restores the console.
|
|
1241
|
+
- `@kerfjs/ui` `Workbench` keeps a minimum work area beside resizable rails.
|
|
1242
|
+
Two rails dragged near their 480px maximum on a ~1024px Workbench used to
|
|
1243
|
+
leave the editor a sliver; now the work area keeps at least `mainMinSize`
|
|
1244
|
+
px (a new `Workbench` prop, default 320, `0` turns it off). `wireWorkbench`
|
|
1245
|
+
stops drag and keyboard resizing where the work area would drop below it
|
|
1246
|
+
(and reports that reachable maximum in `aria-valuemax`), and when the
|
|
1247
|
+
Workbench narrows, resizable rails shrink in proportion to their sizes, with
|
|
1248
|
+
their content following the shown width, instead of squeezing the work
|
|
1249
|
+
area. Workbenches without a resizable rail render exactly as before. The UX
|
|
1250
|
+
catalog's resizable example adds a resizable inspector to show it.
|
|
1251
|
+
- `@kerfjs/ui`'s static analyzer (`kerf-ui-analyze`, and the analyzer stage of
|
|
1252
|
+
`kerf-ui-doctor`) reports a new review finding, `KUI-L018`, when a
|
|
1253
|
+
stylesheet overrides a loud tone fill (`--wa-color-{tone}-fill-loud` for
|
|
1254
|
+
neutral, brand, success, warning, danger, or pop) without setting the
|
|
1255
|
+
matching `--wa-color-{tone}-on-loud` in the same scope. The theme pairs each
|
|
1256
|
+
loud fill with a foreground that clears WCAG AA, and an unpaired override
|
|
1257
|
+
keeps that foreground on a fill it was never checked against. The pair must
|
|
1258
|
+
share a selector (after resolving nesting and splitting selector lists) and
|
|
1259
|
+
at-rule scope in the same stylesheet, in one rule or separate ones; another
|
|
1260
|
+
tone's `on-loud` does not count. It is a review finding because it checks
|
|
1261
|
+
the pairing, not the contrast; pass `--fail-on-review` to gate it. The
|
|
1262
|
+
`webawesome-theme.md` customization example now sets both halves of each
|
|
1263
|
+
pair.
|
|
1264
|
+
- **Tooltips and popovers also stay visible when your own code opens a modal
|
|
1265
|
+
`<dialog>`.** `kerfjs/overlay` already moved every open tooltip and popover
|
|
1266
|
+
above a modal dialog it opened itself, but a dialog opened with a bare
|
|
1267
|
+
`dialog.showModal()` went unnoticed and left them inert beneath it. While
|
|
1268
|
+
any kerf surface is open, one capture-phase listener on the document now
|
|
1269
|
+
catches the dialog's `toggle` event and re-hosts them the same way, one task
|
|
1270
|
+
after the `showModal()` call. The listener is removed once nothing is open.
|
|
1271
|
+
An engine that fires no `toggle` event for `<dialog>` still misses such a
|
|
1272
|
+
dialog; open it through `overlay()` there.
|
|
1273
|
+
- **A popover inside a modal `<dialog>` is clickable.** Browsers make
|
|
1274
|
+
everything outside an open modal dialog inert, so a popover lifted above the
|
|
1275
|
+
dialog was visible but its buttons could not be clicked or focused, and
|
|
1276
|
+
kerf's one-mount-per-tree rule kept it from rendering inside a kerf-mounted
|
|
1277
|
+
dialog. `popover()` and `tooltip()` whose anchor sits inside an open modal
|
|
1278
|
+
`<dialog>` now render into the dialog's host slot, an element marked
|
|
1279
|
+
`data-kerf-overlay-host data-morph-skip`, so they are part of the modal and
|
|
1280
|
+
fully interactive: Tab reaches them, and Escape closes the popover before the
|
|
1281
|
+
dialog. A dialog `kerfjs/overlay` opened gets the slot automatically (an
|
|
1282
|
+
empty `display: contents` element added on first use). For your own
|
|
1283
|
+
`<dialog>`, add `<div data-kerf-overlay-host data-morph-skip></div>` to its
|
|
1284
|
+
markup, or pass `container`. The slot is the one place a second `mount()`
|
|
1285
|
+
may live inside a mounted tree: the enclosing mount's morph, nesting guard,
|
|
1286
|
+
and binding and `each()` marker scans all stop there. The `kerfjs/dev`
|
|
1287
|
+
`inert` warning now fires only when no slot was used.
|
|
1288
|
+
- `@kerfjs/ui` `Workbench` rails and the bottom drawer can be drag-resized,
|
|
1289
|
+
as an opt-in per panel. `WorkbenchPanel` gains `resizable: true | { min, max }`
|
|
1290
|
+
(off by default, so existing Workbenches render unchanged); a resizable panel
|
|
1291
|
+
gets a separator on its inner edge with the same focusable
|
|
1292
|
+
`role="separator"` contract, grip, and 20px hit target as a
|
|
1293
|
+
`ResizableRegion` handle. The new `@kerfjs/ui/wire-workbench` subpath's
|
|
1294
|
+
`wireWorkbench(root, { id, panels, deviceClass?, storage?, onResize? })`
|
|
1295
|
+
drives it: live pointer drags, arrow / Shift+arrow / Home / End keys,
|
|
1296
|
+
clamping to the limits, and commits to the app-owned size signals, with
|
|
1297
|
+
optional `storageKey` persistence. Collapsing keeps a panel's size, so it
|
|
1298
|
+
expands back to the size it had, and resizing is suspended on compact device
|
|
1299
|
+
classes and for overlay or hidden panels. The UX catalog's Workbench page
|
|
1300
|
+
adds a resizable example. `wireResizableRegions` now drives only handles that
|
|
1301
|
+
are direct children of a `ResizableRegion`, so it never double-drives a
|
|
1302
|
+
Workbench separator under the same root.
|
|
1303
|
+
- `@kerfjs/ui` elevation shadows follow the color scheme, with or without the
|
|
1304
|
+
optional `@kerfjs/ui/webawesome.css` theme. Kerf's theme layer set
|
|
1305
|
+
`--wa-shadow-s` / `-m` / `-l` to fixed light-mode shadows (14%, 11%, and 9%
|
|
1306
|
+
black), which all but vanished against the dark page, and the
|
|
1307
|
+
`--kui-shadow-s` / `--kui-shadow-l` foundation fallbacks copied those fixed
|
|
1308
|
+
values. The theme now pairs each light alpha with a stronger dark one (50%,
|
|
1309
|
+
40%, 32%) through `light-dark()`, and the foundation fallbacks mirror them, so
|
|
1310
|
+
selected segments and app tabs, compact overlay panels, and Web Awesome
|
|
1311
|
+
surfaces that read `--wa-shadow-*` keep their elevation in dark mode. Light mode is unchanged. The browser parity test
|
|
1312
|
+
now compares every `--kui-shadow-*` token with and without the theme in both
|
|
1313
|
+
schemes.
|
|
1314
|
+
- `@kerfjs/ui` text on loud tone fills clears WCAG AA in both color schemes,
|
|
1315
|
+
with or without the optional `@kerfjs/ui/webawesome.css` theme. White
|
|
1316
|
+
`on-loud` text reached about 2.2:1 on the success fill, 3.5:1 on the light
|
|
1317
|
+
brand fill (`#0088ff`), and 3.6:1 on the danger fill (`#ff383c`) in both
|
|
1318
|
+
schemes. Kerf's theme layer and the foundation fallbacks now pair each
|
|
1319
|
+
fill with a foreground chosen to keep the tone's look: success keeps its
|
|
1320
|
+
bright green with dark text (`#1d1d1f`, 7.6:1), as warning already did; light
|
|
1321
|
+
brand and danger keep white text on a slightly deeper fill of the same hue
|
|
1322
|
+
(`#0075db`, 4.6:1; `#eb0005`, 4.6:1); dark danger keeps its fill with dark
|
|
1323
|
+
text (`#111113`, 5.3:1), as dark brand already did. Web Awesome accent
|
|
1324
|
+
buttons, badges, and checked controls pick this up, and accent `wa-badge`s now
|
|
1325
|
+
use their variant's `on-loud` foreground by default instead of a fixed dark
|
|
1326
|
+
color (`--kui-wa-badge-accent-foreground` still overrides it). The browser
|
|
1327
|
+
contrast test asserts every tone's `on-loud` over `fill-loud` pair, including
|
|
1328
|
+
pop and neutral, in both schemes with and without the theme.
|
|
1329
|
+
- `@kerfjs/ui` brand, success, and warning text clears WCAG AA on the lowered
|
|
1330
|
+
page background in light mode, with or without the optional
|
|
1331
|
+
`@kerfjs/ui/webawesome.css` theme. Their light `on-quiet` values (`#1e6ef4`,
|
|
1332
|
+
`#008932`, `#a16a00`) passed on the white surface but reached only about
|
|
1333
|
+
4.1:1 on `#f2f2f7`. Kerf's theme layer and the foundation fallbacks now use
|
|
1334
|
+
the same hues a step darker: `#0c62f3` (4.64:1), `#007f2e` (4.62:1), and
|
|
1335
|
+
`#966200` (4.65:1) on the page, about 5.2:1 on white. Links, selected tabs,
|
|
1336
|
+
segmented and toolbar selections, and token-search accents that read
|
|
1337
|
+
`brand-on-quiet` darken with it. Dark mode is unchanged. The browser contrast
|
|
1338
|
+
test no longer skips light text over the page background.
|
|
1339
|
+
- `@kerfjs/ui` surfaces, links, and focus rings match the optional
|
|
1340
|
+
`@kerfjs/ui/webawesome.css` theme without it. Three foundation fallbacks
|
|
1341
|
+
pointed at a different token than the theme: `--kui-color-surface-raised`
|
|
1342
|
+
fell back to the surface color (the theme's dark raised surface is
|
|
1343
|
+
`#2c2c2e`), `--kui-color-text-link` fell back to the brand fill (`#0088ff`,
|
|
1344
|
+
about 3.5:1 on white) instead of the brand on-quiet text color, and the focus
|
|
1345
|
+
ring used the brand fill instead of the theme's focus color (`#007aff`). Each
|
|
1346
|
+
now falls back to the theme's value. The browser parity test now covers every
|
|
1347
|
+
`--kui-color-*` token the foundation declares, plus the focus ring, instead of
|
|
1348
|
+
only the tone tokens.
|
|
1349
|
+
- The `@kerfjs/ui` UX catalog's `StateBanner` route adds a placeholder with a
|
|
1350
|
+
badge for every tone, next to the existing badge-less placeholder, so visual
|
|
1351
|
+
review and captures show the solid badge's loading skeleton on each tone's
|
|
1352
|
+
fill. A browser test checks that each tone's badged placeholder is present.
|
|
1353
|
+
- `@kerfjs/ui` toned text stays readable in dark mode without the optional
|
|
1354
|
+
`@kerfjs/ui/webawesome.css` theme. The foundation's fallbacks for the
|
|
1355
|
+
success, warning, and danger `on-quiet` and `on-normal` tokens were single
|
|
1356
|
+
light-mode colors, so dark danger `Text` rendered dark red on a dark surface
|
|
1357
|
+
(under 3:1). Every tone token now falls back to the same light and dark
|
|
1358
|
+
pair the theme assigns, including `brand-on-loud` (dark text on the pale dark
|
|
1359
|
+
brand fill instead of white) and `neutral-border-quiet`. Light-mode colors
|
|
1360
|
+
are unchanged. A browser test bundles the package with and without the theme
|
|
1361
|
+
and asserts that every tone token resolves identically in both color schemes
|
|
1362
|
+
and that toned text clears WCAG AA in dark mode.
|
|
1363
|
+
- `@kerfjs/ui` danger text and badges are readable in dark mode, and every
|
|
1364
|
+
tone's `StateBanner` detail and quiet or outline `Badge` text now clears
|
|
1365
|
+
WCAG AA. The danger tone was the only one without an on-fill foreground: its
|
|
1366
|
+
solid badge fill and `StateBanner` text reused `danger-on-quiet`, a mid red
|
|
1367
|
+
in dark mode (banner detail 4.0:1, badge placeholder skeleton 2.25:1). A new
|
|
1368
|
+
`--kui-color-danger-on-fill` token (also accepted by `uiColor()`) matches the
|
|
1369
|
+
other tones' pale dark values, lifting the dark danger banner text to 8.2:1.
|
|
1370
|
+
The banner detail no longer dims to 78% opacity, which left the light info,
|
|
1371
|
+
success, warning, and danger details at 3.4 to 4.3:1; it reads as secondary
|
|
1372
|
+
through its smaller type, and the neutral detail uses the quiet text color.
|
|
1373
|
+
Quiet and outline badges use their tone's on-fill text, lifting light brand,
|
|
1374
|
+
success, and warning from about 4.1:1 to at least 5:1.
|
|
1375
|
+
|
|
1376
|
+
- A `@kerfjs/ui` placeholder skeleton inside a solid `Badge`, such as the
|
|
1377
|
+
badge of a `StateBanner` placeholder, is now clearly visible. The generic
|
|
1378
|
+
skeleton tint, 12% of the text color, almost disappeared on the badge's
|
|
1379
|
+
saturated fill in every tone. A solid badge now tints its skeleton from its
|
|
1380
|
+
own foreground color, which contrasts with the fill in every tone in light
|
|
1381
|
+
and dark mode. Quiet and outline badges keep the generic tint, which already
|
|
1382
|
+
reads on their pale fills. Geometry is unchanged.
|
|
1383
|
+
- The `@kerfjs/ui` SVG design templates render badges as filled pills: the
|
|
1384
|
+
`StateBanner` badge and the `ListHeader` and `List` count pills used to show
|
|
1385
|
+
as plain text, because the template build loaded only a hand-written list of
|
|
1386
|
+
stylesheets that omitted `badge.css`. The build now loads each component's
|
|
1387
|
+
full stylesheet set from its generated browser entry, the same set a
|
|
1388
|
+
consumer's browser import loads, so a nested component's CSS can no longer be
|
|
1389
|
+
missed. The `ListHeader` and `List` templates also pick up the label inset
|
|
1390
|
+
from `text.css`, so a header label now lines up with the list items below it,
|
|
1391
|
+
as it does in the live component.
|
|
1392
|
+
- A `@kerfjs/ui` `StateBanner` placeholder's badge sits at the live badge's
|
|
1393
|
+
height on every platform. With a skeleton instead of text, the badge took a
|
|
1394
|
+
baseline from the skeleton's bottom edge and sat about a pixel higher, by an
|
|
1395
|
+
amount that depended on the platform's font metrics.
|
|
1396
|
+
- A `@kerfjs/ui` `StateBanner` with a long, wrapping title keeps its badge
|
|
1397
|
+
one item gap after the title's last word, and its detail uses the full copy
|
|
1398
|
+
width. The wide flex layout shrank the title and detail together, which left
|
|
1399
|
+
a large gap before the badge and truncated the detail early. The title,
|
|
1400
|
+
badge, and detail now flow as inline text: the detail stays beside the title
|
|
1401
|
+
while it fits whole, and otherwise moves to its own line, truncating only at
|
|
1402
|
+
the full width. A wrapped title's lines stay evenly spaced.
|
|
1403
|
+
- A `@kerfjs/ui` `ListHeader` disclosure toggle disabled with `actionDisabled`
|
|
1404
|
+
is dimmed by the component itself, at the same tone as a disabled action
|
|
1405
|
+
button, and shows the `not-allowed` cursor. It used to rely on Web Awesome's
|
|
1406
|
+
native `button:disabled` dimming, so without `webawesome.css` it looked
|
|
1407
|
+
enabled. Disabled toggles and action buttons also no longer show hover
|
|
1408
|
+
feedback without `webawesome.css`.
|
|
1409
|
+
- A `@kerfjs/ui` `ListActionRow` placeholder keeps its `busy` spinner. The
|
|
1410
|
+
whole status line used to collapse into one skeleton, dropping the spinner
|
|
1411
|
+
the component draws from a known prop. Now only the `status` text becomes a
|
|
1412
|
+
skeleton, matching `ListItem`.
|
|
1413
|
+
- **A tooltip or popover already showing stays visible when a modal opens.**
|
|
1414
|
+
Lifting a surface above an open modal `<dialog>` was decided only when the
|
|
1415
|
+
surface opened, so a tooltip or popover already on screen when a modal
|
|
1416
|
+
dialog opened was left inert beneath it. Whenever `kerfjs/overlay` opens a
|
|
1417
|
+
modal `<dialog>` (a `native: true` modal, or one it lifted), it now moves
|
|
1418
|
+
every open tooltip and popover into the top layer above the new dialog. One
|
|
1419
|
+
that is already a `[popover]` is re-shown so it stacks on top. The existing
|
|
1420
|
+
`kerfjs/dev` warnings still report an engine without the Popover API, and a
|
|
1421
|
+
surface with controls the modal keeps inert. A modal `<dialog>` the app
|
|
1422
|
+
opens itself, outside kerf, is not observed.
|
|
1423
|
+
- Moved `mount()`'s list-binding lifecycle (turning list markers into
|
|
1424
|
+
bindings, first-render row-contract validation, orphan pruning) into its own
|
|
1425
|
+
internal module, so `mount.ts` holds only the render orchestration. No
|
|
1426
|
+
behavior or public API change.
|
|
1427
|
+
- A narrow (576px and below) `@kerfjs/ui` `StateBanner` keeps its badge
|
|
1428
|
+
sized to its content, one item gap after the title and on the title's
|
|
1429
|
+
baseline, as in the wide layout. The narrow grid stretched the badge across
|
|
1430
|
+
the free column into a wide pill that sat less than 1px from the title.
|
|
1431
|
+
- Hovering a `@kerfjs/ui` `ListActionRow` placeholder with
|
|
1432
|
+
`trailingActionVisibility="interaction"` no longer reveals its disabled
|
|
1433
|
+
trailing button. A placeholder is inert, so it keeps the live row's resting
|
|
1434
|
+
state, with the trailing action hidden until an interaction it cannot take.
|
|
1435
|
+
- A `@kerfjs/ui` `ListItem` placeholder keeps its `busy` spinner. The whole
|
|
1436
|
+
trailing slot used to collapse into one skeleton, dropping the spinner the
|
|
1437
|
+
component draws from a known prop and shifting the label's width. Now only
|
|
1438
|
+
the values in that slot become skeletons: `status` text in its status line
|
|
1439
|
+
and author-supplied `trailing` content (always a value, since the component
|
|
1440
|
+
cannot tell a chevron from a count) each get their own.
|
|
1441
|
+
- `@kerfjs/ui` placeholders keep the live disabled tone of a control the
|
|
1442
|
+
author disabled. A disabled `ListItem` or `ListActionRow`, a
|
|
1443
|
+
`trailingActionDisabled` button, a disabled `SegmentedControl` choice, or a
|
|
1444
|
+
`ListHeader` with `actionDisabled` rendered at full opacity as a
|
|
1445
|
+
placeholder, because the placeholder reset could not tell its own
|
|
1446
|
+
`disabled` attribute from the author's. Those controls now carry a
|
|
1447
|
+
component-owned `data-kui-disabled="true"` marker whenever their disabled
|
|
1448
|
+
prop is set; the disabled tone keys on it and the placeholder reset skips
|
|
1449
|
+
it. The marker is reserved: the extension-attribute props cannot set it.
|
|
1450
|
+
- `@kerfjs/ui` adds a browser test that renders every placeholder-capable
|
|
1451
|
+
component live and as a placeholder from identical props and diffs each
|
|
1452
|
+
element's geometry and computed chrome, so any future drift outside a value
|
|
1453
|
+
slot fails. It caught one more: a `ListActionRow` placeholder's `status`
|
|
1454
|
+
line was 3.5px shorter than the live line; the status line now always
|
|
1455
|
+
keeps a full line height.
|
|
1456
|
+
- `@kerfjs/ui`'s `Select` placeholder hint now matches the live hint: 14px
|
|
1457
|
+
text at a 1.6 line height, 7px below the box. It was 12px / 1.4 with a 4px
|
|
1458
|
+
gap, so a placeholder with a `hint` was 8.6px shorter than the loaded
|
|
1459
|
+
control and the content below it jumped when loading finished.
|
|
1460
|
+
- `@kerfjs/ui`'s `StateBanner` placeholder adds a detail skeleton only when
|
|
1461
|
+
`detail` is set, matching the live banner. Previously every placeholder
|
|
1462
|
+
showed a detail line, so a banner without one changed shape when loading
|
|
1463
|
+
finished. Pass the banner's real `title` and `detail` with `placeholder`;
|
|
1464
|
+
an empty `detail` now means no detail line.
|
|
1465
|
+
- `@kerfjs/ui`'s `AppTab` placeholder pill is no longer dimmed to 50% with a
|
|
1466
|
+
`not-allowed` cursor when `webawesome.css` is loaded; it keeps the live
|
|
1467
|
+
tab's tone, and only its name is a skeleton.
|
|
1468
|
+
- `@kerfjs/ui`'s `ListHeader` placeholder no longer dims its action button
|
|
1469
|
+
(48%) or, in `toggle` mode, the whole title and label (Web Awesome's native
|
|
1470
|
+
50%), and its inert action and toggle give no hover feedback. A live
|
|
1471
|
+
`actionDisabled` header still dims its action.
|
|
1472
|
+
- `@kerfjs/ui`'s `SegmentedControl` placeholder now keeps its choices. The
|
|
1473
|
+
choices are known; only the selection is unknown, so a placeholder renders
|
|
1474
|
+
every choice's live label or icon at its live size, selects none, and stays
|
|
1475
|
+
inert. Previously every segment became a 4em text skeleton (widening icon
|
|
1476
|
+
segments from 40px to 60px) and was dimmed to 45%.
|
|
1477
|
+
- `@kerfjs/ui`'s `ListItem` and `ListActionRow` placeholders now match the
|
|
1478
|
+
live row. They are no longer dimmed (the rows' own `:disabled` tone and
|
|
1479
|
+
hover highlight skip placeholders), and a row with a `description` (or a
|
|
1480
|
+
`ListActionRow` `status`) keeps that line as a second, smaller skeleton, so
|
|
1481
|
+
the row keeps its live height instead of collapsing to one line. The
|
|
1482
|
+
`ListActionRow` icon placeholder is an 18px block centered in its icon slot,
|
|
1483
|
+
like `ListItem`'s.
|
|
1484
|
+
- `@kerfjs/ui` placeholders no longer look disabled. A component's
|
|
1485
|
+
`placeholder` keeps its controls `disabled` (inert and out of the keyboard
|
|
1486
|
+
order), but `skeleton.css` now neutralizes generic disabled chrome under
|
|
1487
|
+
`[data-placeholder="true"]`: full opacity and the default cursor instead of
|
|
1488
|
+
Web Awesome's native `button:disabled` dimming to 50% with a `not-allowed`
|
|
1489
|
+
cursor. A component's own opacity (a control hidden until interaction) still
|
|
1490
|
+
applies.
|
|
1491
|
+
- `toElement('<image href="…" />')` now returns an SVG `<image>`. The HTML
|
|
1492
|
+
parser rewrites an orphan `<image>` to an HTML `<img>` before kerf sees the
|
|
1493
|
+
tag, so it previously came back as an XHTML `img` that no `<svg>` would
|
|
1494
|
+
render. kerf now recognizes a leading `<image` tag in the raw input
|
|
1495
|
+
(case-insensitive, after leading whitespace) and parses it through the SVG
|
|
1496
|
+
wrapper. A genuine `<img>` is unchanged.
|
|
1497
|
+
- `delegateActions()` (`kerfjs/actions`) dispatches only the table's own
|
|
1498
|
+
entries. It used to look the action up with a plain property read, so a
|
|
1499
|
+
`data-action` naming an inherited `Object.prototype` member resolved:
|
|
1500
|
+
`"__proto__"` or `"hasOwnProperty"` threw a `TypeError` from the listener,
|
|
1501
|
+
and `"toString"` or `"constructor"` silently ran the inherited function.
|
|
1502
|
+
Those values are now ignored like any other action absent from the table.
|
|
1503
|
+
An own entry with such a name (`{ toString: … }`) still dispatches.
|
|
1504
|
+
- `toElement()` now puts orphan camelCase SVG fragments in the SVG namespace.
|
|
1505
|
+
`toElement('<linearGradient>…</linearGradient>')`, and likewise `clipPath`,
|
|
1506
|
+
`radialGradient`, and `foreignObject`, previously returned an XHTML
|
|
1507
|
+
`LINEARGRADIENT` element that no `<svg>` would render, because the lookup
|
|
1508
|
+
compared the HTML parser's lowercased tag against camelCase names. The
|
|
1509
|
+
fragment is now wrapped in `<svg>` and XML-parsed like `<path>` or `<g>`,
|
|
1510
|
+
and the returned element keeps its camelCase `localName`.
|
|
1511
|
+
- **A tooltip or popover no longer outlives its anchor.** When the anchor left
|
|
1512
|
+
the document, most commonly because the modal containing it closed, the
|
|
1513
|
+
`tooltip()` or `popover()` stayed on screen: a removed element fires no
|
|
1514
|
+
`pointerleave` or `blur`. Both now watch their anchor with the same removal
|
|
1515
|
+
tracking as `kerfjs/attach`. The tooltip hides, and the popover closes
|
|
1516
|
+
without calling `onDismiss`, as soon as the anchor leaves the document.
|
|
1517
|
+
Moving the anchor within the document keeps them open. A tooltip show still
|
|
1518
|
+
pending when its anchor is removed never appears.
|
|
1519
|
+
- **Overlays opened over a modal `<dialog>` are visible and usable.** A browser
|
|
1520
|
+
makes everything outside an open modal dialog inert and paints a plain
|
|
1521
|
+
element beneath it, so a `tooltip()`, `popover()`, or `confirm()` opened
|
|
1522
|
+
from inside a `native: true` dialog without `native` itself was invisible and
|
|
1523
|
+
could not be used. While a modal `<dialog>` is open, `kerfjs/overlay` now
|
|
1524
|
+
hosts such a surface in the top layer anyway: a tooltip or popover becomes a
|
|
1525
|
+
`[popover]`, and a nested modal becomes its own `<dialog>`. The browser's
|
|
1526
|
+
default `[popover]` / `<dialog>` styles then apply, as they do with `native:
|
|
1527
|
+
true`. Browsers keep a popover outside the modal dialog inert even in the top
|
|
1528
|
+
layer, so a lifted popover with buttons is visible but not clickable. A new
|
|
1529
|
+
always-on `kerfjs/dev` warning reports that case, and an engine without the
|
|
1530
|
+
needed API.
|
|
1531
|
+
- **A tooltip shown inside a modal no longer disables the modal.** `kerfjs/overlay`
|
|
1532
|
+
used to treat the most recently opened overlay as the only one that could
|
|
1533
|
+
react to input, so a `tooltip()` (which handles no input) inside an open
|
|
1534
|
+
modal left Escape doing nothing and let Tab leave the dialog. Every overlay,
|
|
1535
|
+
native or fallback, now joins one open-order stack, and each Escape, backdrop
|
|
1536
|
+
click, outside click, or trapped Tab goes to the topmost surface that handles
|
|
1537
|
+
it. A modal still blocks everything beneath it, and a surface that handles
|
|
1538
|
+
nothing never intercepts. A popover that dismisses on Escape gets it before
|
|
1539
|
+
the modal beneath. One click that is both outside a popover and on a modal's
|
|
1540
|
+
backdrop now closes only the popover. A native `<dialog>` is arbitrated with
|
|
1541
|
+
the fallback surfaces: one Escape closes one surface, and a fallback modal
|
|
1542
|
+
beneath an open dialog no longer takes the dialog's Tab. Closing a lower
|
|
1543
|
+
overlay first leaves focus in the overlay that holds it. An overlay opened
|
|
1544
|
+
from inside it then restores focus to the closed overlay's opener, not a
|
|
1545
|
+
detached node.
|
|
1546
|
+
- `kerfjs` now exports the `EachOptions<T>` type (`{ cacheKey?, key? }`), the
|
|
1547
|
+
options-object form of `each()`'s third argument, so a helper that builds or
|
|
1548
|
+
forwards those options can import the shape instead of restating it:
|
|
1549
|
+
`import { type EachOptions } from "kerfjs"`. Type-only; no runtime or bundle
|
|
1550
|
+
change.
|
|
1551
|
+
- Documentation: the companion-utility reference now matches the code. The
|
|
1552
|
+
router's `match()` / `activeClass()` compare a literal path prefix, so
|
|
1553
|
+
`match('/users/:id')` is never true. Link interception still applies to
|
|
1554
|
+
`target="_self"`, the no-match `outlet()` is `null` with `params` `{}`,
|
|
1555
|
+
components receive `(params, route)`, and hash mode keeps `route.hash` at
|
|
1556
|
+
`''`. Invalid `bindList` configuration throws only `RangeError`. `popover()`
|
|
1557
|
+
defaults `className` to `'kerf-popover'`, and the toast region is a reused
|
|
1558
|
+
`.kerf-toasts` element when one exists. A `resource()` `cacheKey` applies
|
|
1559
|
+
only to `run(input, fetcher)`, and throttle's `flush()` leaves the cooldown
|
|
1560
|
+
running. `delegate()` / `delegateCapture()` throw on an invalid selector at
|
|
1561
|
+
registration. The reference also now lists the `kerfjs/jsx-dev-runtime`
|
|
1562
|
+
alias, the `DEV_HOOKS` export of `kerfjs/dev`, and `Signal#peek()`.
|
|
1563
|
+
- Documentation: `morph(liveRoot, template)` is now described as it behaves.
|
|
1564
|
+
It reconciles only the root's children and never touches the root's own
|
|
1565
|
+
attributes, so `template` describes the content inside the root (an
|
|
1566
|
+
`Element` template contributes its child nodes). The examples no longer
|
|
1567
|
+
nest a duplicate `<article>` inside the live one. An `each()` list parent is
|
|
1568
|
+
not a children-only short-circuit: the diff still walks it and skips only
|
|
1569
|
+
the owned rows. The user-agent-owned `open` exception covers custom elements
|
|
1570
|
+
as well as `<details>` / `<dialog>`, and a content-only row change inside an
|
|
1571
|
+
`each()` list keeps its DOM node (and focus) unless the row's top-level tag
|
|
1572
|
+
changes or the same render also inserts, removes, or moves rows.
|
|
1573
|
+
- Every opt-in `kerfjs/dev` warning now ends with a silence hint that leads
|
|
1574
|
+
with the browser-reachable switch, for example "Silence it with
|
|
1575
|
+
enableWarnings({ narrowSet: false }) from kerfjs/dev, or set
|
|
1576
|
+
KERF_DEV_WARN_NARROW_SET=0 (or unset it) under Node." Previously the
|
|
1577
|
+
messages named only the environment variable, which a browser cannot reach.
|
|
1578
|
+
The docs now teach `enableWarnings()` wherever they showed an env-only
|
|
1579
|
+
switch, and name all three creation-time boundaries: `signal()`
|
|
1580
|
+
(`untrackedSignals`), `effect()` (`delegateInEffect`), and `mount()`
|
|
1581
|
+
(`rebuiltListeners`) decide once when created, so anything created before
|
|
1582
|
+
the install or the opt-in stays uncovered.
|
|
1583
|
+
- The `kerfjs/dev` rebuilt-listeners warning (`rebuiltListeners` /
|
|
1584
|
+
`KERF_DEV_WARN_REBUILT_LISTENERS`) now dedups once per `mount()`, as
|
|
1585
|
+
documented. Previously the first warning silenced every other mount for
|
|
1586
|
+
the life of the process, so a second mount with the same bug stayed quiet.
|
|
1587
|
+
- `kerfjs/router`: a second router on the same document no longer diverges
|
|
1588
|
+
from the URL after a link click. The first router's interceptor navigates
|
|
1589
|
+
with `pushState`, which fires no `popstate`, so the second router ignored
|
|
1590
|
+
the already-handled click and kept the old route. An already-handled click
|
|
1591
|
+
now re-syncs the route from the URL; when nothing navigated, it is a no-op.
|
|
1592
|
+
One router per document remains the supported shape: a second router does
|
|
1593
|
+
not follow another router's programmatic `navigate()` (no `popstate` fires
|
|
1594
|
+
and routers do not broadcast to each other) until the next `popstate` or
|
|
1595
|
+
link click. This is now documented and pinned by a test.
|
|
1596
|
+
- `kerfjs/scope`: a disposed `Scope` handle no longer leaks registrations.
|
|
1597
|
+
Previously `add` / `mount` / `effect` / `delegate` on a handle after its
|
|
1598
|
+
`dispose()` (or from a disposer while `dispose()` ran) pushed into a list
|
|
1599
|
+
nothing would ever run, leaving the effect subscribed or the listener
|
|
1600
|
+
attached. Such a registration now tears down at once: `add(fn)` calls `fn`
|
|
1601
|
+
immediately, and the wrappers create and immediately dispose.
|
|
1602
|
+
- `bindList` measured-height virtualization no longer applies a stale
|
|
1603
|
+
scroll-anchor correction. A `setHeight()` report for a row above the viewport
|
|
1604
|
+
is now resolved when the animation frame runs: if the source removed the key,
|
|
1605
|
+
moved it below the fold, or the user scrolled the row into view first,
|
|
1606
|
+
`scrollTop` is left alone, and several reports for one key in a frame net
|
|
1607
|
+
out. Fixed-height windows also clamp to the source length, so a list that
|
|
1608
|
+
shrinks while scrolled deep no longer pads far past its content.
|
|
1609
|
+
- `create-kerf-component` accepts an explicit `boundaries.rootClass: null` as
|
|
1610
|
+
an author decision, as its schema always allowed. A wrapper whose root
|
|
1611
|
+
element belongs to another catalog (a `rendersAs` wrapper) no longer has to
|
|
1612
|
+
invent a class to satisfy the generator. An absent `rootClass` still fails
|
|
1613
|
+
as undecided.
|
|
1614
|
+
- `@kerfjs/ui`'s `Select` placeholder now matches the live control. The label
|
|
1615
|
+
uses the field-label style (uppercase, extra-small, quiet, inset to line up
|
|
1616
|
+
with the value), and the chevron is the same glyph at the same size.
|
|
1617
|
+
Previously the placeholder drew a larger, regular-weight label at a
|
|
1618
|
+
different inset and a different, smaller chevron. Only the value is a
|
|
1619
|
+
skeleton; the chrome no longer changes when loading finishes.
|
|
1620
|
+
- **Wrapper components can declare the cataloged root they render.** A
|
|
1621
|
+
`kerf.components.json` component may set `composition.rendersAs`, for
|
|
1622
|
+
example `["@kerfjs/ui:toolbar-control-group"]`: a list of the roots it
|
|
1623
|
+
renders, any one of them, or nothing. `kerf-component-catalog` copies it
|
|
1624
|
+
into the generated v2 entry and fails unless every key resolves to a
|
|
1625
|
+
cataloged entry. `eslint-plugin-kerfjs`'s `ui-composition` rule, and so
|
|
1626
|
+
`kerf-ui-doctor`, now loads the application and third-party catalogs a
|
|
1627
|
+
`.kerf-ui-profile.json` declares. It resolves their components by package
|
|
1628
|
+
subpath or source file and checks a wrapper as each declared root: a zone
|
|
1629
|
+
must accept every root, each root's parent contract applies where the
|
|
1630
|
+
wrapper is placed, and a wrapper counts as zero or one child. Undeclared
|
|
1631
|
+
wrappers keep reporting `KUI-L202`.
|
|
1632
|
+
- `@kerfjs/ui`'s `AppTab` adds `pending` for a known tab that is still
|
|
1633
|
+
opening. It keeps the name visible in the quiet text color and uses it as
|
|
1634
|
+
the tab's accessible name, so a trailing spinner's label is not folded in.
|
|
1635
|
+
Like `placeholder`, it disables select and close, turns off dragging, and
|
|
1636
|
+
sets `aria-busy`, and it shows the consumer's `trailing` spinner. It keeps
|
|
1637
|
+
the live tab's pill geometry, so it swaps in place without shifting the bar.
|
|
1638
|
+
Dormant tabs (placeholder or pending) no longer reveal their disabled close
|
|
1639
|
+
button on hover.
|
|
1640
|
+
- `@kerfjs/ui`'s `wireSidebar` moves focus into an opening panel without
|
|
1641
|
+
scrolling it. A plain `focus()` scrolled the panel's clipped content to the
|
|
1642
|
+
target while it was still sliding in, then the slide unwound that scroll:
|
|
1643
|
+
a bottom drawer's content jumped up past its top and drifted back. The
|
|
1644
|
+
collapsible-sidebar recipe also floats the drawer's expand toggle in a
|
|
1645
|
+
`FloatingToolbar` at the bottom edge the drawer opens from, and drops the
|
|
1646
|
+
divider under the drawer's toolbar.
|
|
1647
|
+
- `@kerfjs/ui`'s `Skeleton` takes `block` (default `false`). It lays the
|
|
1648
|
+
placeholder out as `display: block` instead of `inline-block`, for a
|
|
1649
|
+
skeleton that stands in for a box rather than text: no text line and no
|
|
1650
|
+
baseline gap of its own. `ListItem`'s placeholder icon uses it.
|
|
1651
|
+
- `@kerfjs/ui/css-values` adds `remify(px)`, the runtime twin of source
|
|
1652
|
+
CSS's `remify(<px>)`. It turns a pixel count into a rem `CssLength` against
|
|
1653
|
+
the fixed 16px baseline, so `remify(18)` is `1.125rem`. `ListItem`'s
|
|
1654
|
+
placeholder icon now uses it at 18px, and `Skeleton` no longer forces a
|
|
1655
|
+
24px minimum width, so small placeholders keep the size they ask for.
|
|
1656
|
+
- `@kerfjs/ui/catalog`'s application-sized (`height: "app"`) example frame
|
|
1657
|
+
no longer loses taps in Safari/WebKit. The frame became the containing block
|
|
1658
|
+
for screen-fixed chrome through `contain: layout`. Combined with its clip,
|
|
1659
|
+
that made WebKit mis-hit-test any transformed element inside an open compact
|
|
1660
|
+
overlay. Every pressed `ListItem` scales, so taps on an overlay rail's items
|
|
1661
|
+
went to their section instead. The frame now uses an identity transform,
|
|
1662
|
+
which docks the same chrome without the bug and renders identically.
|
|
1663
|
+
- **Breaking (`@kerfjs/ui/catalog`):** `CatalogExample`'s viewport drops
|
|
1664
|
+
`height: "fill"` and `fillChildren`. The catalog lays examples out at their
|
|
1665
|
+
content height, so neither could give a specimen a definite height, and a
|
|
1666
|
+
child sized with `height: 100%` (a horizontal `ResizableRegion`, say)
|
|
1667
|
+
collapsed to its content. Use a fixed `height` (`short` through `app`) when
|
|
1668
|
+
a specimen must fill its frame. `minHeight` remains, documented as a minimum
|
|
1669
|
+
rather than a fill.
|
|
1670
|
+
- `create-kerf-component`'s `kerf.components.json` now accepts an optional
|
|
1671
|
+
`composition.wiring.stateAttributes` declaration (the wiring-owned state
|
|
1672
|
+
attributes `@kerfjs/ui`'s catalog now carries), so third-party
|
|
1673
|
+
component authors can list the `data-*` attributes their wiring helpers write
|
|
1674
|
+
(`{ name, on, helper, meaning }`). `kerf-component-catalog` passes them
|
|
1675
|
+
through to the generated `component-catalog-v2.json` and reports a non-`data-*`
|
|
1676
|
+
name, a duplicate name, an empty `on` or `meaning`, or a helper missing from
|
|
1677
|
+
`wiring.helpers` at its exact path.
|
|
1678
|
+
- `@kerfjs/ui`'s component catalog now declares **wiring-owned state
|
|
1679
|
+
attributes**. A new optional `wiring.stateAttributes` in
|
|
1680
|
+
`component-catalog-v2` (and per wiring item in v1) lists each `data-*`
|
|
1681
|
+
attribute a wiring helper writes at runtime, such as `data-handle-inset` and
|
|
1682
|
+
`data-resizing` from `wireResizableRegions`. For each one it records the
|
|
1683
|
+
element, the helper, and the meaning, so AI consumers and tools can tell
|
|
1684
|
+
them apart from attributes the app writes. Every first-party wiring helper
|
|
1685
|
+
is declared. `check:catalog` fails when a helper's declarations differ from
|
|
1686
|
+
what its source writes.
|
|
1687
|
+
- `@kerfjs/ui`'s `wireSidebar` no longer leaves focus inside a panel it just
|
|
1688
|
+
collapsed. When the collapse was triggered from a toggle inside the panel
|
|
1689
|
+
(the documented placement), focus now moves to that panel's toggle outside
|
|
1690
|
+
it, including one the app renders only once the panel is collapsed. The
|
|
1691
|
+
collapsible-sidebar recipe now shows one control per action: each panel's
|
|
1692
|
+
own collapse toggle while it is open, and the main header's expand toggle
|
|
1693
|
+
only while it is collapsed. Wide widths no longer show two rail toggles.
|
|
1694
|
+
- `@kerfjs/ui`'s `wireSidebar` keeps a compact overlay intact when the app
|
|
1695
|
+
re-renders the wired root without changing a panel. Previously, selecting a
|
|
1696
|
+
destination in an open compact rail morphed the root, which removed the
|
|
1697
|
+
overlay attributes and the backdrop, and the "overlay" rail fell back into
|
|
1698
|
+
the layout. The wire now re-applies its host attributes and backdrop after
|
|
1699
|
+
any such re-render, and the backdrop carries `data-morph-preserve`.
|
|
1700
|
+
- `@kerfjs/ui`'s `wireSidebar` now opens a compact overlay only on a user
|
|
1701
|
+
action. Wiring on a compact device, or crossing from a wide device class to
|
|
1702
|
+
a compact one, collapses every panel. The page is no longer covered by a
|
|
1703
|
+
backdrop and focus trap until dismissed. Crossing back to a wide class, or
|
|
1704
|
+
disposing the wire, restores each panel's remembered inline state.
|
|
1705
|
+
Persistence now stores only that inline choice, never an overlay's
|
|
1706
|
+
open/closed state. A new optional `WireSidebarPanel.inlineCollapsed`
|
|
1707
|
+
declares the inline default when an app seeds its signal from the device
|
|
1708
|
+
class, which avoids an open first frame on a compact device. The
|
|
1709
|
+
collapsible-sidebar recipe no longer opens its rail as a blocking overlay
|
|
1710
|
+
on load at compact widths.
|
|
1711
|
+
- `@kerfjs/ui`'s `ResizableRegion` handle keeps its hit target and focus ring
|
|
1712
|
+
whole at a clipping edge. When a parent clamps the region to its own edge
|
|
1713
|
+
(the catalog's 390px stage, an app shell with a `max-width` container),
|
|
1714
|
+
`wireResizableRegions` marks the region `data-handle-inset` and the handle
|
|
1715
|
+
moves inside it instead of overhanging the edge by 10px, where the frame cut
|
|
1716
|
+
its focus ring in half. The ring is now drawn inside the handle's box
|
|
1717
|
+
(`outline-offset: -3px`), so it is also no longer shaved where the region's
|
|
1718
|
+
ends meet a clipping edge.
|
|
1719
|
+
- `@kerfjs/ui`'s `wireResizableRegions` keeps a clamped separator's
|
|
1720
|
+
`aria-valuenow`/`aria-valuemax` current at rest. Previously, after a size was
|
|
1721
|
+
saved at a wider width, narrowing the parent or any unrelated re-render left
|
|
1722
|
+
the handle reporting the unclamped rendered size until it was next focused or
|
|
1723
|
+
resized. A `ResizeObserver` on each region and its parent and a
|
|
1724
|
+
`MutationObserver` for re-renders now re-clamp the report; the disposer
|
|
1725
|
+
disconnects both.
|
|
1726
|
+
- The `@kerfjs/ui` catalog's `height: "app"` example frame is now the
|
|
1727
|
+
containing block for screen-fixed chrome, so a compact `CollapsiblePanel`
|
|
1728
|
+
overlay, its backdrop, and restore controls dock to the frame's edges. The
|
|
1729
|
+
collapsible-sidebar recipe's compact rail was fixed to the page's left edge,
|
|
1730
|
+
24px outside the inset frame, so its leading edge looked cut off at 390px.
|
|
1731
|
+
- The `CollapsiblePanel` compact-overlay backdrop now covers its whole
|
|
1732
|
+
containing block. As a `<button>`, it did not stretch between its insets and
|
|
1733
|
+
scrimmed only a 35px strip.
|
|
1734
|
+
- `@kerfjs/ui`'s `wireResizableRegions` now bounds a resize to the space the
|
|
1735
|
+
region's parent actually leaves. When a parent clamps the track (a
|
|
1736
|
+
`max-width` stage, a narrow container), pointer and keyboard resizing stop at
|
|
1737
|
+
the visible size, and the separator reports that size in `aria-valuenow` and
|
|
1738
|
+
its visible maximum in `aria-valuemax`. Previously a region resized to 420
|
|
1739
|
+
inside a 340px stage announced 420 and needed several key presses before the
|
|
1740
|
+
separator moved. Focusing the handle reports a stale larger committed size as
|
|
1741
|
+
the shown size without committing it.
|
|
1742
|
+
- The UI evaluator's `KUI-B050` target-size rule now accepts a 44×36 target
|
|
1743
|
+
inside compact density (`[data-density="compact"]`), matching the 36px
|
|
1744
|
+
compact row height; standard density still requires 44×44, and the width
|
|
1745
|
+
floor is unchanged.
|
|
1746
|
+
- Fixed `kerf-ui-analyze` and the `eslint-plugin-kerfjs` UI rules treating
|
|
1747
|
+
every name in a catalog entry's `publicExports` as that entry's component,
|
|
1748
|
+
so a helper such as `uiColor` or `flex` called with an object whose keys
|
|
1749
|
+
matched a contract path (`uiColor({ choices: [...] })`) was checked as a
|
|
1750
|
+
`Select` or `List` call. Only component exports, whose names start with an
|
|
1751
|
+
uppercase letter as JSX component tags do, now resolve to an entry; the
|
|
1752
|
+
`@kerfjs/ui` catalog check fails if a cataloged `SafeHtml` render function
|
|
1753
|
+
is lowercase or any other runtime export is uppercase.
|
|
1754
|
+
- The `@kerfjs/ui` component catalog's `ToolbarText` entry now lists every
|
|
1755
|
+
token its `xlarge` size reads (`--kui-color-text`, `--kui-font-l`,
|
|
1756
|
+
`--kui-font-2xl`) in `publicTokens`; previously it named only the tokens of
|
|
1757
|
+
the smaller sizes.
|
|
1758
|
+
- The `@kerfjs/ui` browser evaluator's target-size check (`KUI-B050`) now
|
|
1759
|
+
measures the pointer-reachable area instead of only the border box: an
|
|
1760
|
+
undersized control is hit-tested outward from its center, so a transparent
|
|
1761
|
+
`::before`/`::after` hit layer (such as the `ListHeader` action's) counts,
|
|
1762
|
+
while `pointer-events: none` decoration, clipping, and overlapping
|
|
1763
|
+
neighbors do not. Diagnostic evidence now carries the measured size plus
|
|
1764
|
+
the border `box`.
|
|
1765
|
+
- Fixed the `eslint-plugin-kerfjs` `ui-css-values` messages (`KUI-L013`,
|
|
1766
|
+
`KUI-L014`, `KUI-L017`) listing suggested helpers with unbalanced backticks
|
|
1767
|
+
(``use `uiColor() or `foregroundColorVar().``); each helper is now wrapped
|
|
1768
|
+
as `` `uiColor()` ``.
|
|
1769
|
+
- Fixed `kerf-ui-analyze` skipping the CSS-value contracts of `@kerfjs/ui`
|
|
1770
|
+
`Select` and `Skeleton`. Its component lookup was keyed by display name, so
|
|
1771
|
+
the same-named Web Awesome catalog entries (`wa-select`, `wa-skeleton`) —
|
|
1772
|
+
which carry no CSS-value props — shadowed them, and a wrong-grammar helper
|
|
1773
|
+
such as `colorVar()` for `SelectChoice.color` went unreported although the
|
|
1774
|
+
ESLint rule caught it. Entries now resolve by `package:id`, using the
|
|
1775
|
+
selection catalog's public exports and import subpaths.
|
|
1776
|
+
- Fixed `@kerfjs/ui` monospace text rendering in the generic face (Courier on
|
|
1777
|
+
macOS Chromium) whenever Web Awesome was loaded: `--kui-font-mono` deferred to
|
|
1778
|
+
Web Awesome's `ui-monospace, monospace`, which Chromium does not resolve, and
|
|
1779
|
+
the trailing generic `monospace` kept Kerf's named fallbacks from ever
|
|
1780
|
+
applying. `--kui-font-mono` is now Kerf's own stack (`ui-monospace,
|
|
1781
|
+
SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace`),
|
|
1782
|
+
and the Web Awesome theme points `--wa-font-family-code` at it so Kerf `Text
|
|
1783
|
+
font="monospace"` and Web Awesome code text match.
|
|
1784
|
+
- The `@kerfjs/ui` Web Awesome theme now gives default-size single-line
|
|
1785
|
+
controls Kerf's 44px control height, so a plain `wa-input` or `wa-button`
|
|
1786
|
+
sits flush beside a Kerf `Select` instead of about 9px shorter. It sets
|
|
1787
|
+
`--wa-form-control-height` to `2.75em` (44px at the default size) on Button,
|
|
1788
|
+
Color Picker, Input, Known Date, Number Input, Radio Group, Select, Textarea,
|
|
1789
|
+
and Time Input; `size="large"` scales proportionally, `size="small"` keeps Web
|
|
1790
|
+
Awesome's compact height, and buttons inside a `ToolbarControlGroup` keep the
|
|
1791
|
+
group's 40px (32px compact) height. Tags, copy buttons, and toasts are
|
|
1792
|
+
unchanged.
|
|
1793
|
+
- Fixed an `@kerfjs/ui` `Select` menu drawing two separators when a choice with
|
|
1794
|
+
`separatorBefore` opened a separated group: the group's border plus a
|
|
1795
|
+
`wa-divider` left an empty band between the group title and its first
|
|
1796
|
+
choice. `separatorBefore` now only divides a choice from the previous choice
|
|
1797
|
+
in the same list; a group boundary is already the single separator.
|
|
1798
|
+
- Fixed `@kerfjs/ui` compact `ToolbarControlGroup` end highlights not being
|
|
1799
|
+
concentric with the group: controls sat 2px from the sides but 1px from the
|
|
1800
|
+
top and bottom. A compact group now has no padding, so its 32px controls sit
|
|
1801
|
+
on a 1px inset on every side with a radius of the group radius minus 1px
|
|
1802
|
+
(pill and rounded). In compact mixed groups the raised selection still paints
|
|
1803
|
+
over the border with the group's radius, neighboring controls still abut, and
|
|
1804
|
+
the trailing dropdown trigger keeps the 1px end inset instead of running onto
|
|
1805
|
+
the border. Compact groups are 2px narrower as a result.
|
|
1806
|
+
- Added `Toolbar.safeAreaEdges` to `@kerfjs/ui` so an app bar or bottom bar
|
|
1807
|
+
that sits at a screen edge, outside any `Pane` header or footer, can claim
|
|
1808
|
+
those edges for device safe areas. A toolbar there used to take only the
|
|
1809
|
+
inline edges an owner handed it, so the app-shell recipe's top bar never
|
|
1810
|
+
cleared the status area. Each claimed side pads by the routed
|
|
1811
|
+
`--kui-edge-inset-*` context, or the full device inset when nothing routes
|
|
1812
|
+
it, while the bar's surface and divider still paint through; the minimum
|
|
1813
|
+
height grows with the claimed block insets so a shrinking flex column keeps a
|
|
1814
|
+
whole control row clear. A claim inside a `Pane` header or footer adds
|
|
1815
|
+
nothing, since the pane already owns those edges. The app-shell recipe's app
|
|
1816
|
+
bar now claims the top edge and both sides.
|
|
1817
|
+
- Fixed `@kerfjs/ui` slide-motion `ResizableRegion` content overflowing its
|
|
1818
|
+
separator when a parent clamps the region. The expanded content kept the
|
|
1819
|
+
committed size even when a `max-width` or narrow container held the track
|
|
1820
|
+
smaller, so in the catalog at 390px a region resized to 420px showed text
|
|
1821
|
+
running past its handle. Expanded content now follows the region's actual
|
|
1822
|
+
track on both axes; the fixed expanded size still applies while collapsing, so
|
|
1823
|
+
the collapse keeps reading as a slide.
|
|
1824
|
+
- Fixed `@kerfjs/ui` `ResizableRegion` panes stopping at their content's
|
|
1825
|
+
height. The region's content now spans the whole region, like its separator,
|
|
1826
|
+
and a lone child (normally a `Pane`) fills it, so the app-shell recipe's
|
|
1827
|
+
navigation and inspector panes reach the bottom edge and scroll long content
|
|
1828
|
+
inside their own content slot instead of ending partway down the region.
|
|
1829
|
+
Several children still stack at their natural height.
|
|
1830
|
+
- Fixed `@kerfjs/ui` `Toolbar responsive="center-priority"` leaving an
|
|
1831
|
+
expanded center control at roughly half the row on narrow toolbars. The
|
|
1832
|
+
policy set the toolbar's own grid template inside a container query on the
|
|
1833
|
+
toolbar itself, which can never match, so the center kept only the first
|
|
1834
|
+
column track once the leading and trailing zones left. The dead rule is gone
|
|
1835
|
+
and the expanded center now spans every column track, filling the toolbar's
|
|
1836
|
+
content width at phone widths.
|
|
1837
|
+
- Fixed a nested `@kerfjs/ui` `List`, `Row`, or `Grid` inheriting its
|
|
1838
|
+
ancestor's `gap` and `flex`. Those props travel through private custom
|
|
1839
|
+
properties, which inherit, so a nested `List` without its own `gap` took the
|
|
1840
|
+
enclosing `List`'s gap (a heading unit inside a form got a 24px gap between
|
|
1841
|
+
its title and supporting line) and any nested instance without `flex` took the
|
|
1842
|
+
ancestor's flex growth. Every instance now resets its private values, so an
|
|
1843
|
+
omitted prop means that component's own default. The workspace-header recipe's
|
|
1844
|
+
breadcrumb now sits directly above its title and the List demo's section rows
|
|
1845
|
+
sit flush under their header, as intended.
|
|
1846
|
+
- Fixed `@kerfjs/ui` slide-motion `ResizableRegion` content staying at its
|
|
1847
|
+
previous width during a live resize until the app re-rendered the committed
|
|
1848
|
+
size. `wireResizableRegions` now applies the live size to the sliding content
|
|
1849
|
+
as well as the track, for pointer drags and key presses, so the content fills
|
|
1850
|
+
the region (including a safe-area edge extent) throughout the drag and a later
|
|
1851
|
+
collapse still slides it out at the resized width.
|
|
1852
|
+
- Fixed the `@kerfjs/ui` `ListHeader` action's pointer target being only its
|
|
1853
|
+
fitted 36px square although the guidance promises 44px. A transparent hit
|
|
1854
|
+
layer now extends the target to at least 44 × 44 around the square without
|
|
1855
|
+
moving layout or enlarging the painted hover surface. Compact headers are
|
|
1856
|
+
36px tall like the rest of the compact List family, so their action target is
|
|
1857
|
+
44px wide and clamped to the header height, never reaching into a neighboring
|
|
1858
|
+
row.
|
|
1859
|
+
- Fixed re-renders closing open Web Awesome popups: the morph (and the keyed-list
|
|
1860
|
+
attribute fast path) no longer removes a live `open` attribute from custom
|
|
1861
|
+
elements (`wa-select`, `wa-dropdown`, `wa-dialog`, …) when the template omits
|
|
1862
|
+
it — the same user-agent-owned treatment `<details>` / `<dialog>` already
|
|
1863
|
+
had. A template can still set `open`; closing stays imperative.
|
|
1864
|
+
- The `@kerfjs/ui` composer-form recipe's supporting line now sits directly
|
|
1865
|
+
under its toolbar title instead of 24px lower, because a nested `List` no
|
|
1866
|
+
longer inherits the form's section gap (see the nested `List`/`Row`/`Grid`
|
|
1867
|
+
fix above). The guidance now
|
|
1868
|
+
also states that `ToolbarText` below `xlarge` is intentionally quiet identity
|
|
1869
|
+
text with no tone option. A normal-color subsection title is `Text` with an
|
|
1870
|
+
`h2`–`h6` variant, or `ListHeader` for a list or menu section.
|
|
1871
|
+
- Fixed `@kerfjs/ui` `ToolbarText size="small"` labels rendering in a
|
|
1872
|
+
monospace fallback face in Chromium. The small size used the code-font token,
|
|
1873
|
+
which resolves through Web Awesome's `ui-monospace, monospace` stack; Chromium
|
|
1874
|
+
does not recognize `ui-monospace`, so labels such as a pane's "Workspace" or
|
|
1875
|
+
"Ready" fell back to the generic monospace font. Every `ToolbarText` size now
|
|
1876
|
+
keeps the inherited UI sans stack.
|
|
1877
|
+
- Fixed `@kerfjs/ui` `ListInsetControl` not stretching its control as
|
|
1878
|
+
documented. Its `justify-content: stretch` is a no-op on a flex row, so a
|
|
1879
|
+
`Select`, `wa-input`, or `wa-button` inside stayed at its natural width. Each
|
|
1880
|
+
direct child now grows to fill the inset row (several children share it with
|
|
1881
|
+
the 8px gap) and may shrink below its intrinsic width instead of overflowing.
|
|
1882
|
+
- `@kerfjs/ui` `List`, `Row`, and `Grid` can now be the layout root of a
|
|
1883
|
+
fixed-height parent. New `fill` takes the parent's full height (use `flex`
|
|
1884
|
+
inside a flex layout as before), and new `rootAttributes` carries safe
|
|
1885
|
+
`data-*` metadata while the component's structural attributes stay
|
|
1886
|
+
protected. The app-shell and collapsible-sidebar recipes now use a filling
|
|
1887
|
+
List or Row root instead of a frame `Pane` whose scroll owner never scrolled;
|
|
1888
|
+
the collapsible sidebar's rail and drawer now reach the real frame edges, so
|
|
1889
|
+
they paint through safe areas as the layout model intends. The UX catalog
|
|
1890
|
+
adds an application-sized `height: "app"` (592px) specimen frame, and both
|
|
1891
|
+
recipes use it instead of the cramped 360px `tall` frame.
|
|
1892
|
+
- Fixed a `@kerfjs/ui` stacked `Toolbar` clipping its last trailing action at
|
|
1893
|
+
phone widths (the compact-toolbar recipe's "More" button at 390px). A
|
|
1894
|
+
toolbar's trailing zone now wraps whole control groups onto another
|
|
1895
|
+
trailing-aligned row under every `responsive` policy, and a
|
|
1896
|
+
`responsive="stack"` toolbar wraps its stacked center and trailing groups the
|
|
1897
|
+
same way, so no action is ever clipped or shrunk. Stacked zones also span the
|
|
1898
|
+
full toolbar width; they previously lost 16px to empty column tracks. New:
|
|
1899
|
+
`responsive="wrap"` keeps a heading on one row while everything fits and
|
|
1900
|
+
otherwise moves the trailing zone below a whole title instead of truncating
|
|
1901
|
+
it. The loading-inspector recipe uses it, so its narrow heading shows the
|
|
1902
|
+
whole record title instead of an ellipsis.
|
|
1903
|
+
- `@kerfjs/ui` layouts and `Pane` now handle device safe areas as one model.
|
|
1904
|
+
Pane and panel backgrounds, separators, and dividers paint through unsafe
|
|
1905
|
+
areas; content is padded only on the edges a region actually reaches, and
|
|
1906
|
+
block insets become scroll padding so content can scroll under the status bar
|
|
1907
|
+
or home indicator but always scroll clear. `Workbench` rails and drawer,
|
|
1908
|
+
`CollapsiblePanel`, and the `SplitView` list grow by the inset they dock to.
|
|
1909
|
+
A center pane picks up the inset when an adjacent rail collapses, and
|
|
1910
|
+
interior or nested edges are never double-inset. A header or footer `Toolbar`
|
|
1911
|
+
keeps its dividers edge to edge. New: `Pane.safeAreaEdges` (default all
|
|
1912
|
+
sides; `[]` opts out), the `--kui-safe-area-*` device-inset tokens (default
|
|
1913
|
+
`env(safe-area-inset-*)`), the inherited `--kui-edge-inset-*` edge context for
|
|
1914
|
+
app-owned layouts, and `--kui-resizable-region-edge-extent`. Nothing changes
|
|
1915
|
+
on devices or pages without safe-area insets.
|
|
1916
|
+
- Fixed a `@kerfjs/ui` `ListHeader` action sitting about 4px outside the
|
|
1917
|
+
trailing toolbar action of the Pane header above it. Its fitted action now
|
|
1918
|
+
centers in the same 44px slot a toolbar control occupies at the 8px inline
|
|
1919
|
+
margin, so trailing icon actions share one axis. The action's size, 18px
|
|
1920
|
+
visual, and hover square are unchanged.
|
|
1921
|
+
- **Breaking (`@kerfjs/ui`, 5.0 beta):** `SelectChoice.color` now accepts only
|
|
1922
|
+
a foreground color, the new `CssForegroundColor` brand from
|
|
1923
|
+
`@kerfjs/ui/css-values`. `uiColor()` returns it for foreground token names
|
|
1924
|
+
(the new `UiForegroundColorName`: the `*-on-*` roles, `text`, `text-quiet`,
|
|
1925
|
+
`text-link`, and the `*-text` aliases), and the new
|
|
1926
|
+
`foregroundColorVar('--app-icon-color', fallback?)` returns it for an
|
|
1927
|
+
application-owned property. The `--kui-color-success` / `warning` / `danger`
|
|
1928
|
+
/ `pop` / `accent` compatibility aliases are quiet fills that read like
|
|
1929
|
+
foreground colors; colored with one, an icon rendered at about 1.2:1
|
|
1930
|
+
contrast. `uiColor('success')` and the other fill, border, and surface tokens
|
|
1931
|
+
still return a plain `CssColor` and no longer type-check as an icon color,
|
|
1932
|
+
and neither does a plain `colorVar()` value. Migrate
|
|
1933
|
+
`color: uiColor('success')` to `uiColor('success-on-quiet')` and
|
|
1934
|
+
`color: colorVar('--app-color')` to `foregroundColorVar('--app-color')`;
|
|
1935
|
+
`uiColor('…-on-…')` calls keep compiling unchanged. The catalog's CSS-value
|
|
1936
|
+
contract for `choices[].color` lists `uiColor` and `foregroundColorVar`, so
|
|
1937
|
+
`eslint-plugin-kerfjs` also reports `colorVar()` there (`KUI-L014`), and
|
|
1938
|
+
the source and packed consumer type contracts pin the rejected fills.
|
|
1939
|
+
|
|
1940
|
+
- Fixed an `@kerfjs/ui` icon-only `Select` beside other controls in one
|
|
1941
|
+
`ToolbarControlGroup`. A compact Select no longer eats 1px of the group's
|
|
1942
|
+
4px gap on each side (the lone-trigger padding overlap now applies only when
|
|
1943
|
+
it is the group's only child), a compact rounded Select uses its siblings'
|
|
1944
|
+
item radius instead of the lone-slot radius, and the Select now shows the
|
|
1945
|
+
same hover pill as its sibling buttons (a lone Select lifts the whole group,
|
|
1946
|
+
like a popup-menu dropdown). In a group with per-control focus rings
|
|
1947
|
+
(`focusRing="control"`, the default) the Select paints the same ring as its
|
|
1948
|
+
siblings even when `focusRingOwner="group"` was set, which previously left it
|
|
1949
|
+
with no visible focus. A compact icon-only `<button>` is now a 32px circle,
|
|
1950
|
+
so a selected compact segment is no longer a 34x32 oval. The
|
|
1951
|
+
ToolbarControlGroup catalog adds a "Select beside actions" example.
|
|
1952
|
+
|
|
1953
|
+
- Changed the `@kerfjs/ui` icon-only `Select`
|
|
1954
|
+
(`selectedPresentation="icon-only"`) to keep its disclosure caret. The
|
|
1955
|
+
selected icon and caret now form one pill with the same geometry as a
|
|
1956
|
+
`ToolbarControlGroup` popup-menu `wa-dropdown` trigger: 8px inline padding on
|
|
1957
|
+
both sides, 12px from the icon to the caret, the same caret glyph size, and a
|
|
1958
|
+
40px default or 32px compact control height, so the icon sits left of center
|
|
1959
|
+
to balance the caret. In a single `ToolbarControlGroup` the group now sizes to
|
|
1960
|
+
the trigger (a 70x44 default or 68x34 compact pill, wider than it is tall)
|
|
1961
|
+
with an even inset on every side and a concentric radius, for pill and
|
|
1962
|
+
rounded shapes, so the group-owned outline or halo ring follows the pill while
|
|
1963
|
+
focused and while the listbox is open. Before, a default-size trigger was a
|
|
1964
|
+
32px square left-aligned in its 44px group, and the caret was hidden. The
|
|
1965
|
+
Select catalog adds a default-size "Toolbar icon" example beside the compact
|
|
1966
|
+
one.
|
|
1967
|
+
|
|
1968
|
+
- Fixed the `@kerfjs/ui` icon-only `Select` focus ring in a
|
|
1969
|
+
`ToolbarControlGroup` not matching the control: the compact trigger grew its
|
|
1970
|
+
group into a 36x34 oval and its disclosure caret overflowed the trailing edge.
|
|
1971
|
+
The group-owned ring now stays concentric with the trigger while focused and
|
|
1972
|
+
while the listbox is open. The Select demo's "Quiet" option icon also used the success fill alias
|
|
1973
|
+
as its color and was nearly invisible; it now uses `success-on-quiet`, and the
|
|
1974
|
+
`SelectChoice.color` guidance names foreground tokens.
|
|
1975
|
+
|
|
1976
|
+
- `@kerfjs/ui` UX catalog: the ten production recipes now compose Kerf
|
|
1977
|
+
components, layouts, and Web Awesome surfaces through their public
|
|
1978
|
+
configuration alone, with no route stylesheets, inline styles, or
|
|
1979
|
+
styling-only classes. The list-detail dialog is rebuilt from `DialogSurface`,
|
|
1980
|
+
the dialog's own labeled header and close control, `SplitView` (a full-screen
|
|
1981
|
+
list-to-detail drill-down on compact devices), aligned `ListHeader`s, a
|
|
1982
|
+
`ValueTable`, and footer actions. The desktop application shell switches to one
|
|
1983
|
+
pane at a time below desktop sizes through `deviceClass()`. Page and pane
|
|
1984
|
+
headings stack instead of hiding their titles at narrow widths, and supporting
|
|
1985
|
+
copy, content-item text, and loading skeletons sit on the shared 17px text
|
|
1986
|
+
inset. The catalog frames each recipe in a `CatalogExample` viewport that the
|
|
1987
|
+
recipe declares through an exported `presentation`, and recipe ownership notes
|
|
1988
|
+
render as that example's note. `npm run check:recipes` now fails on a recipe
|
|
1989
|
+
stylesheet, an inline style, a class outside the published layout and Web
|
|
1990
|
+
Awesome vocabulary, a non-public stylesheet import, or recipe-specific rules in
|
|
1991
|
+
the catalog shell stylesheet.
|
|
1992
|
+
- Fixed `@kerfjs/ui/webawesome.css` `wa-dialog` titles given as a plain-string
|
|
1993
|
+
`label` sitting at the bare surface inset; they now inset by one bordered
|
|
1994
|
+
item step (`--kui-layout-item-padding` + 1px) so the header label lines up
|
|
1995
|
+
with body text and icons. Slotted label elements are unaffected.
|
|
1996
|
+
- Fixed icon + label `wa-button`s inside `ToolbarControlGroup` stacking the
|
|
1997
|
+
icon above the label; their label part now lays out as a single nowrap row,
|
|
1998
|
+
matching native mixed buttons.
|
|
1999
|
+
- `prompt()` / `form()` now reject with a `TypeError` when a validator returns
|
|
2000
|
+
a promise (validators are synchronous), instead of resolving the value and
|
|
2001
|
+
leaving an unhandled rejection. `prompt()` also re-reads its input on every
|
|
2002
|
+
OK, so a reactive `render` that replaces the input no longer submits the
|
|
2003
|
+
detached original's stale value, and a removed input rejects the promise.
|
|
2004
|
+
- A local `npm run check` run with `KERF_SKIP_PACKAGE_GATES=1` no longer
|
|
2005
|
+
records a verified tree, so the pre-push hook cannot skip the sibling-package
|
|
2006
|
+
gates that run left out.
|
|
2007
|
+
- `kerfjs/overlay`: a `prompt()` `validate` or `form()` `field.validate` that
|
|
2008
|
+
throws now closes the dialog (full teardown, focus restored) and rejects the
|
|
2009
|
+
returned promise with the original error. Previously the error escaped the
|
|
2010
|
+
OK click or Enter handler, and the dialog stayed open with an OK button that
|
|
2011
|
+
could never succeed. Validators are synchronous; this is the error channel
|
|
2012
|
+
for a validator bug.
|
|
2013
|
+
- `kerfjs/overlay`: when a `form()` field input disappears after the dialog
|
|
2014
|
+
opens (for example a reactive `render` re-render drops it), OK and Enter now
|
|
2015
|
+
close the dialog and reject the promise with an error naming the missing
|
|
2016
|
+
field. Previously `form()` resolved `null`, which
|
|
2017
|
+
reads as a Cancel, and threw from the click handler.
|
|
2018
|
+
- `@kerfjs/ui`: a multiline `ListItem` whose label fits on one line now
|
|
2019
|
+
centers its icon on that line. The row's 44px minimum used to stretch the
|
|
2020
|
+
grid track, which centered the label but left the start-aligned icon about
|
|
2021
|
+
1.4px above it.
|
|
2022
|
+
- `@kerfjs/ui`: a `ToolbarControlGroup` with `focusRing="outline"` or
|
|
2023
|
+
`"halo"` keeps its group focus ring while a `Select` inside it has its
|
|
2024
|
+
listbox open. Chromium and WebKit did not carry `:focus-within` from the
|
|
2025
|
+
focused option to the group, so the ring disappeared.
|
|
2026
|
+
- UX catalog: the foundation palette's Brand swatch uses the brand on-fill
|
|
2027
|
+
color again, the Spacer demo gives its flexible spacer room to grow again,
|
|
2028
|
+
and the TokenSearchField adoption demo again wires its chip keyboard and
|
|
2029
|
+
`onEdit` readout. The catalog demo rework had broken all three.
|
|
2030
|
+
- Documented and pinned how `tooltip()` surfaces a failed show from its delay
|
|
2031
|
+
timer: the half-built tooltip is rolled back, the original error escapes the
|
|
2032
|
+
timer for the host to report (a window `error` event in browsers, matching
|
|
2033
|
+
kerf's other deferred callbacks), and the tooltip stays armed so the next
|
|
2034
|
+
hover or focus tries again.
|
|
2035
|
+
- Fixed the dialog helpers (`confirm` / `prompt` / `form` / `choice`) leaving
|
|
2036
|
+
wiring behind when a step after the overlay opened failed. Their post-open
|
|
2037
|
+
wiring (required-slot checks, the click-table `delegate()`, the Enter-key
|
|
2038
|
+
listener) is now part of construction: a failure removes the listeners
|
|
2039
|
+
already wired, closes the overlay (including a `native` `<dialog>`), restores
|
|
2040
|
+
focus, and rethrows the original error, so no pending promise is left
|
|
2041
|
+
attached to an on-screen dialog.
|
|
2042
|
+
- Added `ticket:timing summary --all`, a read-only cross-ticket timing report
|
|
2043
|
+
(median/p90 per phase, gate, and check step) that counts one push shared by
|
|
2044
|
+
a batch of tickets once and detects and excludes fan-out backfill, such as
|
|
2045
|
+
the first timed push that attached one check interval to 374 historical
|
|
2046
|
+
tickets.
|
|
2047
|
+
- Ticket timing now records per-step durations of the root `npm run check`
|
|
2048
|
+
chain (printed at the end of every run), interrupted gate attempts, active
|
|
2049
|
+
time through `ticket:timing claim`/`release` wrappers around `hotsheet-cli`,
|
|
2050
|
+
and CI/publication intervals imported idempotently from GitHub Actions with
|
|
2051
|
+
`ticket:timing import-ci`.
|
|
2052
|
+
- The pre-push hook no longer reruns `npm run check` when a local run already
|
|
2053
|
+
passed on the exact clean tree being pushed; the skip is recorded in ticket
|
|
2054
|
+
timing, and any dirty worktree, different tree, Node.js change,
|
|
2055
|
+
failed/interrupted rerun, or `KERF_FORCE_CHECK=1` runs the full gate.
|
|
2056
|
+
- The pre-push hook no longer fans its timing record out to every ticket in a
|
|
2057
|
+
push that names more than 25 of them (a first push of a long history, a
|
|
2058
|
+
force-push). It prints a notice and records only the explicit
|
|
2059
|
+
`KERF_TICKET_TIMING_TICKETS` list, or nothing, so it can no longer write the
|
|
2060
|
+
backfill shape the cross-ticket summary has to exclude.
|
|
2061
|
+
- The pre-push hook's "already verified" skip now also requires the same
|
|
2062
|
+
platform, architecture, and installed dependencies as the passing run: a
|
|
2063
|
+
fingerprint of every `package-lock.json` and `node_modules/.package-lock.json`
|
|
2064
|
+
across the root, `ui/`, `eslint-plugin/`, `create-kerf-component/`, and
|
|
2065
|
+
`site/`. A reinstall, a lockfile change, or a missing `node_modules` now runs
|
|
2066
|
+
the full gate.
|
|
2067
|
+
- `ticket:timing record` accepts `--run-id <n>`, and `import-ci` no longer
|
|
2068
|
+
imports a GitHub run a second time when it was already recorded by hand:
|
|
2069
|
+
an interval with that run id, or one with no run id for the same phase and
|
|
2070
|
+
gate whose span overlaps the run's (within 60 seconds), counts as imported.
|
|
2071
|
+
- `bindList()` now rolls back when its first render throws: rows that pass
|
|
2072
|
+
already created are disposed (content mounts and element-mode `dispose`
|
|
2073
|
+
callbacks) and removed before the original error is rethrown, instead of
|
|
2074
|
+
leaking live row effects with no handle to release them.
|
|
2075
|
+
- `bindList()` virtualization now validates its dimensions: heights (fixed,
|
|
2076
|
+
estimated, callback-returned, and `setHeight` reports) must be finite and
|
|
2077
|
+
non-negative, a fixed window-mode `rowHeight` must be positive, and
|
|
2078
|
+
`overscan` / `minRows` must be non-negative integers. Invalid values throw a
|
|
2079
|
+
descriptive error instead of producing blank windows or a corrupted scroll
|
|
2080
|
+
anchor.
|
|
2081
|
+
- `bindList()` now rejects a source that carries the `arraySignal` brand but
|
|
2082
|
+
has no patch queue with a descriptive error at bind time, instead of failing
|
|
2083
|
+
with a generic `TypeError` on its first render.
|
|
2084
|
+
- Added `wa-dialog.hide-actions` support to `@kerfjs/ui/webawesome.css`, hiding
|
|
2085
|
+
Web Awesome's directly exported `header-actions` shadow part for dialogs that
|
|
2086
|
+
provide their own dismissal affordance.
|
|
2087
|
+
- Fixed `mount()` leaving an element permanently "already mounted" when its
|
|
2088
|
+
first render throws. The first render is now transactional: the original
|
|
2089
|
+
error is rethrown, every binding effect and the dev listener observer
|
|
2090
|
+
acquired so far are released, the element's pre-mount child nodes are
|
|
2091
|
+
restored, and a retry on the same element succeeds.
|
|
2092
|
+
- Fixed `overlay()` construction leaking a live wrapper, mount, dismissal
|
|
2093
|
+
listeners, and concurrent-overlay stack entry when setup failed partway. A
|
|
2094
|
+
malformed `initialFocus` selector now throws a descriptive `overlay()` error
|
|
2095
|
+
before anything is touched, and a throwing first render or `native`
|
|
2096
|
+
`showModal()` / `showPopover()` call rolls back everything already installed
|
|
2097
|
+
(restoring focus) before rethrowing. `popover()` and `tooltip()` roll back the
|
|
2098
|
+
same way when positioning fails; the dialog helpers inherit the guarantee.
|
|
2099
|
+
- Added an opt-in `@kerfjs/ui/document.css` baseline for border-box sizing,
|
|
2100
|
+
token-backed body and link presentation, and a `.kui-app-root` full-height
|
|
2101
|
+
chain for application shells.
|
|
2102
|
+
- Added an inline `Text` span variant for secondary copy inside rows, labels,
|
|
2103
|
+
and table cells, preserving tone, size, and font roles without box geometry.
|
|
2104
|
+
- Reworked every focused UX catalog demo to dogfood Kerf components, Web
|
|
2105
|
+
Awesome surfaces, and semantic HTML without route-local stylesheets, inline
|
|
2106
|
+
styles, styling-only classes, or shared icon/button render helpers. Added
|
|
2107
|
+
catalog-owned specimen viewport constraints and a nonwaivable conformance
|
|
2108
|
+
gate that prevents those styling shortcuts from returning.
|
|
2109
|
+
- Fixed `ToolbarControlGroup` dropdown triggers that were sized to fixed 48px/66px boxes,
|
|
2110
|
+
which clipped popup icons and let compact mixed-control carets overflow in
|
|
2111
|
+
Safari while distorting longer catalog controls.
|
|
2112
|
+
- Added a `TabBar.end` action zone for layouts that need a tab-local adjacent
|
|
2113
|
+
`trailing` action and a separate far-edge action; the tab strip now owns the
|
|
2114
|
+
shrink/scroll geometry while all action regions remain visible.
|
|
2115
|
+
- Moved the UX catalog checkerboard to the preview scroll owner and replaced
|
|
2116
|
+
its four gradients with one repeated SVG tile, so the pattern continues
|
|
2117
|
+
through below-fold content.
|
|
2118
|
+
- Added explicit native `slot` support to every stable single-root
|
|
2119
|
+
`@kerfjs/ui` visual component, including alternate render branches, while
|
|
2120
|
+
keeping multi-root `ResizableRegion` and `CollapsiblePanel` excluded.
|
|
2121
|
+
- Fixed the UX catalog's desktop grid sizing so both the sidebar and component
|
|
2122
|
+
detail can scroll all the way to their final content while narrow layouts
|
|
2123
|
+
retain normal document scrolling.
|
|
2124
|
+
- Fixed single-line `ToolbarText` clipping glyph descenders while retaining its
|
|
2125
|
+
horizontal ellipsis behavior.
|
|
2126
|
+
- Formalized UX catalog demos as components, compositions, or recipes; catalogs
|
|
2127
|
+
now group and order those kinds consistently and label compositions with a
|
|
2128
|
+
visible tag instead of title suffixes.
|
|
2129
|
+
- Removed stale Web Awesome guidance that still advertised the deleted
|
|
2130
|
+
aggregate theme route; focused component routes remain the supported catalog
|
|
2131
|
+
surface.
|
|
2132
|
+
- Aligned Web Awesome Accordion and Details disclosure geometry: plain Details
|
|
2133
|
+
keep a flush body, plain Accordion items use the 8px surface inset throughout,
|
|
2134
|
+
framed Details use 16px on the trigger and 8px on the body, and framed
|
|
2135
|
+
Accordion items use 16px throughout.
|
|
2136
|
+
- Added a first-class `@kerfjs/ui/grid` layout primitive for any positive
|
|
2137
|
+
equal-width column count, with typed gap and flex values and zero-minimum
|
|
2138
|
+
fractional tracks that stay equal when child content has different intrinsic
|
|
2139
|
+
widths.
|
|
2140
|
+
- Made accent and filled-outlined Web Awesome badge variants meet WCAG AA at
|
|
2141
|
+
their compact text size while preserving loud accent fills and outlined
|
|
2142
|
+
borders.
|
|
2143
|
+
- Added independent typed `tone`, `size`, and `font` presentation roles to
|
|
2144
|
+
`@kerfjs/ui/text`, covering quiet/danger copy, compact metadata, and monospace
|
|
2145
|
+
identifiers without global utility classes or appearance-only heading levels.
|
|
2146
|
+
- Made filled Web Awesome badges use a quiet semantic fill with normal text by
|
|
2147
|
+
default, preserving variant tint while meeting WCAG AA for their compact text.
|
|
2148
|
+
- Fixed nested Rows and Lists inheriting inset values for sides that were not
|
|
2149
|
+
selected on the inner layout component.
|
|
2150
|
+
- Fixed migrated `Text` instances in Catalog and passive `ListHeader` labels
|
|
2151
|
+
retaining nested padding or border geometry that offset their visible content.
|
|
2152
|
+
- Added `Row.vAlign="baseline"` for native flex cross-axis baseline alignment;
|
|
2153
|
+
`List.vAlign` remains limited to values supported by vertical main-axis
|
|
2154
|
+
distribution.
|
|
2155
|
+
- Added a first-class `@kerfjs/ui/text` component for native `h1`–`h6` and
|
|
2156
|
+
paragraph semantics with standard transparent-border and content-padding
|
|
2157
|
+
geometry and margin-neutral defaults; it renders `p` when `variant` is omitted,
|
|
2158
|
+
and Kerf UI's headings and prose now use it.
|
|
2159
|
+
- Added the shared physical `Sides` contract to `List` and `Row` text/control
|
|
2160
|
+
insets and to `ListInsetText` / `ListInsetControl`; inset wrappers now default
|
|
2161
|
+
to all four sides, while `ListInsetText.horizontalOnly` remains a deprecated
|
|
2162
|
+
compatibility alias for `sides="rl"`.
|
|
2163
|
+
- Added `ListHeader.inline` for shrink-wrapped section labels that remove the
|
|
2164
|
+
component root's outer margin, border, and padding while preserving title,
|
|
2165
|
+
count, action, and disclosure behavior.
|
|
2166
|
+
- Added a catalog-driven public-component integration validator for
|
|
2167
|
+
`@kerfjs/ui`, including an all-at-once dry-run report across package, build,
|
|
2168
|
+
barrel, CSS, demo, route, signature, and compatibility surfaces.
|
|
2169
|
+
- Added one change-local `@kerfjs/ui` verification command that synchronizes
|
|
2170
|
+
generated projections, runs component/bundle/type coverage, builds the demo,
|
|
2171
|
+
reports exact gzip deltas, and records reviewed budget updates with reasons.
|
|
2172
|
+
- Made every `@kerfjs/ui` Playwright invocation build current catalog source
|
|
2173
|
+
after fast preflights, with a served source digest that rejects stale preview
|
|
2174
|
+
output during focused browser runs.
|
|
2175
|
+
- Added durable Hot Sheet phase timing for active work, local verification,
|
|
2176
|
+
push hooks, CI, and publication, including safe failure aggregation and
|
|
2177
|
+
per-ticket summaries.
|
|
2178
|
+
- Added typed flex participation to `Row`, matching `List`'s boolean, finite
|
|
2179
|
+
keyword, and branded `CssFlex` contract.
|
|
2180
|
+
- Added a first-class horizontal `Row` with typed spacing, physical-axis
|
|
2181
|
+
alignment, and opt-in wrapping; `List` now supports the same alignment
|
|
2182
|
+
vocabulary while retaining its existing defaults.
|
|
2183
|
+
- Refined compact mixed `ToolbarControlGroup` selections to retain standard
|
|
2184
|
+
horizontal padding, remove the internal separator, and raise the selected
|
|
2185
|
+
surface over the outer border; avatar group hover now preserves image fitting.
|
|
2186
|
+
- Moved the comprehensive local `npm run check` gate from pre-commit to
|
|
2187
|
+
pre-push so coherent commit batches pay its cost once; pre-commit now performs
|
|
2188
|
+
only Git's staged whitespace check, and multi-source AI guidance files are
|
|
2189
|
+
excluded from repository-wide Prettier enforcement.
|
|
2190
|
+
- Fixed `create-kerf-component` releases carrying a stale composition-catalog
|
|
2191
|
+
schema by generating the bundled copy from `@kerfjs/ui`'s canonical schema
|
|
2192
|
+
and gating both the root check and interactive release flow against drift.
|
|
2193
|
+
- Added catalog-driven CSS value diagnostics across `eslint-plugin-kerfjs`,
|
|
2194
|
+
`kerf-ui-analyze`, and `kerf-ui-doctor`. Stable `KUI-L013`–`KUI-L017`
|
|
2195
|
+
findings now identify raw or unknown values, wrong-dimension helpers,
|
|
2196
|
+
incomplete expressions, declaration-list escapes, and review-worthy
|
|
2197
|
+
off-scale spacing from first- or third-party component catalogs.
|
|
2198
|
+
- Extended the property-specific `@kerfjs/ui/css-values` contracts: `List.flex`
|
|
2199
|
+
now uses finite keywords or `flex()`, `Skeleton` dimensions use `CssSize` and
|
|
2200
|
+
`CssLength`, and `SelectChoice.color` uses `uiColor()` or `colorVar()`.
|
|
2201
|
+
Removed the unrestricted `style` escape hatches from `ListItem` and
|
|
2202
|
+
`ListActionRow` before the 5.0 stable release; use `className`, public tokens,
|
|
2203
|
+
and cataloged props instead.
|
|
2204
|
+
- Added typed, CSS-free `@kerfjs/ui/css-values` builders and branded complete
|
|
2205
|
+
versus expression length types. `List.gap` now accepts direct spacing-token
|
|
2206
|
+
shorthands or complete `CssLength` values and rejects unrestricted CSS strings.
|
|
2207
|
+
- Added the public recursive `JSXChildren` type from both `kerfjs` and
|
|
2208
|
+
`kerfjs/jsx-runtime`, giving third-party function components a canonical
|
|
2209
|
+
declaration for nullable, signal-backed, and arbitrarily nested readonly
|
|
2210
|
+
child content that matches the runtime.
|
|
2211
|
+
- Added the public recursive `KerfUiContent` type across semantic UI content
|
|
2212
|
+
zones, so nullable conditionals and mutable or readonly nested component
|
|
2213
|
+
arrays compose directly without a `Fragment` while raw strings, numbers, and
|
|
2214
|
+
signals remain rejected outside explicit text positions.
|
|
2215
|
+
- Fixed bottom `Workbench` drawers overshooting and snapping during collapse
|
|
2216
|
+
transitions by anchoring fixed-height content to the shell's stable bottom
|
|
2217
|
+
edge.
|
|
2218
|
+
- Fixed bottom `CollapsiblePanel` drawers overshooting their open position and
|
|
2219
|
+
snapping back by anchoring fixed-height content to the panel's stable bottom
|
|
2220
|
+
edge throughout the transform transition.
|
|
2221
|
+
- Formalized named `SafeHtml` prop slots as explicit `zone.jsx.prop` bindings
|
|
2222
|
+
in the UI composition catalog and generalized `ui-composition` linting beyond
|
|
2223
|
+
Toolbar, including statically visible `children`, cardinality, aliases,
|
|
2224
|
+
namespaces, arrays, fragments, and branches.
|
|
2225
|
+
- Added `ToolbarControlGroup.avatarImage`, painting contained avatar imagery on
|
|
2226
|
+
a lone group or on the pressed highlight when the group has multiple buttons.
|
|
2227
|
+
- Split the AppTab and TabBar catalog routes into focused component specimens,
|
|
2228
|
+
and moved their controlled selection, tabpanel, overflow, add/close, and
|
|
2229
|
+
reorder lifecycle into a separate application-tabs composition demo.
|
|
2230
|
+
- Fixed `wireNavStack` focus ownership across controlled navigation: pushes
|
|
2231
|
+
focus the new top view, pops restore its remembered descendant, and removed
|
|
2232
|
+
targets fall back through `data-nav-focus`, the first enabled control, and
|
|
2233
|
+
the view container.
|
|
2234
|
+
- Fixed compact mixed-content `ToolbarControlGroup` dropdown triggers being
|
|
2235
|
+
forced into an icon-only width, which painted the label across its separator
|
|
2236
|
+
and the Web Awesome caret outside the group.
|
|
2237
|
+
- Made `ListItem` clip label, status, and dormant trailing painting to its
|
|
2238
|
+
rounded row boundary so compact and constrained rows cannot visibly overflow;
|
|
2239
|
+
described rows now grow enough to keep their owned two-line label readable.
|
|
2240
|
+
- Fixed compact toolbar `Select` focus to follow its owning group's pill or
|
|
2241
|
+
rounded geometry and restored consistent spacing between popup icons and labels.
|
|
2242
|
+
- Fixed the compact-toolbar recipe's independent overflow action to use the
|
|
2243
|
+
same full-height pill geometry as its adjacent toolbar controls.
|
|
2244
|
+
- Fixed the catalog footer's `Components` relationship selector to fit its icon
|
|
2245
|
+
and plural label and give popup headings/items consistent border clearance.
|
|
2246
|
+
- Fixed a collapsible `TokenSearchField` inside a rounded
|
|
2247
|
+
`ToolbarControlGroup` retaining its independent pill radius instead of using
|
|
2248
|
+
the group's shared concentric highlight radius.
|
|
2249
|
+
- Updated the header-composition catalog demo's supporting copy to use the
|
|
2250
|
+
horizontal `ListInsetText` geometry, aligning it with the value-table content
|
|
2251
|
+
edge across responsive, RTL, and zoomed layouts.
|
|
2252
|
+
- Updated the `Pane` catalog demo's secondary header copy to use
|
|
2253
|
+
`ListInsetText`, aligning it with the standard pane content gutter at wide and
|
|
2254
|
+
narrow sizes instead of maintaining demo-only padding.
|
|
2255
|
+
- Completed `NavStack` navigation transitions by cross-fading top and bottom
|
|
2256
|
+
chrome alongside content slides, added per-view bottom toolbars with a
|
|
2257
|
+
persistent fallback, and replaced the static focused demo with a working
|
|
2258
|
+
push/pop flow.
|
|
2259
|
+
- Replaced the static compact `SplitView` detail specimen with a controlled,
|
|
2260
|
+
interactive list-to-detail drill-down whose Back action restores the list;
|
|
2261
|
+
the roomy example now demonstrates controlled selection as well.
|
|
2262
|
+
- Documented and demonstrated list-first dialog bodies: use `List` with
|
|
2263
|
+
`bodyInset="none"`, and wrap bare dialog copy in `ListInsetText` so content
|
|
2264
|
+
shares the standard list gutter without double-insetting.
|
|
2265
|
+
- Fixed `@kerfjs/ui`'s collapsible `TokenSearchField` keep-open ownership in
|
|
2266
|
+
WebKit: when `focusout.relatedTarget` is missing during pointer activation of
|
|
2267
|
+
an external `data-token-search-keep-open` surface, the helper now uses the
|
|
2268
|
+
actual pointer target instead of collapsing and removing the target before
|
|
2269
|
+
its click handler runs.
|
|
2270
|
+
- Added a first-class vibrant `pop` semantic color for attractive non-status
|
|
2271
|
+
emphasis, with complete light/dark/increased-contrast token roles and typed
|
|
2272
|
+
StateBanner, ListHeader indicator, and ToolbarControlGroup selected tones.
|
|
2273
|
+
- Fixed canonical `Select` popup animation reversals so an earlier close cannot
|
|
2274
|
+
hide a reopened menu after resizing. Canceled transitions retain the accepted
|
|
2275
|
+
state, and removed controls cannot receive stale completion or deferred focus.
|
|
2276
|
+
- Fixed managed `TokenSearchField` Clear focus before the next input task, so
|
|
2277
|
+
immediate typing stays in the replacement editor instead of triggering page
|
|
2278
|
+
shortcuts; genuine later focus handoffs and selections remain untouched.
|
|
2279
|
+
- Fixed `@kerfjs/ui/tab-scaffold` bottom-tab labels being vertically clipped by
|
|
2280
|
+
flex shrinkage while retaining horizontal ellipsis for long labels.
|
|
2281
|
+
- Made inset selection and hover highlights follow their owning control's pill
|
|
2282
|
+
or rounded shape, with concentric inner radii derived from the full inset.
|
|
2283
|
+
- Fixed animated `ResizableRegion` overlays so remembered desktop dimensions
|
|
2284
|
+
cannot make their content overflow the responsive panel cap on narrow screens.
|
|
2285
|
+
- Added configuration-first application-panel policies across `ResizableRegion`,
|
|
2286
|
+
`Workbench`, and `CollapsiblePanel`: separator visibility, instant-track
|
|
2287
|
+
collapse with optional composited content motion, popup-safe overflow,
|
|
2288
|
+
inline/overlay/hidden responsive presentations, and safe-area restore-control
|
|
2289
|
+
placement. `wireResizableRegions` now suppresses motion during pointer drags
|
|
2290
|
+
and ignores unavailable regions; `wireSidebar` supports hidden compact
|
|
2291
|
+
replacements and exclusive overlays.
|
|
2292
|
+
- Added typed `TabBar` allocation/presentation/action-placement and `AppTab`
|
|
2293
|
+
presentation/size/label-width variants for segmented inspector strips,
|
|
2294
|
+
compact drawer tabs, icon-only accessible tabs, and truncating labels.
|
|
2295
|
+
- Added typed `ToolbarControlGroup` size, density, content anatomy, selected
|
|
2296
|
+
chrome/tone, nested-dropdown, and avatar scrim variants.
|
|
2297
|
+
- Added typed `Select` form, borderless-toolbar, intrinsic-navigation, compact,
|
|
2298
|
+
icon-only-selected, truncation, and composed focus-ring variants.
|
|
2299
|
+
- Added `DialogSurface` and `PopupSurface` composition APIs for standard dialog
|
|
2300
|
+
sizes/presentations, independent body/footer insets, and list-compatible popup
|
|
2301
|
+
menu insets without consumer `::part()` overrides.
|
|
2302
|
+
- **Breaking (`@kerfjs/ui`):** removed `PanelHeader` and its subpath/CSS export.
|
|
2303
|
+
Compose page, panel, and dialog headings directly with `Toolbar`, a direct
|
|
2304
|
+
extra-large `ToolbarText`, and optional `ToolbarControlGroup` icon/action zones;
|
|
2305
|
+
keep supporting copy as app-owned content below the toolbar.
|
|
2306
|
+
- Fixed controlled TokenSearchField Select All + Backspace/Delete collapsing the
|
|
2307
|
+
editor: managed deletion keeps the adopted open signal and restores replacement
|
|
2308
|
+
focus before another keystroke, without a stale animation-frame caret reset.
|
|
2309
|
+
The adoption demo now persists both edited text and remaining tokens.
|
|
2310
|
+
- Fixed `Select` controls using only `ariaLabel` being unnamed to assistive
|
|
2311
|
+
technology. Ordinary and custom selected content retain their geometry while
|
|
2312
|
+
the actual shadow combobox receives its accessible name.
|
|
2313
|
+
- Added first-class `Select` hint text below interactive and loading-placeholder
|
|
2314
|
+
controls while keeping empty-value `placeholderText` semantically distinct.
|
|
2315
|
+
|
|
2316
|
+
- Changed the Web Awesome Dialog theme to use 8px body padding and 16px footer
|
|
2317
|
+
padding, independently of the component's shared `--spacing` value.
|
|
2318
|
+
|
|
2319
|
+
- Fixed `kerf-ui-doctor` so its isolated Kerf ESLint pass preserves applicable
|
|
2320
|
+
consumer core rules and suppression reporting options. Playwright's required
|
|
2321
|
+
`no-empty-pattern` fixture suppression no longer becomes a false unused
|
|
2322
|
+
directive while consumer plugin rules remain outside the doctor boundary.
|
|
2323
|
+
|
|
2324
|
+
- Cataloged `SplitView` and its documented
|
|
2325
|
+
`--kui-split-view-list-width` override so `kerf-ui-doctor --full` accepts the
|
|
2326
|
+
public token in downstream application stylesheets.
|
|
2327
|
+
|
|
2328
|
+
- Added the first-class `List` vertical-layout component with gap, flex, scroll,
|
|
2329
|
+
and multi-edge divider options; `Toolbar` now uses the same typed
|
|
2330
|
+
`dividerSides` contract instead of a boolean divider.
|
|
2331
|
+
|
|
2332
|
+
- Added an optional tone-tinted pill badge beside `StateBanner` titles, including
|
|
2333
|
+
loading skeleton behavior and per-instance badge color overrides.
|
|
2334
|
+
|
|
2335
|
+
- Fixed pending `wireTabBars` and `wireTokenSearchFields` controlled-render
|
|
2336
|
+
callbacks moving focus after their owning wiring had been disposed.
|
|
2337
|
+
|
|
2338
|
+
- Changed the default `ListItem` leading icon visual from 24px to a root-scaled
|
|
2339
|
+
18px while retaining the row's 44px minimum target and first-line alignment.
|
|
2340
|
+
|
|
2341
|
+
- Fixed managed `TokenSearchField` clear losing focus or collapsing when an
|
|
2342
|
+
application replaces its controlled editor; continued typing now works without
|
|
2343
|
+
an application reopen callback.
|
|
2344
|
+
|
|
2345
|
+
- Fixed `@kerfjs/ui` automatic TabBar keyboard activation losing focus when a
|
|
2346
|
+
controlled selection replaces the strip; navigation restores the same logical tab.
|
|
2347
|
+
|
|
2348
|
+
- Updated the published setup runtime to patched `minimatch` 9.0.9 and `yaml`
|
|
2349
|
+
2.9.1 releases, resolving the known regular-expression denial-of-service and
|
|
2350
|
+
deeply nested YAML denial-of-service advisories without narrowing Kerf's
|
|
2351
|
+
supported Node.js range.
|
|
2352
|
+
- Fixed `kerf-ui-doctor --full` so its isolated ESLint stage shares the same
|
|
2353
|
+
generated-directory exclusions as TypeScript, static analysis, and cache
|
|
2354
|
+
hashing; populated `dist`, `coverage`, dependency, cache, evidence, and nested
|
|
2355
|
+
worktree directories no longer produce application diagnostics.
|
|
2356
|
+
- Changed `@kerfjs/ui` component-library design templates to compose their
|
|
2357
|
+
individual variant SVGs through HTML and `domotion capture
|
|
2358
|
+
--flatten-nested-svg`, eliminating the hand-built nested-SVG compositor and
|
|
2359
|
+
making top-level template sheets reliable in Sketch.
|
|
2360
|
+
- Added a typed `shape` option to `SunkenPanel`: `rounded` remains the default,
|
|
2361
|
+
while `square` produces a lowered surface with `border-radius: 0` for flush or
|
|
2362
|
+
edge-to-edge application areas. Both shapes now appear in the UX catalog.
|
|
2363
|
+
- Made the Catalog geometry overlay derive both margin bands and border
|
|
2364
|
+
edges/radii from each live specimen's computed CSS. Public example helpers now
|
|
2365
|
+
mark their generated labels and notes for automatic exclusion, and stylesheet,
|
|
2366
|
+
theme, DOM, and resize changes refresh the overlay without duplicated demo
|
|
2367
|
+
measurements.
|
|
2368
|
+
- Updated the `@kerfjs/ui` SVG design-template generator to `domotion-svg`
|
|
2369
|
+
0.30.1 and enabled `--flatten-nested-svg`, so inline component icons are
|
|
2370
|
+
emitted as Sketch-compatible groups without changing their browser rendering.
|
|
2371
|
+
The offline template gate now rejects variant captures that reintroduce nested
|
|
2372
|
+
`<svg>` elements.
|
|
2373
|
+
- Fixed `kerf-ui-doctor` and `kerf-ui-analyze` recursive discovery so nested
|
|
2374
|
+
`.claude/worktrees` checkouts are excluded from source diagnostics, doctor
|
|
2375
|
+
cache inputs, TypeScript, and ESLint.
|
|
2376
|
+
- Added `npx kerfjs setup` and the `kerfjs/setup` automation API for safe,
|
|
2377
|
+
AI-first initialization and migration of core and UI projects. The command
|
|
2378
|
+
provides bounded dry-run diffs, explicit per-conflict keep/Kerf choices,
|
|
2379
|
+
package-scoped hash-backed upgrades, monorepo selection, transactional
|
|
2380
|
+
rollback, shipped guidance, strict TypeScript/ESLint, and UI catalog/profile
|
|
2381
|
+
and doctor discovery. Empty application component metadata now emits a valid
|
|
2382
|
+
empty v2 catalog. Existing JSONC TypeScript configuration is structurally
|
|
2383
|
+
merged without discarding comments, trailing commas, authored fields, or line
|
|
2384
|
+
endings; malformed roots and compiler-option containers require an explicit
|
|
2385
|
+
keep/Kerf decision. Workspace selection now evaluates ordered globstar,
|
|
2386
|
+
brace, exclusion, and re-inclusion patterns deterministically across npm,
|
|
2387
|
+
Yarn, and pnpm declarations, rejects path/symlink/name ambiguity, and uses
|
|
2388
|
+
manager-correct offline commands with explicit Yarn Classic/Berry detection
|
|
2389
|
+
and network-disabled Berry installs.
|
|
2390
|
+
- Added `@kerfjs/ui/doctor` and the `kerf-ui-doctor` command: a versioned, redacted repair-loop report that merges catalog/profile validation, TypeScript, Kerf UI ESLint, static analysis, and opt-in browser evaluation with changed/full modes, monorepo selection, reasoned suppressions, caching, and deterministic exits.
|
|
2391
|
+
- Added the public Playwright-backed `kerf-ui-evaluate` CLI and `@kerfjs/ui/evaluator` Node API. It resolves application profiles and composition catalogs, exercises wide/intermediate/narrow/200%-zoom, light/dark, and reduced-motion contexts across Chromium, Firefox, and WebKit, and emits versioned repair-oriented `KUI-B###` diagnostics plus focused DOM/style evidence and hashed screenshots. Subjective visual quality remains an explicitly separate unrecorded reviewer rubric.
|
|
2392
|
+
- Added `kerf-ui-analyze`, a profile- and catalog-aware static evaluator for Kerf UI integrations. It resolves directory policy per source, follows project-local CSS import graphs without cross-package class leakage, and evaluates shared stylesheets against every consuming source policy before deduplicating findings. Stable portable text, JSON, or SARIF diagnostics cover private selectors, unknown tokens, competing geometry/scroll owners, repeated insets, forced dimensions, off-scale spacing, and dynamic-class review, with exact scoped profile exceptions, a public report schema, and configurable CI review failure.
|
|
2393
|
+
- Added catalog/profile-aware `recommended-ui` and `strict-ui` flat presets to `eslint-plugin-kerfjs`. Toolbar zone acceptance/cardinality and valid wiring imports come from the shipped catalogs; intrinsic or unknown zone children, root/subpath/namespace wiring, and the non-colliding `KUI-L090` load diagnostic are covered by real packed downstream installs on every supported ESLint major.
|
|
2394
|
+
- **Breaking (`@kerfjs/ui` TypeScript declarations):** strengthened invalid-integration contracts for ListHeader modes, Select naming and literal choice identity, SegmentedControl/TabScaffold literal identity, collapsible TokenSearchField props, protected editor metadata, PanelHeader summary ids, ToolbarText line caps, and token-removal callbacks. Added named public unions for previously anonymous finite variants plus source and packed-tarball positive/negative compilation gates. See `ui/docs/type-contracts.md` for the compatibility review and dynamic-data widening syntax.
|
|
2395
|
+
- `create-kerf-component` now scaffolds explicit `kerf.components.json` AI metadata and a deterministic `kerf-component-catalog` generator/checker. Generated v2 entries carry package identity, purpose, verified named exports, composition and geometry ownership, tokens, accessibility, and source links; publishing rejects missing author decisions, schema-invalid source/output fields, deleted sources, renamed exports, duplicate ids, or output drift, including multi-package workspaces. Syntax-aware TypeScript/TSX export discovery prevents JSX text, nested scopes, comments, and literals from impersonating public exports.
|
|
2396
|
+
- Added a versioned application UI profile for AI tools and static evaluators. Shipped package defaults, schema, TypeScript types, Node discovery/merge/validation APIs, and a workspace example now make catalog locations, preferred components/recipes, theme/density policy, semantic token overrides, responsive/layout conventions, and narrow source-located exceptions explicit. Composition-only generated consumer catalogs load without a fabricated v1 selection artifact, while Kerf retains its required v1 selection catalog. Deterministic package → workspace → parent-to-child directory precedence validates every raw layer before merge, attributes resolved diagnostics through field provenance, and rejects stale catalogs, unknown components/tokens/rules, conflicts, malformed value shapes, and broad exemptions.
|
|
2397
|
+
- Fixed `CatalogExampleStack` accessible labels: the helper now renders a semantic `section`, so a supplied `label` exposes the documented named region to assistive technology while an unlabeled stack remains an ordinary grouping.
|
|
2398
|
+
- Added first-class `Pane` and `SunkenPanel` primitives to `@kerfjs/ui`. `Pane` standardizes semantic header/content/footer columns, explicit logical-edge separators, and one content scroll owner; `SunkenPanel` supplies one lowered surface with an 8px inset and vertical rhythm. The Catalog shell now dogfoods `Pane`, and both components ship focused demos, catalog metadata, documentation, and three-engine browser coverage.
|
|
2399
|
+
- Added the package-qualified component catalog v2 alongside the compatible v1 artifact. Its schema and generated metadata formalize child zones, cardinality, exclusivity, wiring, state, responsive behavior, layout and accessibility boundaries, stable validation diagnostics, provenance, and consumer extension catalogs, so AI tools can join Kerf and application components without guessing composition contracts.
|
|
2400
|
+
- Added an AST-based Catalog demo conformance gate. It checks every first-party demo for public helper usage, package imports, focused specimen structure, geometry-overlay metadata, and reviewed schema-checked exceptions, with adversarial fixtures and authoring guidance that makes the same contract available to downstream AI tools.
|
|
2401
|
+
- Made `ui/docs/catalog.md` the authoritative Catalog demo authoring contract, covering focused versus composition previews, public row/group nesting, exact specimen selection, conditional geometry overlays, skip-marker behavior, metadata ownership, and an explicit overlay legend. A shipped `ai/catalog-authoring.json` discovery artifact now routes AI tools to that contract and exact signatures, with schema, link-integrity, and browser-consumer fixture coverage.
|
|
2402
|
+
- Extended `CatalogExample` and `CatalogExampleStack` with typed, runtime-filtered `rootAttributes` for catalog-authoring `data-*` metadata such as `data-demo` and `data-catalog-geometry-overlay-skip`, while preserving helper-owned structural and alignment markers. The UX catalog now composes its example stacks through these public helpers instead of copying private `kui-catalog-*` markup.
|
|
2403
|
+
- Added `revealCatalogEntry` and opt-in `wireCatalog({ revealSelection })` support to the exported Catalog tool. Sidebar or related-entry selection can now reveal the matching row after the controlled render settles, using a desktop-safe media guard, exact id matching, configurable scroll alignment/behavior, focus-preserving scrolling, and cancellation of stale rapid selections; the Kerf UX demo now uses the public behavior.
|
|
2404
|
+
- Added a reusable consumer component-catalog extension schema and checked app-component example. Downstream packages can now publish the same selection facts and margin/border/padding ownership vocabulary as Kerf, and the README, component contract, Catalog guide, `llms.txt`, and AI skill explain how to combine package-qualified app entries with Kerf's shipped catalog for alignment decisions.
|
|
2405
|
+
- Added an opt-in geometry inspector to the exported `@kerfjs/ui/catalog` tool. `geometryOverlay` plus `wireCatalogGeometryOverlay` now marks transparent component bounds with a dashed outline and positive intrinsic margins with devtools-style bands, excludes example labels/alignment scaffolding, stays synchronized across preview changes, and replaces the Kerf UX demo's private implementation.
|
|
2406
|
+
- Added machine-readable margin, border, and padding ownership to every visual entry in the `@kerfjs/ui` component catalog. The additive schema distinguishes self-, parent-, child-, conditional-, and unowned geometry, and enforces complete metadata plus explanatory notes for conditional cases.
|
|
2407
|
+
- Refreshed the standalone reactivity demo lockfile to Vite 6.4.3, PostCSS 8.5.28, and nanoid 3.3.19, clearing its development-toolchain audit advisories.
|
|
2408
|
+
- Overrode the development toolchain's transitive esbuild dependency to 0.28.2, resolving GHSA-g7r4-m6w7-qqqr while current tsup still constrains its declared range to 0.27.x.
|
|
2409
|
+
- Added repository-wide Prettier formatting for TypeScript, JavaScript, Astro, shell, CSS, HTML, Markdown, YAML, and JSON source and structured-content files. Root and `@kerfjs/ui` lint gates now reject formatting drift, while generated, binary, and parser-incompatible fixtures remain explicitly excluded.
|
|
2410
|
+
- Added reusable sidebar tags to `@kerfjs/ui` Catalog entries and marked the 15 Web Awesome components superseded by preferred Kerf patterns or reserved for exceptional cases as `Discouraged` in the UX catalog. The tag is deterministically projected from the canonical recommendation metadata; Popup remains an available conditional positioning primitive.
|
|
2411
|
+
- Aligned Web Awesome Accordion, Card, Details, Callout, and Include surfaces with Kerf content-item geometry: each complete surface now has an overridable 8px logical inline margin and 8px inner padding, Accordion keeps connected items under one group margin, and Card's header/body/footer share the full inset. Tab Panel intentionally retains the roomier 16px container inset.
|
|
2412
|
+
- Fixed `@kerfjs/ui` Web Awesome Slider geometry: its complete interactive region now receives the shared 8px logical inline outer inset without shifting the already-aligned label.
|
|
2413
|
+
- Styled `@kerfjs/ui` Web Awesome OTP Input like a bordered text field: its label now uses the shared uppercase xs/650 field-label treatment, and both label and hint align at the 9px border-plus-padding inset.
|
|
2414
|
+
- Aligned `@kerfjs/ui` Web Awesome Known Date's Month/Day/Year captions and bordered text-like field hints with their values using the shared 9px border-plus-padding inline inset.
|
|
2415
|
+
- Fixed `@kerfjs/ui` Web Awesome Color Picker geometry: its unbordered trigger now receives the shared 8px inline outer inset, aligning it with Kerf content-item spacing.
|
|
2416
|
+
- Fixed `@kerfjs/ui` Web Awesome Checkbox Group and Radio Group option geometry: each group's unbordered option region now receives the shared 8px inline outer inset, aligning it with Kerf content-item spacing without padding the individual controls.
|
|
2417
|
+
- Aligned the remaining bordered/padded Web Awesome chrome in `@kerfjs/ui/webawesome.css` to explicit Kerf spacing tiers: `--kui-wa-control-inset` (8px) drives tabs, inset tree selection, tags, and dropdown items; `--kui-wa-surface-margin` / `--kui-wa-surface-inset` drive bordered surface geometry; and `--kui-wa-container-inset` (16px) retains roomier Tab Panel content. Buttons already inherit the 8px form-control inset; compact badges, unframed Breadcrumb, and slotted Scroller item chrome deliberately retain their native geometry. The tiers are overridable by scope and pinned by three-engine computed-style coverage plus light/dark wide and narrow visual QA.
|
|
2418
|
+
- Tightened the `@kerfjs/ui` Web Awesome theme's form fields to the Kerf content-item inset — a 1px border with 8px inside it (`--wa-form-control-border-width` / `--wa-form-control-padding-block` / `--wa-form-control-padding-inline` now follow `--kui-layout-item-border-width` / `--kui-layout-item-padding`), replacing Web Awesome's larger default pad, so fields land at the standard ~40px height and 9px value inset. Each field's top label is now inset by that same border + padding (9px) so it aligns with the value inside the field, and is styled exactly like a `ListHeader` label — uppercase, xs, weight 650, quiet foreground (`::part(form-control-label)` across Input/Number Input/Textarea/Select/Checkbox Group/Radio Group/Color Picker/Known Date/Time Input, plus the Slider's `::part(label)`). Inline Checkbox/Switch labels keep their sentence case.
|
|
2419
|
+
- Added overflow controls to `@kerfjs/ui`'s `ToolbarText`: `wrap` (flow onto multiple lines instead of a single line), `ellipsis` (show the trailing … at the truncation, or hard-clip when false), and `maxLines` (cap wrapped text to N lines, ellipsizing past it). The default is unchanged — one line, ellipsized when it does not fit. `maxLines` takes effect only with `wrap`. Driven by `data-wrap` / `data-ellipsis` / `data-max-lines` attributes plus a `--kui-toolbar-text-max-lines` var; no new public classes. The UX catalog gains ellipsis/wrap/capped examples.
|
|
2420
|
+
- Fixed a `@kerfjs/ui` `TokenSearchField` bug where selecting all content and pressing Delete (or Backspace) left a stray newline in the field. A `contenteditable` host inserts a bogus `<br>` when emptied that way in every engine — it renders as a newline and `readTokenSearchField` read it back as a space. `wireTokenSearchFields` now strips that line break after any delete input and, when the field is otherwise empty, restores the canonical empty text span and places the caret in it so typing resumes cleanly. Also clears any leftover chips in the select-all case. Regression-tested in unit (happy-dom) and across all three browser engines.
|
|
2421
|
+
- Hardened that full `TokenSearchField` deletion for platform-specific selection
|
|
2422
|
+
ranges whose endpoints sit inside the first and last text spans instead of at
|
|
2423
|
+
the editor boundary—or whose cloned Linux range omits an atomic chip entirely.
|
|
2424
|
+
Full logical text-and-token selection is recognized from its value, while an
|
|
2425
|
+
explicit Ctrl/Cmd+A intent survives only until the next delete and is
|
|
2426
|
+
consumed by that delete even when the browser omits `beforeinput`, and is
|
|
2427
|
+
retained across a controlled editor replacement before or after
|
|
2428
|
+
`beforeinput`. It is captured before propagation can be stopped and
|
|
2429
|
+
invalidated by selection-moving keys, pointer input, blur, or another edit.
|
|
2430
|
+
The explicit shortcut-to-delete transition is handled deterministically:
|
|
2431
|
+
the helper prevents the unreliable mixed-contenteditable native mutation,
|
|
2432
|
+
canonicalizes the empty editor, and emits the corresponding bubbling input
|
|
2433
|
+
event so controlled application state clears before it can restore a chip.
|
|
2434
|
+
A browser can no longer preserve a controlled chip merely because its range
|
|
2435
|
+
shape or native deletion timing differs.
|
|
2436
|
+
- Added a `horizontalOnly` prop to `@kerfjs/ui`'s `ListInsetText`. When true it keeps the horizontal geometry (8px inline margin, 1px left/right border, 8px left/right padding — so the text edge still lands at the 17px inset) but drops the vertical margin, border, and padding, for tight text layout that still aligns with bordered items. It applies a `kui-list-inset-text--horizontal` modifier class; the default (vertical box space intact) is unchanged. The UX catalog gains a horizontal-only example.
|
|
2437
|
+
- Fixed a WCAG AA color-contrast failure on `@kerfjs/ui`'s selected list rows. The selected `ListItem` and `ListActionRow` used the brand accent (`brand-on-quiet`, `#1e6ef4`) for their text, which resolved to only **3.77:1** over the selected `brand-fill-normal` background (`#d6ecff`) — below the 4.5:1 minimum for normal text (flagged by axe downstream). Both now use the normal neutral foreground over the brand-tinted fill, so selection is carried by the fill and border while the text stays readable in light and dark themes. Computed-ratio browser tests pin both selected rows at ≥4.5:1 in both themes across all three engines.
|
|
2438
|
+
- Fixed the same brand-accent contrast failure on `@kerfjs/ui`'s info `StateBanner` tone and `Select`'s current option, where the blue is a semantic (not a selection cue), so the text stays blue rather than going neutral: a new darker `--kui-color-brand-on-fill` token (`#1a5dcf` light; the compliant `#8acbff` in dark) replaces `brand-on-quiet` for brand text placed directly on a brand fill. The info banner (was 4.15:1) now clears ~5.4:1 and the current Select option (was 3.77:1) ~4.9:1. Computed-ratio browser assertions guard both.
|
|
2439
|
+
- Completed the `@kerfjs/ui` `StateBanner` contrast pass: the `success` (was 4.05:1) and `warning` (was 4.39:1) tones failed WCAG AA the same way via their own `*-on-quiet` tokens over the tinted banner fills. New darker `--kui-color-success-on-fill` (`#00792c`) and `--kui-color-warning-on-fill` (`#8f5e00`) tokens (each keeping its semantic hue, dark values unchanged and already compliant) now back the success/warning banner text, clearing ~5.0:1 and ~5.3:1. Every `StateBanner` tone now clears 4.5:1 in both themes, guarded by an all-tone computed-ratio browser assertion.
|
|
2440
|
+
- Added two structure primitives to `@kerfjs/ui` for aligning bare content inside a `.kui-content` list: `ListInsetControl` (`@kerfjs/ui/list-inset-control` + `.css`) wraps a control that owns its own border and padding but no outer margin (a search input, a `SegmentedControl`) with the standard 8px inline margin plus a stretch flex row and an 8px gap, so it lines up with the bordered items around it without double-insetting; `ListInsetText` (`@kerfjs/ui/list-inset-text` + `.css`) gives a bare string or inline content the content-item geometry (8px inline margin, 1px transparent border, 8px padding) so its text edge lands at the same 17px inset as bordered rows. Both are additive, take an optional `className`, and appear in the UX catalog and the component-selection guidance.
|
|
2441
|
+
- `@kerfjs/ui`'s `wireTokenSearchFields` `onEdit` callback now also receives the originating `InputEvent` (`onEdit({ id, editor, event })`), so a consumer can gate token-commit behavior on `event.inputType` / `event.data` (e.g. commit a chip only on whitespace-terminated input) and drop its own `input` listener entirely — completing the goal `onEdit` was added for. Additive; existing `{ id, editor }` destructuring is unaffected.
|
|
2442
|
+
- Added a CI-only visual-drift gate for the `@kerfjs/ui` SVG design templates (`check:design-templates:drift`): it re-renders every template in a browser and fails if any regenerated SVG differs from the committed one (normalizing run-to-run noise — XML comments and auto-minted ids/font names). It closes the gap the offline `check:design-templates` cannot cover and runs in CI's browser-capable job, not the offline pre-commit `check`.
|
|
2443
|
+
- Added `FloatingToolbar` to `@kerfjs/ui` (`@kerfjs/ui/floating-toolbar` + `.css`): a transparent, forced-dark toolbar that floats over the content of its nearest positioned ancestor — a drawer-restore / floating-controls pattern — without covering dialogs or overlays (it is not top-layer). It exposes `role="toolbar"` with a required `label`, floats to a customizable `position` (`bottom-end` default, plus the other corners/edges), and is inset by `--kui-floating-toolbar-inset` (default 8px past a top toolbar's own inset). The app owns the controls and their visibility. Includes a UX-catalog demo with a show/hide toggle that auto-hides on leaving the demo.
|
|
2444
|
+
- Added a `shape` prop to `@kerfjs/ui`'s `ToolbarControlGroup`: `'pill'` (default, unchanged) or `'rounded'` for a softer rounded-rectangle corner on the group and its items (using the design system's rounded radius). The UX catalog's ToolbarControlGroup section gains a Pill/Rounded toggle that switches every example.
|
|
2445
|
+
- Added a **Design template** link to the UX catalog's detail-footer resources (beside demo source / component source / guidance) for every component that has a committed SVG design template, pointing at its per-component library under `docs/design/templates/`. The link is generated from the design-template manifest during `catalog:sync`, so it appears only where a template exists and stays in step as the template set grows.
|
|
2446
|
+
- Gave the `@kerfjs/ui` `Catalog` detail footer's related-entries popup trigger a visible **"Component"** text label beside its glyph (it was icon-only), so the affordance reads as a labeled control rather than a bare icon. The trigger grows to fit the label instead of the single-group's fixed icon-button width, and the glyph stays beside the label.
|
|
2447
|
+
- Fixed the `@kerfjs/ui` `Catalog` component's `secondarySections` ("ecosystem" group) indentation: the subsection heading sat further left than everything else while its list items sat further right, so the group read as awkwardly stair-stepped. The subsection heading now takes the same 8px content inset the list items and the group's `ListHeader` self-apply, so the group heading, its subsection headings, and their items all share one left edge — matching the primary sidebar.
|
|
2448
|
+
- Extended the `@kerfjs/ui` SVG **design templates** (`ui/docs/design/templates/`) from the initial two components to fourteen — adding `Toolbar`, `ToolbarText`, `ListItem`, `ListHeader`, `ListActionRow`, `ValueTable`, `StateBanner`, `EmptyState`, `Skeleton`, `SegmentedControl`, `TabBar`/`AppTab`, and `TokenSearchField`, each captured (light + dark, system-font text, self-contained inlined libraries) in its common presentation combinations with realistic sample data. Added an offline sync-check gate (`check:design-templates`, part of `npm run check`) that verifies every manifest component/variant has its committed output and flags stray files. `Select` (Web Awesome runtime), the decorative icon primitives, `ResizableRegion`, the whole-screen layouts, and the `Catalog` shell are deliberately not templated (see `ui/docs/design/templates.md`).
|
|
2449
|
+
- Extended `@kerfjs/ui`'s `wireTokenSearchFields` with three opt-in knobs for dropping a real app's hand-rolled token-search plumbing: a **focusout keep-open exception** (`collapsible.keepOpenOn(target)` or a `data-token-search-keep-open` region) so focus moving to a sibling suggestions/date/help surface no longer collapses an empty collapsible field; **opt-in atomic-chip keyboard** (`keyboard`) where, from a collapsed caret with no selection, Backspace/Delete remove the adjacent chip (reported via `onRemoveToken` for the app to apply to its controlled state) and ArrowRight moves the caret past a trailing chip; and an **`onEdit({ id, editor })`** callback fired on every editor `input` so callers can drop their own `input` listener. All are additive and off/unchanged by default (the keyboard block is opt-in; the full `collapsible: false` opt-out and per-behavior opt-outs are unchanged).
|
|
2450
|
+
- Fixed a collapsible `@kerfjs/ui` `TokenSearchField` stretching to its full expanded width **in height** when placed directly in a flex column: the expanded size was carried on the flex `basis`, which a column reads as the cross-axis height (a ~480px-tall field). The field and its enclosing toolbar group now size their inline axis through `width` alone (`flex: 0 1 auto`), so the field stays a single line tall in any container while a toolbar row still shrinks it as before.
|
|
2451
|
+
- Added SVG **design templates** for `@kerfjs/ui` components (`ui/docs/design/templates/`): each component captured from its real rendered HTML/CSS in its common presentation combinations via `domotion-svg`, with a per-component library file that references the individual variant SVGs. A `design-templates:build` script + `ui/docs/design/templates.md` cover regeneration, maintenance, and templating your own app-level components. Initial coverage: PanelHeader and ToolbarControlGroup.
|
|
2452
|
+
- Fixed two `@kerfjs/ui/catalog` presentation bugs: header-action buttons that carry a text label (the built-in theme toggle) now render icon-beside-label instead of the toolbar group's icon-over-label grid, and the detail footer's related-entry selector is a single-bordered popup (a borderless `single` group around a label-less `fitMenu` select) rather than a bordered select nested inside a bordered group.
|
|
2453
|
+
- Dogfooded the UX demo's own shell onto `@kerfjs/ui/catalog` (`Catalog` + `wireCatalog`), which surfaced and fixed three `Catalog` bugs: an active entry inside a `secondarySections` group is now found for the detail header/footer; the brand subtitle's alignment override outranks the toolbar group's default gap (it lost specificity before, dropping the logo→title gap); and the detail footer's resource links stack above the related selector at narrow widths.
|
|
2454
|
+
- Extended `@kerfjs/ui/catalog`: `Catalog` gained a `secondarySections` prop — an optional, quieter "ecosystem" group of sections below the primary sidebar categories, with an optional disclosure toggle (`wireCatalog` gains `onToggleSecondary`) — and the subpath now also exports `CatalogExample` / `CatalogExampleStack`, labeled-example primitives that carry a first-class `align` prop (`'glyph'` = 16px, `'inline-control'` = 8px, `'none'`) to line a specimen's left edge up with its label, publishing the inset as `--kui-catalog-example-align` so a debug overlay can exclude it. This lets a gallery compose its previews from the shipped shell instead of hand-rolled example markup and CSS.
|
|
2455
|
+
- Reworked the `@kerfjs/ui` list-detail dialog recipe so its `PanelHeader` sits at the top of the detail column rather than spanning both columns; the master list and detail pane now each run full height top-to-bottom within the dialog.
|
|
2456
|
+
- **Breaking (`@kerfjs/ui`):** renamed the three menu primitives to their list names — `MenuHeader` → `ListHeader`, `MenuItem` → `ListItem`, `MenuActionRow` → `ListActionRow` — across every surface: the exported components, their subpaths (`@kerfjs/ui/list-header`, `/list-item`, `/list-action-row` and the matching `.css` subpaths), their `kui-menu-*` CSS classes (now `kui-list-*`), their `data-component` values, and the catalog. The sidebar navigation composition demo is likewise renamed from `menu` to `list`. There are no deprecated aliases; update imports, class references, and any `?component=menu` links. The names better reflect that these primitives compose any list or navigation surface, not only menus.
|
|
2457
|
+
- Added a reusable component-catalog shell to `@kerfjs/ui`: an opt-in, subpath-only `Catalog` component (`@kerfjs/ui/catalog`) plus a `wireCatalog` helper (`@kerfjs/ui/wire-catalog`) that render the collapsible category sidebar + titled preview stage + resources/related footer the kerf UI catalog uses, driven by your own `sections`, per-entry preview `content`, and `brand`. Controlled and stateless like the app layouts (the app owns `active`/`collapsed`/`theme`); `wireCatalog` wires selection, the related-entry selector, and the collapse/theme toggles, and can mirror the active id into the URL. See `ui/docs/catalog.md`.
|
|
2458
|
+
- Gave `@kerfjs/ui`'s `PanelHeader` (and `ToolbarText`) an optional `headingLevel` prop: when set, the title exposes `role="heading"` with a matching `aria-level`, so a page or view heading is a real heading landmark for screen-reader navigation. The default is unchanged — a plain span referenced via `aria-labelledby` for dialog titles — so existing usage is backward-compatible. Restores the page-heading semantics lost when `PageHeader` was consolidated into `PanelHeader`.
|
|
2459
|
+
- Added a first-class loading-placeholder mode to `@kerfjs/ui`: a new unanimated `Skeleton` block (`@kerfjs/ui/skeleton`) plus a `placeholder` boolean on every value-bearing component (`Select`, `ListHeader`, `ListItem`, `ListActionRow`, `ValueTableRow`, `PanelHeader`, `SegmentedControl`, `StateBanner`, `AppTab`, `ToolbarText`). In placeholder mode a component renders its real chrome with value slots as subtle skeleton blocks and its own controls disabled (`aria-busy`, dropped `data-action`), keeping sizes and shapes identical to the populated component, so a parent composes a faithful loading inspector/detail view without hand-rebuilding markup. Built on a Kerf-owned skeleton (not `wa-skeleton`) so the pure-Kerf primitives stay Web-Awesome-free. `Select`'s existing empty-hint string prop is renamed `placeholderText` to free `placeholder` for the loading boolean.
|
|
10
2460
|
- Made `@kerfjs/ui`'s `wireTokenSearchFields` manage the collapsible `TokenSearchField`'s transient expand/collapse/focus by default (activate to reveal and focus, Escape or empty blur to collapse), holding that state in a signal exposed on the returned handle so an app can bind it in render, adopt its own via `collapsible.signals`, drive it through `open`/`close`, or opt any behavior out individually — removing the per-app boilerplate that had caused inconsistent transient-UI variation. `onSubmit` is now optional and the helper returns a `TokenSearchFieldsHandle` (a disposer that also exposes `expanded(id)`/`open`/`close`).
|
|
11
2461
|
- Made the UX catalog's theme action follow the operating system's initial light/dark appearance, label itself with the appearance it will switch to, and explicitly override either direction when activated.
|
|
12
2462
|
- Corrected the UX catalog's project-details dialog gutters so its header uses less side inset, its selected title uses the full content gutter, its value table fills the available detail width between the usual margins, and its record actions avoid a doubled left inset.
|
|
@@ -18,7 +2468,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
18
2468
|
- Aligned the UX catalog's StateBanner tone labels with each banner's leading icon by deriving the shared 8px margin, 1px border, and 8px content inset in demo-only specimen chrome.
|
|
19
2469
|
- Let the UX catalog's resizable-panel specimen fill its available preview height and moved its committed-width readout into the shared status footer.
|
|
20
2470
|
- Reworked the UI catalog into collapsible pane chrome with toolbar headers, a full-stage checkerboard preview, compact resource footer, hidden-by-default floating recipe notes, and edge-aligned `PageHeader` actions.
|
|
21
|
-
- Aligned multiline `
|
|
2471
|
+
- Aligned multiline `ListItem` and `ListActionRow` leading icons with the first text line instead of centering them against the full wrapped label.
|
|
22
2472
|
- Fixed packages generated by `create-kerf-component` failing declaration builds under TypeScript 6 when tsup injects its deprecated `baseUrl` option.
|
|
23
2473
|
- Fixed the complete kanban example's mobile layout by stacking its columns and header controls without horizontal overflow while preserving the wider board layout.
|
|
24
2474
|
- Fixed the complete dashboard example's mobile layout so its status header, chart, and table fit the viewport without horizontal overflow.
|
|
@@ -66,28 +2516,28 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
66
2516
|
- Removed the unsolicited command-palette catalog demo and production recipe while retaining the earlier, independent application-local adapter example for missing-concept guidance.
|
|
67
2517
|
- Kept the `ResizableRegion` UX specimen readable by moving committed-width status below the controlled pane at narrow widths, preserving its 200% root-scaled split, and retaining local scroll access to the handle at its maximum size.
|
|
68
2518
|
- Reworked the composer-form recipe into one coherent visible form surface with exactly three transparent 8/1/8 content sections, 24px major rhythm, and a conditional `StateBanner` as its only nested semantic surface.
|
|
69
|
-
- Made `
|
|
70
|
-
- Added first-class `
|
|
71
|
-
- Made `
|
|
2519
|
+
- Made `ListHeader` fill its available inline width, align separate actions at the logical end in both LTR and RTL, and use an overridable 18px visible action glyph without shrinking the 44px target.
|
|
2520
|
+
- Added first-class `ListHeader` count semantics with a required localized `countLabel`, zero-safe neutral pill presentation, accessible heading/disclosure naming, legacy non-count badge exclusivity, and runtime filtering for invalid counts and protected presence flags.
|
|
2521
|
+
- Made `ListHeader` toggle mode supply the production 18px `DisclosureArrow` by default while retaining custom `actionIcon` replacement, removed competing raw SVG sizing/rotation, and made the menu-composition Tools disclosure control real content instead of showing a false Projects chevron.
|
|
72
2522
|
- Repaired the `DisclosureArrow` UX specimen by replacing its ambiguous sorting glyph with a right-facing arrow, putting both examples in independently controlled native buttons with stable names and `aria-expanded`, and demonstrating custom directions through delegated pointer and keyboard activation across narrow and 200%-zoom layouts.
|
|
73
2523
|
- Set `DisclosureArrow` to an 18px root-scaled default, removed the catalog-only 24px enlargement, retained `--kui-disclosure-arrow-size` for scoped consumer overrides, and kept Kerf `Select` on its independent `.5` Web Awesome expand-glyph scale.
|
|
74
2524
|
- Added a site-scoped CI dependency audit that includes the complete static-site build tree and fails on high or critical advisories while keeping low/moderate development-tool findings informational.
|
|
75
2525
|
- Aligned the UX catalog's header-composition dialog with the shared 8px inline layout gutter while preserving its 16px vertical separation.
|
|
76
2526
|
- Added visible `View demo source` and `Read guidance` affordances to every UI catalog detail, plus `View component source` for first-party components, backed by deterministic repository-relative paths for the main renderer, individual recipe files, Web Awesome specimens, and canonical browser-import implementations. Web Awesome entries explicitly label local documentation as Kerf integration guidance; all links use deploy-safe GitHub URLs and a responsive accessible layout.
|
|
77
2527
|
- Added runtime-safe `AppTab.rootAttributes` for domain `data-*` metadata plus decorative `AppTab.closeIcon` and `ResizableRegion.handleIcon` slots, preserving existing tab and resize wiring ownership while blocking case-folded component/action/drag/drop collisions.
|
|
78
|
-
- Added `
|
|
79
|
-
- Added safe typed
|
|
2528
|
+
- Added `ListActionRow`, a full-width navigation row with sibling primary and trailing native-button actions, independent names and disabled states, controlled selection semantics, safe metadata/popover extension slots, and responsive 44px targets. `ListItem.trailing` is now explicitly documented as dormant content.
|
|
2529
|
+
- Added safe typed ListItem/ListHeader extension slots for application `data-*` metadata and native popover trigger relationships while protecting component-owned action, selection, disclosure, accessible-name, disabled, icon, and native-button semantics.
|
|
80
2530
|
- Fixed keyboard deletion of a controlled `TokenSearchField` chip so `wireTokenSearchFields` restores focus and the text-relative caret after the application rerenders the editor.
|
|
81
2531
|
- Aligned `@kerfjs/ui` CSS guidance and AI regression scoring with the catalog's exact public anatomy: documented public-class composition selectors are supported, private tag/id/attribute/unlisted-class descendants remain rejected, and historical measured runs replay under their recorded stricter oracle.
|
|
82
2532
|
- Added typed `ValueTableRow` composition with a first-class optional icon hook. Value-table separators now align 8px from both edges for iconless rows and 40px from the left plus 8px from the right for rows with a 24px leading icon.
|
|
83
2533
|
- Added first-class collapsible `TokenSearchField` support: an empty closed field becomes one iconic search action, controlled activation animates to the complete searchbox, and text or tokens keep it expanded after blur. It works standalone or when composed inside `ToolbarControlGroup`; the UX demo demonstrates that common toolbar composition at wide and narrow sizes.
|
|
84
2534
|
- Restored the public documentation site to its Astro + Starlight implementation while the Kerf UI redesign is reconsidered, and removed the in-progress `@kerfjs/ui` page and promotional links from public navigation.
|
|
85
2535
|
- Fixed `TokenSearchField` first-line alignment so the leading icon, editable text, clear action, and trailing content share the field's vertical center while remaining pinned when text wraps.
|
|
86
|
-
- Replaced sidebar-specific and wrapper-inset UI geometry with one shared pane/content model across sidebars, main areas, inspectors, and dialogs. Unpadded panes now compose optional toolbars, one scrolling content stack, and optional footers; content children own consistent 8px margin, 1px transparent-or-visible border, 8px padding, 12px or 22px radii, and 24px major separation. Toolbar groups retain 44px geometry even with transparent chrome, and `
|
|
2536
|
+
- Replaced sidebar-specific and wrapper-inset UI geometry with one shared pane/content model across sidebars, main areas, inspectors, and dialogs. Unpadded panes now compose optional toolbars, one scrolling content stack, and optional footers; content children own consistent 8px margin, 1px transparent-or-visible border, 8px padding, 12px or 22px radii, and 24px major separation. Toolbar groups retain 44px geometry even with transparent chrome, and `ListHeader` now supports a badge while separating dormant title content from its action.
|
|
87
2537
|
- Added pixel-first `remify(<px>)` authoring for `@kerfjs/ui` styles. The build converts values exactly against a 16px baseline into ordinary `rem`, package CSS exports now deliver compiled `dist/styles/` files, and the UX catalog applies the same transform during Vite development so CSS edits remain hot-reloaded.
|
|
88
2538
|
- Added a side-effect-free `@kerfjs/ui/webawesome` TypeScript declaration subpath for all 70 catalog-supported Web Awesome elements, synchronized against the installed custom-elements manifest and covered by a downstream package-export compile fixture.
|
|
89
2539
|
- Added a deterministic internal `@kerfjs/ui` AI-regression foundation with seven task-shaped prompts, frozen versioned context conditions, AST-aware structural scoring, generated public declaration signatures, equivalent supported import scoring in suite v2, and an opt-in non-executing TypeScript compile-evidence sidecar with exact response/config/package/declaration hashes. Adversarial fixtures catch component substitution, duplicated primitives, and spacing/layout ownership regressions without invoking a live model in CI.
|
|
90
|
-
- Added seven lazy, production-backed `@kerfjs/ui` composition recipes for application shells, sidebars, workspace headers,
|
|
2540
|
+
- Added seven lazy, production-backed `@kerfjs/ui` composition recipes for application shells, sidebars, workspace headers, list-detail dialogs, composer forms, list-state lifecycles, and mixed-control toolbars, with stable catalog routes, canonical AI metadata, drift gates, responsive/keyboard/state coverage, and a copyable stable-root adapter that wires delegated actions, form/dialog events, resize commits, and idempotent disposal outside the catalog.
|
|
91
2541
|
- Added a shipped, schema-described `@kerfjs/ui` machine-readable component catalog with deterministic typed UX projection and drift gates for public exports, package/CSS/registration paths, relationships, Web Awesome manifest coverage, AI guidance, routes, CSS hooks, and documentation links.
|
|
92
2542
|
- Added a canonical `@kerfjs/ui/layout.css` vocabulary for responsive page, pane, section, control, metadata, surface, dialog, and scroll ownership, with semantic variables, compact/narrow behavior, consumer and AI guidance, normalized catalog compositions, and wide/intermediate/narrow/200%-zoom geometry coverage.
|
|
93
2543
|
- Added a need-first `@kerfjs/ui` component-selection matrix and automated drift gate so AI tools choose among reuse, composition, thin application adapters, custom semantics, and overlapping Web Awesome components without inferring contracts from implementation CSS. A typed application-local command-palette example now shows how a missing package concept still uses canonical layout, one inset owner, and related-control grouping while keeping semantics honest and proposing recurring behavior upstream.
|
|
@@ -110,7 +2560,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
110
2560
|
- Made the Web Awesome intersection, mutation, and resize observer UX specimens interactive, with deliberate triggers, visible live-event results, and browser coverage.
|
|
111
2561
|
- Updated the UI package's Vitest toolchain to 4.1.11 and resolved the remaining development-only npm audit advisories without changing its runtime dependency surface.
|
|
112
2562
|
- Added a first-class controlled `SegmentedControl` to `@kerfjs/ui`, with Hot Sheet 2-aligned toolbar, rounded-rectangle, pill, equal-width, small, and disabled presentations; native pressed-button semantics; scoped palette overrides; tree-shakeable component CSS; and a complete UX-catalog route.
|
|
113
|
-
- Aligned `@kerfjs/ui` defaults with Hot Sheet 2, added overridable semantic state palettes, completed ToolbarControlGroup and StateBanner catalog variants, simplified related-component navigation, corrected
|
|
2563
|
+
- Aligned `@kerfjs/ui` defaults with Hot Sheet 2, added overridable semantic state palettes, completed ToolbarControlGroup and StateBanner catalog variants, simplified related-component navigation, corrected ListHeader action alignment, and added a controlled horizontally scrolling TabBar with pointer and keyboard reordering plus proximity-based edge autoscroll.
|
|
114
2564
|
- Updated `@kerfjs/ui` to develop and test against Lucide 1.43.0 and Web Awesome 3.12.0, with matching peer baselines.
|
|
115
2565
|
- Added an opt-in `@kerfjs/ui/webawesome.css` theme for Web Awesome's free components. It carries the Hot Sheet 2-aligned semantic palette, form and panel geometry, focus, tooltip, radius, and shadow choices without registering component JavaScript; the UX catalog now lists all 70 free Web Awesome 3.12 components under a collapsible ecosystem section, gives each a focused themed route and dependency links, and retains the aggregate light, dark, narrow, and scoped-override gallery.
|
|
116
2566
|
- Fixed trapped overlays losing sequential focus in WebKit after the second control. Implicitly focusable descendants now receive `tabindex="0"` inside the trap, while authored tabindex values (including `-1`) remain intact.
|
|
@@ -119,9 +2569,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
119
2569
|
- Added the lockstep `@kerfjs/ui` package: accessible toolbar, menu, tab, header, resize, select, and feedback primitives; semantic CSS tokens and browser component subpaths that automatically include only reachable component styles; CSS-free root/SSR entries and an optional complete stylesheet; opt-in Web Awesome registration; AI-oriented docs; a production-backed UX catalog; bundle/unit/three-engine browser gates; and a least-privilege release workflow.
|
|
120
2570
|
- The virtual-list demo animation opens on the full app again (header, the "N in the DOM" badge, and the list) before the scroll; the list now scrolls inside its own box while the header stays put (previously the whole frame was a full-bleed list strip), holds at row 0 before gliding instead of starting a few rows down, and the loop stays in phase on every pass. Captured with domotion-svg 0.28.2.
|
|
121
2571
|
|
|
122
|
-
|
|
123
|
-
|
|
2572
|
+
- @kerfjs/ui panel toolbars now place groups in leading, center, and trailing zones; relocateOnCollapse keeps chosen groups available when a panel closes.
|
|
124
2573
|
|
|
2574
|
+
## [4.4.1] - 2026-08-26
|
|
125
2575
|
|
|
126
2576
|
- Overhauled the README landing page: new one-line tagline, npm/size/license/TypeScript-types badges, a hoisted "Quick start" (install + `tsconfig`) right under the hook, and a jump nav (Quick start · Why kerf · Quick tour · Docs). The counter example now shows `delegate()` wiring the click handler.
|
|
127
2577
|
- Reworked the homepage hero to lead with the value proposition ("Reactive UI that touches only the bytes that changed"), with "Introducing Kerf" demoted to an eyebrow, a right-sized logo, tighter vertical spacing, and "Get started" as the single filled primary action ("View examples" now a secondary/outline button).
|
|
@@ -130,7 +2580,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
130
2580
|
- Rewrote the site's docs pages as hand-authored consumer content (cleaner headings, no internal section numbers) rather than verbatim copies of the internal design docs.
|
|
131
2581
|
- Renamed the migration guides' "Side-by-side code" heading to "Section by section" (the sections stack code blocks rather than showing true columns), across all framework pages.
|
|
132
2582
|
|
|
133
|
-
|
|
134
2583
|
- The getting-started and Markdown-editor demo animations now open on a non-blank frame — real code and a rendered heading are visible immediately instead of an empty pane.
|
|
135
2584
|
- Added a horizontal-scroll shadow affordance to wide tables so off-screen columns are discoverable on narrow viewports.
|
|
136
2585
|
- Shortened the longest demo alt text on the router and virtual-list pages for more concise screen-reader output.
|
|
@@ -138,29 +2587,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
138
2587
|
|
|
139
2588
|
## [4.4.0] - 2026-08-23
|
|
140
2589
|
|
|
141
|
-
|
|
142
|
-
|
|
143
2590
|
- Reworked the router example app to run inside a fake browser window — traffic-light chrome, working Back/Forward buttons wired to `router.back()`/`forward()` via one delegated listener, and a live address bar bound to `router.route` that updates as you navigate — making the URL-driven, no-reload story clearer.
|
|
144
2591
|
|
|
145
2592
|
- **New `kerfjs/router` subpath — a client-side router (the "postcard router").** `createRouter({ routes, mode?, base?, interceptLinks? })` returns a handle over three things kerf already has: a reactive `route` signal (`{ path, params, query, hash }`), `delegate()`-based `<a href>` link interception, and a keyed **outlet** — `router.outlet()` renders the matched route in a `data-key`ed wrapper, so kerf's keyed morph **replaces the page wholesale on a route change** (fresh DOM) and **reconciles in place on a same-route param change** (preserving scroll / focus). Route patterns are static, `:param`, a trailing `*rest` wildcard, and `*` catch-all; the handle also gives `navigate(path, { replace?, state? })`, `back()`/`forward()`, `match(pattern)` / `activeClass(pattern, className)` reactive active-link helpers, hash **or** history mode, an optional base path, and `dispose()`. Link interception is automatic (same-origin, left-click, no modifier/`target`/`download`, opt out per-link with `data-router-ignore` / `rel="external"` or globally with `interceptLinks: false`). **Deliberately scoped** — no nested layouts, data loaders, lazy routes, guards, or SSR matching; compose those with kerf primitives (`resource` for loading, an `effect` on `route` for guards). The kerf **core stays router-free** — this is opt-in and tree-shakeable, adding nothing to the main barrel until imported, and docs/1's "Not a router" is about the runtime. See [`docs/20-router.md`](docs/20-router.md).
|
|
146
2593
|
|
|
147
2594
|
## [4.3.0] - 2026-08-22
|
|
148
2595
|
|
|
149
|
-
|
|
150
|
-
|
|
151
2596
|
- KF-529: refresh README for the 4.3 cycle (prep-major-release) (`909c82a`)
|
|
152
2597
|
- KF-530: extract promise-dialog helpers into overlay-dialogs.ts (`5d4ac38`)
|
|
153
2598
|
- KF-528: sync llms.txt with docs/19 + 4.3 features (`1d9c004`)
|
|
154
2599
|
|
|
155
2600
|
- **`kerfjs/overlay` gains opt-in native top-layer backing (`native: true`).** Every overlay surface (`overlay`, `confirm`, `prompt`, `form`, `choice`, `popover`, `tooltip`) now takes `native?: boolean` (default `false`). When `true` and the engine supports it, a **modal** surface (`trap: true`) is hosted in a `<dialog>` opened with `.showModal()` — real document inerting (pointer + focus + AT) and guaranteed stacking above any `z-index` — and a **non-modal** surface (`trap: false`) uses the **Popover API** (`[popover]` + `showPopover()`). Feature-detected (`HTMLDialogElement.prototype.showModal`, `HTMLElement.prototype.showPopover`), falling back to today's plain `<div>` where unsupported, so `native: true` is always safe to pass. The `render` slot + promise API are unchanged — kerf just hosts your markup in a `<dialog>` / `[popover]`. **Opt-in on purpose:** the native elements carry UA default styles (a `::backdrop`, centering, border, padding) that kerf does **not** reset (a reset would violate the zero-CSS contract) — style the element and its `::backdrop` via `className` (`.kerf-overlay::backdrop { … }`, the stable contract); and `container` becomes a visual no-op in native mode (the top layer ignores DOM position). See [`docs/19-native-overlay-backing.md`](docs/19-native-overlay-backing.md).
|
|
156
|
-
- **`bindList` virtualization gains a `content-visibility` mode.** `virtualize: { rowHeight, mode: 'content-visibility' }` is a second virtualization strategy alongside the default `mode: 'window'` (today's JS windowing). It keeps **every** row in the DOM and sets `content-visibility: auto` + `contain-intrinsic-size: 0 <rowHeight>px` on each row, so a supporting engine (Chromium, Safari 18) skips the
|
|
2601
|
+
- **`bindList` virtualization gains a `content-visibility` mode.** `virtualize: { rowHeight, mode: 'content-visibility' }` is a second virtualization strategy alongside the default `mode: 'window'` (today's JS windowing). It keeps **every** row in the DOM and sets `content-visibility: auto` + `contain-intrinsic-size: 0 <rowHeight>px` on each row, so a supporting engine (Chromium, Safari 18) skips the _layout/paint_ of off-screen rows while **all rows stay findable** — find-in-page (Cmd/Ctrl+F), the accessibility tree, and anchor links / `scrollIntoView` all work on any row (the exact guarantee `mode: 'window'` can't give, since it removes off-window rows from the DOM). The `mode` choice is the app's and it's about list size: pick `'content-visibility'` for medium lists where findability beats the node ceiling, keep `'window'` for very large (100k-row) lists. In this mode `rowHeight` is only the `contain-intrinsic-size` placeholder (no windowing math), `setHeight` / `observeRowHeights` are no-ops (the browser owns measurement), `minRows` is ignored (all rows already render), and no scroll listener / `ResizeObserver` is installed — while `handle.container` / `containerClass` / `containerId` still work. There is deliberately **no feature detection**: on an engine without `content-visibility` the CSS is inert, so all rows still render (correct, still findable) — only the off-screen-skip optimization is absent. See [`docs/17-list-virtualization.md`](docs/17-list-virtualization.md) §17.11.
|
|
157
2602
|
- **Docs: `bindList` virtualization findability/a11y tradeoff is now a first-class caveat.** Off-window rows are removed from the DOM (not just hidden), so with `virtualize` set, find-in-page (Cmd/Ctrl+F), screen readers / the accessibility tree, and anchor links / `scrollIntoView` reach only the visible window. New `docs/17-list-virtualization.md` §17.10 spells out the consequences and the guidance (don't virtualize, or use `minRows` above the list length, when full findability matters more than the DOM node ceiling), and the `bindList` JSDoc + `docs/8-api-reference.md` §8.11 carry the same note. Behavior unchanged — documentation only.
|
|
158
2603
|
- **State-preserving row moves via `moveBefore()` (transparent optimization).** When a keyed list reorders — `each()` (snapshot and granular paths), `bindList`, and `morph()`'s keyed / positional / list-marker moves — kerf now relocates an already-connected row with `Node.prototype.moveBefore()` where the engine supports it (Chromium 133+, spreading to other engines), falling back to `insertBefore()` everywhere else. `moveBefore()` is an atomic move: the node is never disconnected, so a moved row keeps its focus, text selection, `<iframe>` document state, playing media, running CSS transitions/animations, and open `popover`/`dialog` state across the reorder — richer state than the existing focus snapshot in the reconciler could ever restore, and it needs no snapshot at all where it runs. No API change and no behavior change on engines without `moveBefore()`; the focus-preservation snapshot stays in place for them. Fresh (not-yet-connected) rows still use `insertBefore()` — only genuine moves of connected rows take the new path. See [`docs/18-state-preserving-moves.md`](docs/18-state-preserving-moves.md).
|
|
159
2604
|
|
|
160
2605
|
## [4.2.0] - 2026-08-20
|
|
161
2606
|
|
|
162
|
-
|
|
163
|
-
|
|
164
2607
|
- Added a **Virtual list** example app — a 10,000-row virtualized list showcasing the companion subpaths together: `kerfjs/list` viewport virtualization (only a screenful in the DOM), `kerfjs/timing` debounced search, and `kerfjs/overlay` confirm-to-delete with a toast. Includes a live "in the DOM" counter that stays flat as you scroll all 10,000 rows.
|
|
165
2608
|
- Expanded the README with a companion-subpaths spotlight covering `list`, `overlay`, `async`, `scope`, `timing`, `remount`, `attach`, and `actions`, with `bindList` fixed and measured-height virtualization examples.
|
|
166
2609
|
- Corrected the complete-apps index to accurately describe the eight standalone showcase apps and note that the cart and counter-store apps live in the migration guides.
|
|
@@ -174,86 +2617,70 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
174
2617
|
- **New `kerfjs/remount` subpath** — `remountOn(parent, key, render)`, the opposite of kerf's morph-by-default: **replace** a subtree wholesale when `key` changes instead of morphing it. Names the hand-rolled `data-key={`gen-${n}`}` + `data-morph-skip` counter trick, for library-owned subtrees (a highlighted diff, a chart, an editor) that must tear down and re-initialize on fresh DOM. `key` is a signal or a thunk `() => K`; an unchanged key (including a thunk whose inputs moved but whose value stayed equal) leaves the subtree alone, so per-row reactivity inside `render` still updates in place. An optional `onMount(root)` callback runs after each (re)mount with the live subtree — the place to bind an imperative widget (`kerfjs/attach`) to the fresh DOM; returning `attach`'s disposer from it makes teardown synchronous. `remountOn` owns `parent`'s children and returns a disposer. Optional and tree-shakeable.
|
|
175
2618
|
- **New `kerfjs/timing` subpath** — the `let timer; clearTimeout(timer); timer = setTimeout(…)` pattern every app hand-rolls, blessed with disposer-shaped ergonomics. `debounce(fn, ms)` is trailing-edge (runs once `ms` after calls stop, latest args); `throttle(fn, ms)` is leading-plus-trailing (fires immediately, then at most once per `ms`, collapsing a burst to one trailing call). Both return a callable with `cancel()` / `flush()`. `debouncedSignal(source, ms)` is a read-only signal that trails `source` by `ms` so it composes inside the reactive graph (`computed`/`effect`/`mount`) instead of beside it. `debounce`/`throttle` are dependency-free; `debouncedSignal` pulls in signals only (no render core). Optional and tree-shakeable; tiny.
|
|
176
2619
|
- **New `kerfjs/scope` subpath** — tie disposers to a DOM element's lifetime, so append-heavy UIs stop leaking detached-but-subscribed effects/listeners. `disposeScope(el)` returns a WeakMap-keyed, accumulating scope whose `add(disposer)` (plus convenience `mount` / `effect` / `delegate` wrappers that register their own disposer) collects teardown; `dispose()` runs it all best-effort and idempotently. `disposeSubtree(root)` sweeps a subtree before removal; `observeRemovals(root)` installs one `MutationObserver` that auto-disposes on removal. No module-level mutable state. Optional and tree-shakeable.
|
|
177
|
-
- **New `kerfjs/overlay` subpath** — the blessed modal/overlay + dismiss manager that every real kerf app hand-rolls. `overlay(content, options?)` appends a wrapper, `mount()`s content inside it (owning the disposal), wires dismissals (Escape / backdrop / outside-click, with `outsideIgnore`), a focus trap (`role="dialog"` / `aria-modal`, Tab wrap-around, restore-focus-on-close), and returns `{ el, close(result?), result }`. `confirm(message, options?)` is a promise-based `window.confirm` replacement, and `prompt(message, options?)` → `Promise<string | null>` its `window.prompt` counterpart (both globals are no-ops in Tauri webviews); `form(fields, options?)` → `Promise<Record<string, string> | null>` collects a two-or-three-field dialog. `choice<R>(message, actions, options?)` → `Promise<R | null>` is the **N-way** sibling of `confirm` — one button per action resolves that action's `value` (or `null` on dismissal), and `options.defaultValue` makes **Enter** (anywhere in the dialog) resolve a default action (the "global Enter-to-confirm" model) without holding the overlay handle. `prompt`/`form` submit on Enter and take an inline `validate`; all auto-escape their content. `confirm` / `prompt` / `form` also accept a **`render` slot option** for design-system teams — return your own markup and spread the provided `ok`/`cancel` (+ `input`/`error`) wiring onto it; kerf keeps owning the promise, `validate`, Enter-submit, dismiss, focus-trap, and focus-restore, so you adopt the batteries-included dialogs without a CSS rewrite. `popover(anchor, content, options?)` → `OverlayHandle` is a non-modal **anchored** overlay: it positions the content relative to `anchor` (below by default, flipping above on viewport overflow, clamped horizontally), defaults to dismiss-on-outside with the anchor exempt, and repositions on scroll / resize. `popover`'s placement core is also exported standalone: **`positionAnchored(el, anchor, options?)`** (one-shot) and **`autoReposition(el, anchor, options?)`** (keeps an element positioned on scroll/resize, returns a disposer) position
|
|
2620
|
+
- **New `kerfjs/overlay` subpath** — the blessed modal/overlay + dismiss manager that every real kerf app hand-rolls. `overlay(content, options?)` appends a wrapper, `mount()`s content inside it (owning the disposal), wires dismissals (Escape / backdrop / outside-click, with `outsideIgnore`), a focus trap (`role="dialog"` / `aria-modal`, Tab wrap-around, restore-focus-on-close), and returns `{ el, close(result?), result }`. `confirm(message, options?)` is a promise-based `window.confirm` replacement, and `prompt(message, options?)` → `Promise<string | null>` its `window.prompt` counterpart (both globals are no-ops in Tauri webviews); `form(fields, options?)` → `Promise<Record<string, string> | null>` collects a two-or-three-field dialog. `choice<R>(message, actions, options?)` → `Promise<R | null>` is the **N-way** sibling of `confirm` — one button per action resolves that action's `value` (or `null` on dismissal), and `options.defaultValue` makes **Enter** (anywhere in the dialog) resolve a default action (the "global Enter-to-confirm" model) without holding the overlay handle. `prompt`/`form` submit on Enter and take an inline `validate`; all auto-escape their content. `confirm` / `prompt` / `form` also accept a **`render` slot option** for design-system teams — return your own markup and spread the provided `ok`/`cancel` (+ `input`/`error`) wiring onto it; kerf keeps owning the promise, `validate`, Enter-submit, dismiss, focus-trap, and focus-restore, so you adopt the batteries-included dialogs without a CSS rewrite. `popover(anchor, content, options?)` → `OverlayHandle` is a non-modal **anchored** overlay: it positions the content relative to `anchor` (below by default, flipping above on viewport overflow, clamped horizontally), defaults to dismiss-on-outside with the anchor exempt, and repositions on scroll / resize. `popover`'s placement core is also exported standalone: **`positionAnchored(el, anchor, options?)`** (one-shot) and **`autoReposition(el, anchor, options?)`** (keeps an element positioned on scroll/resize, returns a disposer) position _your own_ element with no overlay lifecycle. **`tooltip(anchor, content, options?)`** is a hover/focus-triggered, non-modal, auto-hiding tooltip built on them. `toast(content, options?)` now returns a **`ToastHandle` (`{ el, dismiss }`)** instead of a bare dismiss function, so callers can inspect the node, wire an action button, or run entrance/exit transitions; new options: `mode: 'replace'` (collapse a rapid sequence to the latest) with `collapse: 'fade'` (default — run the prior toast's exit transition, good for a stacking region) or `'instant'` (remove it synchronously, what a single centered slot wants so messages never cross-fade in place), `variant` (`'info'`/`'success'`/`'warning'` → a `${className}--${variant}` accent class), `enterClass` (added on the next animation frame for a CSS entrance) and `exitClass` + `exitDuration` (CSS owns the exit — on dismiss the `enterClass` is **removed** so `exitClass` needn't out-specify it, and a symmetric single-class fade works with just `enterClass` + `exitDuration`; the node is removed after the delay). `dismiss({ instant: true })` removes the toast **synchronously** (skipping the exit transition), and `mode: 'replace'` `collapse: 'instant'` also force-removes a toast that is already mid-fade — so an action button that dismisses itself and shows a replacement in a single centered slot doesn't cross-fade the two. **Breaking (beta):** `toast()`'s return type changed from `() => void` to `{ el, dismiss }` — call `toast(...).dismiss()` or destructure `{ dismiss }`. Structural only — kerf ships no CSS. Optional and tree-shakeable; shares the core with the main barrel via code-splitting.
|
|
178
2621
|
- **New `kerfjs/actions` subpath** — the blessed delegated action-table helper. `action(value)` returns a `data-action` `AttrSpec` (a thin specialization of `attr()`); `delegateActions(root, eventType, table, options?)` wires a whole table of `data-action` handlers with one delegated listener (built on `delegate()`) and returns a disposer. Formalizes the most-reinvented idiom in real kerf apps — one `attr('data-action', …)` table as the single source of truth for both the JSX attribute and the delegate dispatch. Optional and tree-shakeable; adds nothing to the main barrel.
|
|
179
2622
|
|
|
180
2623
|
## [4.1.1] - 2026-08-14
|
|
181
2624
|
|
|
182
|
-
|
|
183
|
-
|
|
184
2625
|
- Added a CDN / importmap quickstart (`docs/6-jsx-runtime.md` §6.11.1) covering three no-install ways to load kerf from an ESM CDN: a direct `esm.sh` import, and jsDelivr / unpkg behind an importmap that also maps `@preact/signals-core`. Explains why a raw `dist/*.js` path fails (its unrewritten bare `@preact/signals-core` import won't resolve in the browser) and recommends pinning to a major version.
|
|
185
2626
|
- Updated the README no-build example to use version-pinned CDN URLs (`kerfjs@4`) and noted that jsDelivr / unpkg need an importmap while esm.sh works with a direct import.
|
|
186
2627
|
|
|
187
2628
|
## [4.1.0] - 2026-07-31
|
|
188
2629
|
|
|
189
|
-
|
|
190
|
-
|
|
191
2630
|
- ESLint 10 is now supported: `eslint-plugin-kerfjs` declares `peerDependencies.eslint` as `^9.0.0 || ^10.0.0`, and every named major is exercised by the rule suite in CI.
|
|
192
2631
|
- The plugin now runs its rule suite against each supported ESLint major via `npm run test:eslint-matrix`, which also fails if the declared peer range, the tested set, and the CI matrix disagree — or if the range is left open-ended.
|
|
193
2632
|
|
|
194
|
-
|
|
195
2633
|
- **ESLint 8 is no longer supported by `eslint-plugin-kerfjs`.** The package is ESM-only and ESLint 8 resolves `.eslintrc` plugins with `require()`, so `extends: ["plugin:kerfjs/…"]` could never load it.
|
|
196
2634
|
- **Legacy `.eslintrc` configuration is documented as unsupported.** Use flat config (`eslint.config.js`); the `legacy-recommended` export remains in the package but is unreachable through any config system and should be treated as deprecated.
|
|
197
2635
|
|
|
198
|
-
|
|
199
2636
|
- Generated Hot Sheet skill and rule files no longer hardcode a machine's local API port or shared secret. The curl fallbacks read `$HOTSHEET_PORT` / `$HOTSHEET_SECRET` from `.hotsheet/settings.local.json` and `.hotsheet/secret.json` instead, with `.hotsheet/settings.json` as the fallback for older projects.
|
|
200
2637
|
- A new `npm run check:audit` gate runs `npm audit --omit=dev --audit-level=high` against the published dependency tree and is wired into the pre-push `check:full` gate.
|
|
201
2638
|
|
|
202
|
-
|
|
203
2639
|
- Test tooling moved to vitest 4 and ESLint 10; coverage thresholds were recalibrated to 98.5% branches / 99.5% statements (lines and functions stay at 100%) after vitest 4's sharper AST-based coverage mapping resolved seventeen previously-miscredited defensive branches.
|
|
204
2640
|
- Removed the `hs-m` marketing-ticket skill and Cursor rule.
|
|
205
2641
|
|
|
206
2642
|
## [4.0.0] - 2026-07-28
|
|
207
2643
|
|
|
208
|
-
|
|
209
|
-
|
|
210
2644
|
- `draggable`, `spellCheck`, and `contentEditable` no longer accept booleans — they are enumerated HTML attributes, so write the keyword string (`draggable="true"`, `spellCheck="false"`). The boolean forms rendered markup that meant the opposite of what was written; real boolean attributes like `hidden`/`checked`/`disabled` are unchanged.
|
|
211
2645
|
- `<select value>` / `<textarea value>` (and their `defaultValue` forms) no longer typecheck — neither element has a `value` content attribute, so kerf was emitting markup no browser reads. Use `<option selected>` and `<textarea>{draft}</textarea>`.
|
|
212
|
-
- Lowercase `autofocus` no longer accepts `"true"` / `"false"` — it is a real boolean attribute, so `autofocus="false"` turned autofocus
|
|
213
|
-
|
|
2646
|
+
- Lowercase `autofocus` no longer accepts `"true"` / `"false"` — it is a real boolean attribute, so `autofocus="false"` turned autofocus _on_. Use `autofocus={false}` or omit it.
|
|
214
2647
|
|
|
215
2648
|
- `href="javascript:void(0)"` and its five sibling spellings are no longer dropped by the URL screen. Dropping the `href` unmade the anchor — it lost `:link` styling, keyboard focus, and its pointer cursor. Matching is against the whole normalized value, so nothing can ride along after an inert body.
|
|
216
2649
|
- `defaultSelected` rendered as `defaultselected`, an attribute no browser reads, so the option it named was never pre-selected. It now correctly emits `selected`.
|
|
217
2650
|
|
|
218
|
-
|
|
219
2651
|
- Typed JSX gained a wide set of modern attributes: globals `inert`, `popover`, `nonce`, `part`/`exportparts`, `enterKeyHint`, `translate`, `autocorrect`, and the full microdata family; per-element `<button popoverTarget/popoverTargetAction/command>`, `<input popoverTarget/popoverTargetAction>`, `<form rel>`, `<source width/height>`, and `writingsuggestions`.
|
|
220
2652
|
- `<button command>` is now typed to the spec keywords (`show-modal`, `close`, `request-close`, `toggle-popover`, `show-popover`, `hide-popover`) plus any `--custom` command, catching a custom command written without its required `--` prefix.
|
|
221
2653
|
- `<a download>` and `<area download>` accept the bare boolean form as well as a string filename, so `<a href="/report.pdf" download>` compiles.
|
|
222
2654
|
|
|
223
|
-
|
|
224
2655
|
- The advertised bundle size is corrected everywhere: ~12 KB min+gzip for a realistic import, ~13 KB with `arraySignal` (previously stated as ~11/~12 KB, and ~6.1 KB in the Cursor rules). Every migration page's delta row was recomputed against the new figure.
|
|
225
2656
|
- The JSX runtime doc gained a section on enumerated vs. boolean attributes, and the API reference now records where the JSX types come from (WHATWG HTML Living Standard + SVG 2, not another framework's property table).
|
|
226
2657
|
- The dev-warning sections in the dev-warnings doc were renumbered by family so the `11.2.N` headings run in document order; cross-references elsewhere in the docs were updated to match.
|
|
227
2658
|
|
|
228
|
-
|
|
229
|
-
- The bundle-size check now gates the *prose* as well as the build: every place the docs advertise a size is matched against the measured figure, and a reworded claim that stops matching fails rather than going silently unchecked.
|
|
2659
|
+
- The bundle-size check now gates the _prose_ as well as the build: every place the docs advertise a size is matched against the measured figure, and a reworded claim that stops matching fails rather than going silently unchecked.
|
|
230
2660
|
- New repo checks wired into `npm run check`: `check:docs:dev-warns` (the dev-warning doc and `ENV_NAME` must name the same set, with monotonic section numbers), `check:design-rule-5` (every top-level `let` in `src/` must be accounted for by the documented rule), and `check:skills` (a skill file restating a threshold its owner disagrees with fails).
|
|
231
2661
|
|
|
232
2662
|
## [3.0.0] - 2026-07-27
|
|
233
2663
|
|
|
234
|
-
|
|
235
|
-
|
|
236
2664
|
- **kerf no longer infers development mode — add one line to your entry to keep the dev diagnostics.**
|
|
237
2665
|
|
|
238
2666
|
```js
|
|
239
|
-
if (import.meta.env.DEV) await import(
|
|
240
|
-
if (process.env.NODE_ENV !==
|
|
2667
|
+
if (import.meta.env.DEV) await import("kerfjs/dev"); // Vite
|
|
2668
|
+
if (process.env.NODE_ENV !== "production") await import("kerfjs/dev"); // webpack / Node
|
|
241
2669
|
```
|
|
242
2670
|
|
|
243
2671
|
Without it you get production shape: no dev warnings, no read-only `defineStore` `get()`
|
|
244
2672
|
snapshot, and a screened dangerous URL warns-and-drops instead of throwing. Nothing else
|
|
245
2673
|
changes, and if you never used the dev warnings you get a smaller bundle for free.
|
|
246
2674
|
|
|
247
|
-
**Why it changed.** kerf inferred its own dev/prod mode by reading `globalThis.process?.env?.NODE_ENV`. Bundlers substitute the
|
|
2675
|
+
**Why it changed.** kerf inferred its own dev/prod mode by reading `globalThis.process?.env?.NODE_ENV`. Bundlers substitute the _bare_ `process.env.NODE_ENV` token and never create a `globalThis.process` object for browser targets, so that read was `undefined`, `undefined !== 'production'` was `true`, and every production browser build silently took the development path. Consequences that were shipping: every `defineStore` `get()` returned a deep read-only `Proxy` (an allocation on every store read), a screened `javascript:`/`data:` URL **threw** instead of the documented warn-and-drop, and the always-on list-key warnings printed to production consoles. Server/Node builds, where `process` exists, were unaffected.
|
|
248
2676
|
|
|
249
2677
|
Removing the inference also shrinks production bundles by **~4.7 KB min+gzip (27%)** — a realistic import (`signal`/`computed`/`effect`/`batch`/`mount`/`each`/`delegate`) goes from 16.91 KB to **12.24 KB**. Previously the dev-warning modules were imported unconditionally by `mount()`/`each()` and gated at runtime, so they shipped to production regardless of build mode and no amount of tree-shaking could reclaim them. With the dev entry absent they are unreachable, and the `import()` statement itself is eliminated — the chunk is never emitted, let alone fetched.
|
|
250
2678
|
|
|
251
2679
|
`globalThis.KERF_DEV` is no longer consulted — not importing the dev entry is now the (compile-time) way to opt out. One ordering note: `signal()` picks its constructor at creation time, so put the import first if you rely on the untracked-signal warning.
|
|
252
2680
|
|
|
253
|
-
- The `KERF_DEV_WARN_*` diagnostics no longer consult `NODE_ENV` or `globalThis.KERF_DEV` at all. Whether they run is decided in exactly one place: whether you imported `kerfjs/dev`. The previous release stopped kerf's core from inferring dev mode but left a second, inherited gate inside each warner, so a Node/SSR consumer who
|
|
2681
|
+
- The `KERF_DEV_WARN_*` diagnostics no longer consult `NODE_ENV` or `globalThis.KERF_DEV` at all. Whether they run is decided in exactly one place: whether you imported `kerfjs/dev`. The previous release stopped kerf's core from inferring dev mode but left a second, inherited gate inside each warner, so a Node/SSR consumer who _deliberately_ installed the diagnostics under `NODE_ENV=production` got silence — and `globalThis.KERF_DEV = false` still silenced warnings the consumer had explicitly opted into. Both are gone; each warning is now gated only by its own env var. If you were using `globalThis.KERF_DEV` to turn diagnostics off, remove the dev import instead (which is also what sheds the ~4.7 KB from your bundle).
|
|
254
2682
|
|
|
255
|
-
|
|
256
|
-
- **New:** `each()` accepts an options object — `each(items, render, { cacheKey, key })` — and `key` gives a list a **stable identity**. Without one a list is identified by its position among the `each()` calls in a render, so adding or removing a conditional list above it made kerf rebuild it from scratch: rows lost their DOM nodes, and with them focus, scroll position and in-progress IME composition. Keying a list removes that dependency; because a keyed list doesn't occupy a positional slot, keying just the *conditional* list usually stabilizes its siblings too. The existing three-argument `each(items, render, cacheKey)` form is unchanged. In development kerf now warns once per list when it detects such a shift and names the fix.
|
|
2683
|
+
- **New:** `each()` accepts an options object — `each(items, render, { cacheKey, key })` — and `key` gives a list a **stable identity**. Without one a list is identified by its position among the `each()` calls in a render, so adding or removing a conditional list above it made kerf rebuild it from scratch: rows lost their DOM nodes, and with them focus, scroll position and in-progress IME composition. Keying a list removes that dependency; because a keyed list doesn't occupy a positional slot, keying just the _conditional_ list usually stabilizes its siblings too. The existing three-argument `each(items, render, cacheKey)` form is unchanged. In development kerf now warns once per list when it detects such a shift and names the fix.
|
|
257
2684
|
|
|
258
2685
|
- **`kerfjs/dev` now exports `enableWarnings()`** — and it fixes a defect: until now, none of the
|
|
259
2686
|
`KERF_DEV_WARN_*` diagnostics could be switched on in a browser at all. Every one of them read `globalThis.process.env`, which does not exist in a browser realm — and a bundler `define` cannot reach it either, because the read goes through `globalThis.process` into a local binding rather than the substitutable `process.env.X` token. So in a Vite/webpack dev server, the environment where these warnings are most wanted, the entire opt-in family was permanently and silently off. Only Node/SSR (and kerf's own vitest suite, which is why nothing caught it) could turn any of them on.
|
|
@@ -262,8 +2689,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
262
2689
|
|
|
263
2690
|
```js
|
|
264
2691
|
if (import.meta.env.DEV) {
|
|
265
|
-
const dev = await import(
|
|
266
|
-
dev.enableWarnings({
|
|
2692
|
+
const dev = await import("kerfjs/dev");
|
|
2693
|
+
dev.enableWarnings({
|
|
2694
|
+
staleBinding: true,
|
|
2695
|
+
narrowSet: true,
|
|
2696
|
+
invariants: "throw",
|
|
2697
|
+
});
|
|
267
2698
|
}
|
|
268
2699
|
```
|
|
269
2700
|
|
|
@@ -277,8 +2708,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
277
2708
|
|
|
278
2709
|
- New opt-in dev warning `KERF_DEV_WARN_LIST_REBIND=1`: fires (once per list) when an `each()` list's container is rebuilt by the morph — an ancestor's tag changed across renders, so the subtree was replaced and the list self-healed by re-binding and repopulating. The recovery is correct but discards row DOM state (focus, scroll, IME, imperative listeners); the warning names the list and points at keeping ancestor tags stable. Follows the standard `KERF_DEV_WARN_*` family rules: off by default, dev-mode only, zero production cost.
|
|
279
2710
|
|
|
280
|
-
|
|
281
|
-
- `KERF_DEV_WARN_UNTRACKED_SIGNALS=1` now tells you what it can and cannot see. The warning picks its machinery when a signal is *created*, so it only covers signals created after `kerfjs/dev` is installed — and because static imports are hoisted above a top-level `await import('kerfjs/dev')`, the module-scope signals it most wants to catch are usually created first. Previously that failed silently: you set the env var, saw nothing, and concluded your code was clean. Opting in now prints the coverage boundary once, along with the fix (make `import 'kerfjs/dev'` the first static import of a dev-only entry file). The boundary itself can't be removed — `Signal.prototype`'s `value` accessor is non-configurable, so already-created signals can't be retro-fitted without kerf keeping a registry of every signal, which production would pay for.
|
|
2711
|
+
- `KERF_DEV_WARN_UNTRACKED_SIGNALS=1` now tells you what it can and cannot see. The warning picks its machinery when a signal is _created_, so it only covers signals created after `kerfjs/dev` is installed — and because static imports are hoisted above a top-level `await import('kerfjs/dev')`, the module-scope signals it most wants to catch are usually created first. Previously that failed silently: you set the env var, saw nothing, and concluded your code was clean. Opting in now prints the coverage boundary once, along with the fix (make `import 'kerfjs/dev'` the first static import of a dev-only entry file). The boundary itself can't be removed — `Signal.prototype`'s `value` accessor is non-configurable, so already-created signals can't be retro-fitted without kerf keeping a registry of every signal, which production would pay for.
|
|
282
2712
|
|
|
283
2713
|
- An `each()` of `<tr>` written directly inside `<table>` now fails with a clear error instead of silently duplicating rows: the HTML parser inserts a `<tbody>` around the rows, which kerf cannot bind through. The message names both tags and shows the supported shape (`<table><tbody>{each(...)}</tbody></table>`). Previously this also mis-reported the rows as missing `data-key`.
|
|
284
2714
|
|
|
@@ -286,8 +2716,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
286
2716
|
|
|
287
2717
|
- Toolchain: the repo now type-checks with the native **TypeScript 7** compiler across every gate (`typecheck`, the dist `.d.ts` typing gates, the docs code-block compile — a full-repo `tsc --noEmit` now takes ~0.3 s), with `typescript@6` (the JS-API bridge release) retained for tsup's `.d.ts` emit and typescript-eslint, which still require the JS compiler API. `@typescript-eslint/*` bumped to 8.65. No shipped-code changes — `dist/` output is unaffected.
|
|
288
2718
|
|
|
289
|
-
|
|
290
|
-
- Fixed: passing a **function** as an `each()` item through an `arraySignal` insert/update (an unusual mistake, but functions are valid `WeakMap` keys so the per-item cache silently accepted them) rendered the row and then threw `each(): items must be objects…` on a *later, unrelated* re-render — far from the cause. The granular path now enforces the same objects-only item contract the snapshot path does, so the error is thrown on the render the offending mutation triggered, naming the type and index. Primitive items already behaved this way; functions now match.
|
|
2719
|
+
- Fixed: passing a **function** as an `each()` item through an `arraySignal` insert/update (an unusual mistake, but functions are valid `WeakMap` keys so the per-item cache silently accepted them) rendered the row and then threw `each(): items must be objects…` on a _later, unrelated_ re-render — far from the cause. The granular path now enforces the same objects-only item contract the snapshot path does, so the error is thrown on the render the offending mutation triggered, naming the type and index. Primitive items already behaved this way; functions now match.
|
|
291
2720
|
|
|
292
2721
|
- `arraySignal.update(i, fn)` now works when `fn` mutates the row object and returns it (not only when it returns a fresh object). Previously such a same-ref update rendered correctly in one list but left every other view of the same signal — a second list, a second `mount()`, a `filter()`ed plain-array view — permanently stale, and was lost outright when the update was batched with a selection change or a `replace()`. kerf now tracks a per-item content version so the change reaches every consumer. Returning a fresh object remains the idiomatic style; both are supported. (Fixed in the same line of work: the per-item version tracking briefly made `arraySignal.update()` throw on a signal of primitives — `arraySignal<number>` used as a plain signal — because a primitive can't key the internal version map; primitive items are now simply skipped, since only object rows are ever memoized.)
|
|
293
2722
|
|
|
@@ -299,13 +2728,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
299
2728
|
|
|
300
2729
|
- Fixed: an `arraySignal.update()` that mutated a row object in place (returning the same reference) could be silently reverted to its old content by the next unrelated re-render. The granular update path now keeps kerf's per-row HTML cache in sync with what it rendered, so the two never disagree. (Immutable updates — returning a fresh object — were unaffected, and remain the recommendation.)
|
|
301
2730
|
|
|
302
|
-
- Fixed: showing an empty conditionally-rendered `each()` list in the same batch as an update to a
|
|
2731
|
+
- Fixed: showing an empty conditionally-rendered `each()` list in the same batch as an update to a _sibling_ list could empty the sibling entirely — it rendered zero rows. When the conditional list reappeared, its list-marker comment landed next to the sibling's, and the diff overwrote the sibling marker's internal id with the reappearing one's, so the sibling's binding could no longer find its own marker. Marker comments (kerf's internal list and binding anchors) now pair only with the identical marker, never with a different one that happens to be the same kind. Ordinary comments in your markup are unaffected.
|
|
303
2732
|
|
|
304
2733
|
- Fixed: when an element rendered by a condition came back, the diff could pair it with an unrelated sibling that happened to have the same tag, and then whatever protects that sibling's contents kept the wrong contents alive inside it. A `data-morph-skip` widget **swallowed** the reappearing element — its content never rendered — and the widget was duplicated, which for a library-owned subtree (an editor, a chart, a terminal) means a second live instance attached to a node the library has no reference to. A `data-morph-preserve` child ended up under the foreign host and appeared twice. A bound hole's text leaked into the reappearing element and rendered twice. Three rules now gate that pairing: an element with an `id`/`data-key` is only ever matched to a live element with the same key; a `data-morph-skip` element only ever matches another one (so a library-owned subtree is never adopted as a stand-in, whether or not you use keys); and a comment anchoring kerf's own state only matches an anchor of the same kind. Ordinary elements without a key still match positionally exactly as before.
|
|
305
2734
|
|
|
306
|
-
- Fixed: when the number of `each()` calls in a render changed — a conditional list appearing or disappearing — a
|
|
2735
|
+
- Fixed: when the number of `each()` calls in a render changed — a conditional list appearing or disappearing — a _surviving_ list could render the departed list's rows, or render its own rows inside the wrong container. Lists without a `key` are identified by their position among the `each()` calls, and both the per-item HTML cache and the live list binding were being read as belonging to whichever list now held that position. Two lists over the same collection hit each other's cache exactly, so nothing could detect it from the data. A shift now discards that state and re-renders, which is what the documentation already described it as costing: a rebuild, never wrong output. Lists given a `key` are unaffected, and a render that doesn't change the call count is unaffected. One related improvement falls out: an unrelated list no longer loses its row nodes when a nested `each()` shifts the count.
|
|
307
2736
|
|
|
308
|
-
- Fixed: a row added to an `each()` list could land in the wrong place whenever the list wasn't the last thing inside its parent. A list ends at its last row, but kerf was looking for the next
|
|
2737
|
+
- Fixed: a row added to an `each()` list could land in the wrong place whenever the list wasn't the last thing inside its parent. A list ends at its last row, but kerf was looking for the next _element_ after it and skipping everything else on the way — so static content following the list (a footer row, a totals line, an "add item" control) got jumped, and a new row appeared after it instead of before. The same skip crossed a neighboring list's internal anchor: with two `each()` lists in one parent, rows from the first could be placed inside the second's region, and when both lists started empty their rows came out **in the wrong order** — the second list's rows rendered first. Both were correct on the initial paint and only went wrong on a later update, which made them read as intermittent. Lists now anchor on the next node of any kind, so a list's rows always stay within its own region.
|
|
309
2738
|
|
|
310
2739
|
- Fixed: an `each()` list inside an `<svg>` whose row markup contained an apostrophe (or anything else the serializer writes back differently) failed to mount at all, with a self-contradictory error. Also fixed: `each({ key })` now validates the key, so a key containing an HTML comment terminator can no longer break out of the list's internal marker and put markup in the page.
|
|
311
2740
|
|
|
@@ -317,7 +2746,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
317
2746
|
|
|
318
2747
|
- Fixed: a controlled `checked` / `value` on an `each()` row's own top-level element could stay visibly stale after the user had interacted with it — the row reconciler's attribute-only fast path wrote the attribute without syncing the live property, so whether the control obeyed your data depended on which internal route the update happened to take.
|
|
319
2748
|
|
|
320
|
-
- Fixed: when a conditionally-rendered `each()` list is added or removed, a sibling list could render the
|
|
2749
|
+
- Fixed: when a conditionally-rendered `each()` list is added or removed, a sibling list could render the _other_ list's rows — a batched "hide one list and push to another" applied the queued update to the wrong list's DOM. Lists now verify which data a pending update belongs to before applying it, and rebuild from their own items when it doesn't match.
|
|
321
2750
|
|
|
322
2751
|
- Fixed: `each()` rows inside an `<svg>` root were re-parsed in the HTML namespace on every update, so rows added or structurally changed after the first render were invisible in the browser — the initial picture looked right, which made it read as a rendering flake. Row parsing now follows the list parent's namespace (rows under `<foreignObject>` correctly stay HTML).
|
|
323
2752
|
|
|
@@ -325,92 +2754,72 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
325
2754
|
|
|
326
2755
|
- Fixed: anything sitting between a keyed `each()` list's anchor and its rows — a node injected imperatively into the list region — could make a conditional sibling's removal reorder the list, landing a trailing sibling ahead of the rows. A list's row region (anchor through last row) is now treated as one unit by the diff: it moves whole, the diff's cursor steps over it whole, and injected nodes inside it travel along keeping their position relative to the rows.
|
|
327
2756
|
|
|
328
|
-
- A conditional sibling
|
|
2757
|
+
- A conditional sibling _inside_ a keyed `each()` list's parent — a header row that comes and goes above the list — no longer costs the list's rows their DOM identity. The morph now recognizes the list's marker when a sibling shifts it, moving the marker and its rows up as a single unit instead of rebuilding the list, so row nodes, focus, and the caret survive the toggle. (An ancestor tag change, or a same-tag sibling that positionally takes the container's place, still rebuilds the list — give the list's own container a stable `id`/`data-key` if its rows need to survive that.)
|
|
329
2758
|
|
|
330
2759
|
- Fixed: a conditional sibling that shared or positionally shadowed a keyed `each()` list's container could strand the list's rows and then render a duplicate copy of them (e.g. a header `<li>` toggled inside the list's `<ul>`, or a same-tag banner `<ul>` before the list container). The morph can separate the list's marker comment from its still-attached rows; the self-heal now removes any such still-live stranded rows before repopulating, so recovery replaces the rows rather than duplicating them.
|
|
331
2760
|
|
|
332
2761
|
## [2.0.1] - 2026-07-23
|
|
333
2762
|
|
|
334
|
-
|
|
335
|
-
|
|
336
2763
|
- Fixed a `morph()` bug where static text siblings of a fine-grained bound text hole were dropped after a structural re-render (e.g. `<div>{label} / static</div>` collapsing to just the label).
|
|
337
2764
|
|
|
338
|
-
|
|
339
2765
|
- New animated coding-session demo on the getting-started page: watch the canonical counter get typed out, served, clicked in a browser, and live-edited into a todo list.
|
|
340
2766
|
- Added an animated architecture diagram and a link to the docs site from the README.
|
|
341
2767
|
|
|
342
2768
|
## [2.0.0] - 2026-07-23
|
|
343
2769
|
|
|
344
|
-
|
|
345
|
-
|
|
346
2770
|
- `delegateCapture()` now uses `closest()`-style walk-up matching like `delegate()`, passing the matched ancestor to the handler; pass `{ match: 'direct' }` (new `DelegateOptions`) to restore exact-element matching.
|
|
347
2771
|
- The dangerous-URL screen (`javascript:`, `vbscript:`, script-executing `data:` URLs) now throws an error in development instead of only warning. Production behavior is unchanged: warn and drop the attribute.
|
|
348
2772
|
|
|
349
|
-
|
|
350
2773
|
- New `kerfjs/html` tagged template: author kerf UIs with no build step (CDN / importmap, no JSX transform) with runtime semantics identical to JSX — signal holes become fine-grained bindings, attributes and text are escaped and URL-screened the same way.
|
|
351
2774
|
- New no-build example app, **live-poll**, served exactly as authored — an importmap plus one `html`-templated module, with view-source showing the app.
|
|
352
2775
|
- Added `<filter>` to the typed JSX intrinsic elements, so SVG filters compile in JSX-authored code.
|
|
353
2776
|
- Fully-bound mounts are now a documented, test-pinned guarantee: a render that reads no signal `.value` runs exactly once, forever — every update is a direct per-node write.
|
|
354
2777
|
|
|
355
|
-
|
|
356
2778
|
- Controlled form state now survives user interaction: `checked`, `value`, and `selected` DOM properties are synced when the reconciler mutates those attributes, so a clicked checkbox or typed-into input no longer ignores later updates.
|
|
357
2779
|
- Fixed stale fine-grained bindings after `arraySignal.update()`: in-place row updates now re-wire bindings whose signal instance changed, instead of leaving effects reading the old row object forever.
|
|
358
2780
|
|
|
359
|
-
|
|
360
2781
|
- New runtime dev-mode override: set `globalThis.KERF_DEV = false` (or `true`) to control dev mode without a bundler — CDN/importmap apps are no longer stuck in dev mode in production.
|
|
361
2782
|
- Two new opt-in dev warnings: `KERF_DEV_WARN_STALE_BINDING` flags bindings that silently go stale on the byte-equal fast path, and `KERF_DEV_WARN_VALUE_ONLY_RERENDER` flags re-renders whose only changes could have been fine-grained bindings.
|
|
362
2783
|
- `defineStore`'s dev-mode `get()` snapshot now returns a deep read-only proxy instead of freezing the live state: nested mutations like `get().nested.x = 1` are caught too, and they throw a descriptive `TypeError` rather than failing silently.
|
|
363
2784
|
|
|
364
|
-
|
|
365
2785
|
- Docs repositioned around the "values bind, structure re-renders" idiom as the primary way to render dynamic values, across the overview, reactivity guide, and AI assistant configs.
|
|
366
2786
|
- New guide covering the no-build authoring path and example app, plus a documentation-wide accuracy pass (delegate capture semantics, `effect()` cleanup returns, URL-screen behavior, and more).
|
|
367
2787
|
|
|
368
2788
|
## [1.0.2] - 2026-07-22
|
|
369
2789
|
|
|
370
|
-
|
|
371
|
-
|
|
372
2790
|
- Fixed the row-selector demo animation 404ing on the published site — the missing SVG capture is now generated and committed.
|
|
373
2791
|
|
|
374
2792
|
## [1.0.1] - 2026-07-22
|
|
375
2793
|
|
|
376
|
-
|
|
377
|
-
|
|
378
2794
|
- KF-329: pin release-workflow npm upgrade to npm@11 — npm@12 needs Node ≥ 22.22.2, above the 22.21.0 pin (`c54559f`)
|
|
379
2795
|
|
|
380
2796
|
## [1.0.0] - 2026-07-22
|
|
381
2797
|
|
|
382
|
-
|
|
383
|
-
|
|
384
2798
|
- **Fine-grained signal bindings** — pass a signal or `computed` directly into a JSX attribute or text hole (e.g. `class={computed(...)}` or `{sig}`) inside `mount()`, and that one node updates on signal change without re-running `render()` or walking the list reconciler. Opt-in per hole and non-breaking; works in static content and inside `each()` rows on both the snapshot and `arraySignal` reconcile paths, with binding effects correctly wired, carried, and disposed across row insert/update/remove/move.
|
|
385
2799
|
- Bound values get the same safety treatment as static ones: URL screening and `SafeHtml`/`raw()` unwrapping now apply to fine-grained bound attributes.
|
|
386
2800
|
- New interactive benchmark playground (`npm run bench:serve`) to explore kerf by hand in the standard 1k-rows benchmark app.
|
|
387
2801
|
- New **row-selector** example app and a "Fine-grained bindings" section in the reactivity demo, both showing select-row updates with zero render re-runs and zero list reconciles.
|
|
388
2802
|
|
|
389
|
-
|
|
390
2803
|
- Hardened the dangerous-URL screen: scheme detection now normalizes away C0 control characters, DEL, and leading whitespace, so obfuscations like `java script:` or a NUL before the colon can no longer slip `javascript:`/`vbscript:` URLs past the check.
|
|
391
2804
|
- Attribute names are now validated — malformed names (e.g. from spreading attacker-controlled keys into JSX) throw instead of breaking out of the open tag, and inline `on*` event handlers are rejected on both the static and signal-bound attribute paths, closing an XSS vector where a bound `onclick` would have installed a live handler.
|
|
392
2805
|
- Documented kerf's reserved marker namespace (`data-kfb`, `data-kfbrow`, `kfb:`/`kfbr:`/`kf-list:` comments) — consumer content using these can collide with binding wiring, so they're now explicitly reserved.
|
|
393
2806
|
- Documented the trusted-input bridges (`toElement()`, `morph()` with string/Element templates, `<iframe srcdoc>`) that bypass escaping by design, and the `raw()`/`SafeHtml` trust boundary.
|
|
394
2807
|
- Hardened the release pipeline: least-privilege OIDC scoping per job, SHA-pinned GitHub Actions with automated Dependabot bumps, and a token-holding publish job that runs with `--ignore-scripts` and no build tools.
|
|
395
2808
|
|
|
396
|
-
|
|
397
2809
|
- Reduced the per-row create cost of fine-grained row bindings from ~1.65× to ~1.15× via lazy row wiring — the common single-root-binding case now needs no subtree walk or extra allocations.
|
|
398
2810
|
- Published cross-framework benchmark numbers now come from the official upstream krausest js-framework-benchmark run (kerf is a merged upstream entry), replacing stale local-machine measurements.
|
|
399
2811
|
|
|
400
|
-
|
|
401
2812
|
- README refreshed for the 1.0 release: fine-grained updates and safe-by-default escaping promoted to headline features, and the status line flipped from "Pre-1.0 — API may evolve" to stable 1.0.
|
|
402
2813
|
- Fine-grained bindings documented across all consumer and AI-assistant surfaces (reactivity docs, API reference, usage guide, Cursor rules, Claude skill).
|
|
403
2814
|
|
|
404
|
-
- **Signposted the raw HTML/SVG → DOM bridges as trusted-input only.** `toElement()`, `morph()` (with a string/Element template), and the `<iframe srcdoc>` attribute bypass kerf's escaping/URL-screening by design — they're the same trust model as `innerHTML` / `raw()`. The docs now call this out loudly, including that the SVG path is
|
|
405
|
-
- **Documented kerf's reserved marker namespace.** Fine-grained bindings and `each()` lists coordinate through in-band markers that the wiring pass finds by scanning the mounted subtree and matching by id. A consumer element that carries one of those names can collide with a real binding's id and silently steal its update, so the names are now documented as reserved: the `data-kfb` / `data-kfbrow` attributes and HTML comments beginning `kfb:` / `kfbr:` / `kf-list:`. Don't emit them from your own markup or via `raw()`. (kerf's escaping already prevents a plain text/attribute
|
|
406
|
-
- **Attribute names are now validated, and inline event handlers are rejected outright.** The JSX runtime already escaped attribute
|
|
2815
|
+
- **Signposted the raw HTML/SVG → DOM bridges as trusted-input only.** `toElement()`, `morph()` (with a string/Element template), and the `<iframe srcdoc>` attribute bypass kerf's escaping/URL-screening by design — they're the same trust model as `innerHTML` / `raw()`. The docs now call this out loudly, including that the SVG path is _more_ dangerous than the HTML path (a top-level `<svg><script>`, SVG event attributes, and `xlink:href="javascript:"` execute once inserted, whereas an HTML-string `<script>` is inert), and that `srcdoc` is HTML a browser re-parses as a document (so `srcdoc={userString}` executes even though the value is escaped as an attribute). No behavior change — these are documentation + regression tests: a real-browser spec (`tests/browser/trusted-html-bridges.spec.ts`) pins the execution boundary across Chromium/Firefox/WebKit, a unit test pins that the granular list fast path keeps the URL screen's guarantee end-to-end, and another pins that SVG input isn't sanitized. See [`docs/7-svg.md`](docs/7-svg.md) § Security, [`docs/8-api-reference.md`](docs/8-api-reference.md), and [`docs/6-jsx-runtime.md`](docs/6-jsx-runtime.md) §6.4.3.
|
|
2816
|
+
- **Documented kerf's reserved marker namespace.** Fine-grained bindings and `each()` lists coordinate through in-band markers that the wiring pass finds by scanning the mounted subtree and matching by id. A consumer element that carries one of those names can collide with a real binding's id and silently steal its update, so the names are now documented as reserved: the `data-kfb` / `data-kfbrow` attributes and HTML comments beginning `kfb:` / `kfbr:` / `kf-list:`. Don't emit them from your own markup or via `raw()`. (kerf's escaping already prevents a plain text/attribute _value_ from forging one — the only ways in are hand-written markup or `raw()`.) See [`docs/2-reactivity.md`](docs/2-reactivity.md) § "Reserved marker names".
|
|
2817
|
+
- **Attribute names are now validated, and inline event handlers are rejected outright.** The JSX runtime already escaped attribute _values_; it now also validates each attribute _name_ against a safe shape (a letter/underscore/colon followed by letters, digits, or `_ . : -`) and **throws** on anything else. This closes a markup-injection vector when an object with attacker-controlled keys is spread into JSX (`<div {...untrustedObj}>`) — previously a key like `'x><img onerror=…>'` broke out of the open tag even though the value was escaped. Separately, any `on*` attribute (a function _or_ a string value, in any case — e.g. `onClick={fn}` or `onclick="…"`) now throws and points at `delegate()`; previously only function-valued keys matching `/^on[A-Z]/` were caught, so a string `onclick="alert(1)"` slipped through and became a live inline handler when parsed. Both checks now cover the **fine-grained bound path** too: a signal bound straight into an attribute (`onclick={signal}`) is written with `setAttribute`, and `setAttribute('onclick', …)` installs a live inline handler just as a parsed string would — so an `on*` (or malformed) name bound as a signal is rejected at binding time, closing the same vector on the signal path. See [`docs/6-jsx-runtime.md`](docs/6-jsx-runtime.md) §6.4.2.
|
|
407
2818
|
- **Hardened the dangerous-URL screen.** The URL-attribute filter (on `href`/`src`/`xlink:href`/`formaction`/`action`) now: (1) sees through control-character and whitespace obfuscation of the scheme — a leading ``, an in-scheme `TAB`/`LF`/`CR` (`java script:`), or a `NUL` before the colon are all normalized away before the scheme is read, matching how a browser resolves the URL, so they can no longer slip a `javascript:` past the screen; (2) treats `data:` by subtype instead of only blocking `data:text/html` — script-executing document types (`data:text/html`, `data:image/svg+xml`, XHTML/XML) are dropped while inert media (raster images, fonts, audio, video, plain text/CSS) still pass, and any unknown subtype fails closed; and (3) also screens the `data` attribute on `<object>` (which loads its target as a document). `raw()` remains the opt-out. Both the static serializer and the fine-grained bound-attribute writer share the screen, so both paths are covered.
|
|
408
|
-
- **Fine-grained signal bindings.** Hand a `Signal`/`computed`
|
|
2819
|
+
- **Fine-grained signal bindings.** Hand a `Signal`/`computed` _itself_ (not its `.value`) into a JSX attribute (`class={someSignal}`) or a text hole (`{someSignal}`) inside a `mount()`, and kerf binds that hole directly to the signal: when the signal changes, only that attribute/text node updates — the render function does **not** re-run and the list reconciler does **not** walk. This is kerf's fine-grained update tier, sitting below the coarse `mount()` effect, for the "external state drives one spot" pattern (a `selectedId` flipping a row's class, a live status attribute, etc.). Works in static content and inside `each()` rows on both the snapshot and `arraySignal` (granular) paths, and row bindings' lifetimes track their row node (a row reorder is free; a removed row's binding is torn down). Opt-in and non-breaking: passing a raw signal into JSX previously threw, so existing apps are unchanged, and any hole that isn't a signal stringifies exactly as before. Bound URL attributes (`href`/`src`/`formaction`/`action`/`xlink:href`) get the same `javascript:`/`vbscript:`/`data:text/html` screening as static attributes (`raw()` opts out). Outside a `mount()` (SSR / `SafeHtml.toString()`) a bound signal snapshots its current value and emits no markers. See [`docs/2-reactivity.md`](docs/2-reactivity.md) §2.9.
|
|
409
2820
|
|
|
410
2821
|
## [0.16.0] - 2026-07-01
|
|
411
2822
|
|
|
412
|
-
|
|
413
|
-
|
|
414
2823
|
- Fixed keyed-list selection breaking after a row was removed: a signal read only inside `each()`'s `cacheKey` (such as a `selectedId` toggling a row's class) no longer drops out of the reactive dependency set, so later changes re-render correctly.
|
|
415
2824
|
- Fixed appending items to a list after clearing it rendering nothing.
|
|
416
2825
|
|
|
@@ -419,115 +2828,90 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
419
2828
|
|
|
420
2829
|
## [0.15.5] - 2026-06-30
|
|
421
2830
|
|
|
422
|
-
|
|
423
|
-
|
|
424
2831
|
- Corrected the advertised bundle size in `llms.txt` to ~11 KB minified + gzipped (including the `@preact/signals-core` runtime dependency; ~12 KB with `arraySignal`), matching the README.
|
|
425
2832
|
|
|
426
2833
|
## [0.15.4] - 2026-06-30
|
|
427
2834
|
|
|
428
|
-
|
|
429
|
-
|
|
430
2835
|
- `llms.txt` is now published at a public docs-site URL and bundled in the npm package, making kerf's AI-assistant documentation index discoverable to llms.txt directories and tooling.
|
|
431
2836
|
|
|
432
2837
|
- The `kerfjs` package now bundles `llms.txt` (the AI-discovery index) at the package root, and the docs site serves it at `https://brianwestphal.github.io/kerf/llms.txt`. Its links are now absolute GitHub URLs so the file is portable across GitHub, the site, and the installed package.
|
|
433
2838
|
|
|
434
2839
|
## [0.15.3] - 2026-06-30
|
|
435
2840
|
|
|
436
|
-
|
|
437
|
-
|
|
438
2841
|
- `npm create kerf-component` with no directory argument now prompts for the target directory (defaulting to `my-kerf-component`, with a `.` hint for the current directory) instead of printing usage text and exiting with an error.
|
|
439
2842
|
|
|
440
2843
|
## [0.15.2] - 2026-06-30
|
|
441
2844
|
|
|
442
|
-
|
|
443
|
-
|
|
444
2845
|
- Added the `create-kerf-component` initializer — scaffold a ready-to-publish kerf component package with `npm create kerf-component@latest <dir>`, no need to reverse-engineer the packaging rules.
|
|
445
2846
|
|
|
446
2847
|
## [0.15.1] - 2026-06-30
|
|
447
2848
|
|
|
448
|
-
|
|
449
|
-
|
|
450
2849
|
- README refresh + eslint rule-count fixes + CHANGELOG hygiene (`cfbaef3`)
|
|
451
2850
|
|
|
452
2851
|
## [0.15.0] - 2026-06-30
|
|
453
2852
|
|
|
454
|
-
|
|
455
|
-
|
|
456
2853
|
- List updates now morph same-identity rows in place instead of recreating their DOM nodes, avoiding full-table relayout on large lists and preserving DOM identity, focus, and IME composition across re-renders.
|
|
457
2854
|
|
|
458
|
-
|
|
459
2855
|
- New guide on incremental migration: kerf can own a single DOM subtree and coexist with React (or any framework), letting you migrate one island at a time.
|
|
460
2856
|
- New guide on building and publishing reusable kerf components as npm packages.
|
|
461
2857
|
- Example app documentation pages now open with an animated SVG preview of the real app in action, plus a gallery on the complete-examples index.
|
|
462
2858
|
|
|
463
2859
|
## [0.14.0] - 2026-05-27
|
|
464
2860
|
|
|
465
|
-
|
|
466
2861
|
- Fix `toElement()` first-paint divergence in WebKit by adopting its result into the live document
|
|
467
2862
|
- Fix `mount()` first render in WebKit by adopting an inert `rootEl` into the live document
|
|
468
2863
|
|
|
469
2864
|
## [0.13.0] - 2026-05-23
|
|
470
2865
|
|
|
471
|
-
|
|
472
2866
|
- Add `KERF_DEV_WARN_DELEGATE_IN_EFFECT` dev warning to catch `delegate()` calls inside reactive effects
|
|
473
2867
|
- New `require-delegate-disposer` ESLint rule flags `delegate()` calls whose disposer is discarded
|
|
474
2868
|
- Document `delegate()` disposer gotchas and canonical cleanup patterns
|
|
475
2869
|
|
|
476
2870
|
## [0.12.1] - 2026-05-22
|
|
477
2871
|
|
|
478
|
-
|
|
479
2872
|
- Add GitHub Sponsors link to README, homepage, and npm `funding` field
|
|
480
2873
|
|
|
481
2874
|
## [0.12.0] - 2026-05-22
|
|
482
2875
|
|
|
483
|
-
|
|
484
2876
|
- `toElement` now returns `Element | DocumentFragment` to support multi-root inputs
|
|
485
2877
|
|
|
486
2878
|
## [0.11.1] - 2026-05-21
|
|
487
2879
|
|
|
488
|
-
|
|
489
2880
|
- `attr()` redesign: typed `AttrSpec<N, V>` exposes `.attrs` with dual overloads for cleaner attribute handling
|
|
490
2881
|
|
|
491
2882
|
## [0.11.0] - 2026-05-21
|
|
492
2883
|
|
|
493
|
-
|
|
494
2884
|
- `attr()` redesigned with `AttrSpec<N,V>` shape, `.attrs` accessor, and dual overloads
|
|
495
2885
|
- Hardened defensive programming across the runtime for safer edge-case handling
|
|
496
2886
|
- Refreshed published performance numbers from a fresh cross-framework benchmark run
|
|
497
2887
|
|
|
498
2888
|
## [0.10.0] - 2026-05-20
|
|
499
2889
|
|
|
500
|
-
|
|
501
2890
|
- Expose `kerfjs/ai/*` subpaths via package `exports` so the bundled skill/cursorrules files are resolvable
|
|
502
2891
|
- Add a defensive fallback in `kerfjs/ai-assistant-configs` ESLint rule so it fires against installed kerfjs versions whose `exports` block subpath resolution
|
|
503
2892
|
|
|
504
2893
|
## [0.9.1] - 2026-05-20
|
|
505
2894
|
|
|
506
|
-
|
|
507
2895
|
- Bundle the kerf-app Claude Code skill and Cursor rules inside the npm package at `ai/skill.md`, `ai/cursorrules`, and `ai/manifest.json`
|
|
508
2896
|
- Add `kerfjs/ai-assistant-configs` rule to `eslint-plugin-kerfjs` (warn in recommended) to flag drift in installed AI assistant configs
|
|
509
2897
|
- `eslint --fix` now replaces only the canonical section above the `KERF-APP-CANONICAL-END` marker, preserving consumer customizations below it
|
|
510
2898
|
|
|
511
2899
|
## [0.9.0] - 2026-05-20
|
|
512
2900
|
|
|
513
|
-
|
|
514
2901
|
- Bundle the kerf-app Claude Code skill and Cursor rules inside the npm package at `ai/skill.md`, `ai/cursorrules`, and `ai/manifest.json`
|
|
515
2902
|
- Add `kerfjs/ai-assistant-configs` rule (warn in recommended) to `eslint-plugin-kerfjs` v0.9.0 to surface AI-config drift on every lint pass
|
|
516
2903
|
- Canonical-file contract (`kerf-skill-version` + `KERF-APP-CANONICAL-END` marker) lets `eslint --fix` refresh the canonical section while preserving consumer customizations below the marker
|
|
517
2904
|
|
|
518
2905
|
## [0.8.2] - 2026-05-19
|
|
519
2906
|
|
|
520
|
-
|
|
521
2907
|
- Package `homepage` fields now point to the published docs site, with prominent links in both READMEs
|
|
522
2908
|
|
|
523
2909
|
## [0.8.1] - 2026-05-19
|
|
524
2910
|
|
|
525
|
-
|
|
526
2911
|
- New `eslint-plugin-kerfjs` with four AST rules enforcing kerf Hard Rules
|
|
527
2912
|
|
|
528
2913
|
## [0.8.0] - 2026-05-18
|
|
529
2914
|
|
|
530
|
-
|
|
531
2915
|
- Add opt-in dev warning `KERF_DEV_WARN_NARROW_SET=1` that fires when `set()` is called with a partial-state object (replace semantics would silently drop missing keys); names the missing keys and points at the `set({ ...get(), ...next })` merge fix
|
|
532
2916
|
- Widen `KerfBaseAttrs.contentEditable` to accept `'plaintext-only'` and add the lowercase `contenteditable` alias
|
|
533
2917
|
- Expand the `/kerf/migrating/` hub to 13 frameworks — adds Vue 3, Svelte 5, Solid, Preact, htmx, Angular, jQuery, Redux, and Astro pages alongside a refreshed 8-framework comparison matrix
|
|
@@ -538,7 +2922,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
538
2922
|
|
|
539
2923
|
## [0.7.0] - 2026-05-18
|
|
540
2924
|
|
|
541
|
-
|
|
542
2925
|
- Granular list updates now preserve DOM identity, focus, scroll, IME state, `<details open>`/`<dialog open>`, and `data-morph-skip` subtrees across in-place row updates
|
|
543
2926
|
- Two new fast paths in the granular reconciler cut krausest select-row by 71% (27.8 → 8.2 ms) and partial-update by 28% (46.8 → 33.8 ms)
|
|
544
2927
|
- `each()`'s third parameter renamed from `key` to `cacheKey` to clarify it's a passive cache-invalidation comparator, not a React-style reconciliation identity; positional callers unaffected
|
|
@@ -554,7 +2937,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
554
2937
|
|
|
555
2938
|
## [0.6.0] - 2026-05-11
|
|
556
2939
|
|
|
557
|
-
|
|
558
2940
|
- Public `morph(liveRoot, template)` export for standalone DOM reconciliation
|
|
559
2941
|
- New `data-morph-preserve` attribute to opt elements out of morphing
|
|
560
2942
|
- New `data-morph-skip-children` attribute — morph host attrs but leave subtree intact
|
|
@@ -563,12 +2945,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
563
2945
|
|
|
564
2946
|
## [0.5.1] - 2026-05-11
|
|
565
2947
|
|
|
566
|
-
|
|
567
2948
|
- Fix `dist/jsx-runtime.d.ts` IntrinsicElements self-shadow that broke JSX typing in consumer apps
|
|
568
2949
|
|
|
569
2950
|
## [0.5.0] - 2026-05-10
|
|
570
2951
|
|
|
571
|
-
|
|
572
2952
|
- Add `arraySignal` (`kerfjs/array-signal` subpath) — granular collection signal that drives O(patches) DOM updates for keyed lists
|
|
573
2953
|
- Faster keyed-list updates: bulk-parse contiguous insert runs and consecutive update patches in the granular reconcile path
|
|
574
2954
|
- Perf optimizations on the `each()` / `mount()` update path; benchmarks now competitive with Solid/Vue on swap/remove/clear
|
|
@@ -582,17 +2962,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
582
2962
|
|
|
583
2963
|
## [0.4.2] - 2026-05-09
|
|
584
2964
|
|
|
585
|
-
|
|
586
2965
|
- No user-facing changes in this release.
|
|
587
2966
|
|
|
588
2967
|
## [0.4.1] - 2026-05-09
|
|
589
2968
|
|
|
590
|
-
|
|
591
2969
|
- Just fixing the build
|
|
592
2970
|
|
|
593
2971
|
## [0.4.0] - 2026-05-09
|
|
594
2972
|
|
|
595
|
-
|
|
596
2973
|
- `delegate()` now auto-promotes the seven well-known non-bubbling events (`focus`, `blur`, `scroll`, `load`, `error`, `mouseenter`, `mouseleave`) to capture phase, with `closest()`-style selector matching preserved
|
|
597
2974
|
- Fixed focus and caret position loss when reordering keyed `each()` rows on engines that drop focus on `insertBefore` (older Safari, happy-dom)
|
|
598
2975
|
- `mount()` now throws a descriptive error when the root element is null/undefined instead of a generic "Cannot set properties of null"
|
|
@@ -603,12 +2980,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
603
2980
|
|
|
604
2981
|
## [0.3.1] - 2026-05-08
|
|
605
2982
|
|
|
606
|
-
|
|
607
2983
|
- Removed stale `morphdom` references; the bundled native diff is now the only reconciler
|
|
608
2984
|
|
|
609
2985
|
## [0.3.0] - 2026-05-08
|
|
610
2986
|
|
|
611
|
-
|
|
612
2987
|
- Rebuilt render pipeline with structured segments and a native keyed-list diff, replacing the morphdom dependency
|
|
613
2988
|
- Added `each()` for keyed list iteration with per-item HTML memoization by object identity
|
|
614
2989
|
- Renamed the npm package from `kerf` to `kerfjs` (the `kerf` name tripped npm's typo-squatting heuristic); the brand, GitHub repo, and Pages URL are unchanged
|
|
@@ -619,24 +2994,20 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
619
2994
|
|
|
620
2995
|
## [0.2.1] - 2026-05-07
|
|
621
2996
|
|
|
622
|
-
|
|
623
2997
|
- Add `Fragment` export to the `kerfjs` barrel for explicit JSX fragment usage
|
|
624
2998
|
|
|
625
2999
|
## [0.2.0] - 2026-05-07
|
|
626
3000
|
|
|
627
|
-
|
|
628
3001
|
- Fix focused contenteditable losing focus/caret during morph
|
|
629
3002
|
- Fix `SafeHtml` identity mismatch across entry points caused by dist bundling
|
|
630
3003
|
- Fix `clearStoreRegistry` no-op in built output, restoring test isolation
|
|
631
3004
|
|
|
632
3005
|
## [0.1.2] - 2026-05-07
|
|
633
3006
|
|
|
634
|
-
|
|
635
3007
|
- No user-facing changes; release tooling fixes only.
|
|
636
3008
|
|
|
637
3009
|
## [0.1.1] - 2026-05-07
|
|
638
3010
|
|
|
639
|
-
|
|
640
3011
|
- This is just a publication script test
|
|
641
3012
|
|
|
642
3013
|
## [0.1.0] - 2026-05-07
|