@umriss-ui/core 0.33.0 → 0.35.0
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 +54 -6
- package/README.md +20 -12
- package/dist/core.css +1 -1
- package/dist/core.js +4387 -4643
- package/dist/de.d.ts +0 -74
- package/dist/formats-D0YRBdnl.js +62 -0
- package/dist/index.d.ts +169 -454
- package/dist/wording/de.js +6 -47
- package/docs/llms-full.md +602 -990
- package/package.json +5 -4
- package/dist/formats-DrB9TuzO.js +0 -65
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
# Changes to `@umriss-ui/core`
|
|
2
2
|
|
|
3
3
|
This document describes what changes for **callers** of the package: exports,
|
|
4
|
-
props, behaviour.
|
|
5
|
-
something else — what was worked on here, including
|
|
6
|
-
rebuilds, tests and decisions that are invisible from outside. The two therefore
|
|
7
|
-
do not run in parallel: an entry there can be missing here because it changed
|
|
8
|
-
nothing about the contract; and one sentence here can summarise three entries
|
|
9
|
-
there.
|
|
4
|
+
props, behaviour.
|
|
10
5
|
|
|
11
6
|
**The numbers.** The middle digit rises when something is added; the last one
|
|
12
7
|
when something is repaired. As long as the first digit is `0`, no number
|
|
@@ -15,6 +10,8 @@ well: **whatever changes existing behaviour stands under a heading "Changed" of
|
|
|
15
10
|
its own**, no matter which digit rose. Whoever reads only one section before an
|
|
16
11
|
upgrade reads that one.
|
|
17
12
|
|
|
13
|
+
From 0.34.0 all five packages share one number: they are released together, and a package without a change of its own still gets a heading for it.
|
|
14
|
+
|
|
18
15
|
**Names read forwards.** Where an entry below describes a name that has since
|
|
19
16
|
been renamed, it is named here as it is called today; string literals, and
|
|
20
17
|
names of things that were removed rather than renamed, stand as they stood.
|
|
@@ -29,6 +26,57 @@ package stood at `0.1.0` the whole time, because it had exactly one caller and t
|
|
|
29
26
|
caller lay in the same repository — and are grouped by unit of delivery, not by
|
|
30
27
|
commit.
|
|
31
28
|
|
|
29
|
+
## 0.35.0 – React 19 is the floor, and an import pays for what it uses (Oct. 2026)
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- **React 19 is required.** The peers `react` and `react-dom` are `>=19`; `0.34.0` is the last version that serves React 18 (ADR-0062).
|
|
34
|
+
|
|
35
|
+
- **`ref` is a prop of every component, and none is a `forwardRef` object.** A component is a plain function that takes `ref` with its props, and its props type says so: it extends the new exported type `RefProp<Element>`, with the element the component renders at its root. A `ref` works as it did; a `ref` of the wrong element type is now a type error, and code that looked for `$$typeof` on a component no longer finds one.
|
|
36
|
+
|
|
37
|
+
- **The package ships ES2022 syntax.** An application that serves older browsers transpiles it itself.
|
|
38
|
+
|
|
39
|
+
### Fixed
|
|
40
|
+
|
|
41
|
+
- **A virtualised tree that was scrolled stays where it was scrolled.** Once its active node had been moved by key, the tree pulled the view back to that node on every render, so a wheel could not leave it. The view now follows the active node only when the node moves.
|
|
42
|
+
|
|
43
|
+
- **A virtualised tree scrolls its whole length inside a container of fixed height.** Its filler rows were squeezed to nothing there, and the scroll area was only as high as its window.
|
|
44
|
+
|
|
45
|
+
### Otherwise
|
|
46
|
+
|
|
47
|
+
- **An import pays for what it uses.** Every component was a call at the top of its module, which a bundler has to keep with everything it reaches, so one `Button` brought the package. Minified and gzipped, `Button` alone is now 5.2 kB where it was 43.5 kB, `Select` 9.4 kB, and an import that uses nothing leaves 1.1 kB. A check on the built package holds it.
|
|
48
|
+
|
|
49
|
+
- **A key in a large tree costs what it costs in a small one.** The flattening was computed again for every move of the active node; at 100,000 nodes a key took 14 ms and now takes 0.3 ms.
|
|
50
|
+
|
|
51
|
+
- **`useVirtual` renders its caller only when the window of rows changes.** It used to render on every scroll event.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 0.34.0 – The Dock and the alarm list's words leave (Oct. 2026)
|
|
56
|
+
|
|
57
|
+
From this version all five packages carry one number and are released
|
|
58
|
+
together.
|
|
59
|
+
|
|
60
|
+
### Changed
|
|
61
|
+
|
|
62
|
+
- **`--u-color-accent-active` and the wording `asOfUnknown` are removed.** No stylesheet read the token and no component read the wording; setting either did nothing. A theme or a wording that still carries them loses nothing (the type checker reports the wording key as unknown).
|
|
63
|
+
|
|
64
|
+
- **The alarm list's wording keys are removed**: the alarm, priority, lifecycle, snooze, flood, chatter, availability and alarm-column keys. A wording that still carries them is ignored at runtime and reported by the type checker as an unknown key. `verdictAlarm` and the limit model are unchanged.
|
|
65
|
+
|
|
66
|
+
- **`Dock` is removed**, with `DockProps`, `DockTool` and `DockPlace`, the eight `--u-dock-*` tokens and the wording keys `dockTools`, `dockGrip`, `dockPlace`, `dockPlaced` and `dockNoPlace` (a wording that still carries them is ignored at runtime and reported by the type checker as an unknown key). Nothing in the workspace used it. A caller that needs a strip of tools over a surface builds it from `Button`, `Tooltip` and the glyphs; `GripGlyph`, `GridGlyph` and `MeasureGlyph` stay. ADR-0013 and ADR-0014 are marked withdrawn.
|
|
67
|
+
|
|
68
|
+
- **The tree's transition functions are no longer exported from the entry**: `move`, `toggleCheck`, `expand`, `collapse`, `keysBetween`, `toggleAll`, `setChecked`, `setActive`, `setAnchor`, `typeaheadTarget`, `pathTo` and `revealPath`. `treeModel`, `allBranches` and `duplicateKey` stay, and `useTree` is what a caller drives a tree with. The same holds for `remainingChars` and `clampedHeight` of `Textarea`. No type changed.
|
|
69
|
+
|
|
70
|
+
### Fixed
|
|
71
|
+
|
|
72
|
+
- **An announcement that waits past its page no longer throws.** The library's
|
|
73
|
+
voice speaks after a rest of 150 ms; where the document was gone by then - a
|
|
74
|
+
test's environment torn down right after a combobox, a multi-select, the
|
|
75
|
+
command palette or a copy spoke - the timer ran into `document is not
|
|
76
|
+
defined` and a test run ended with an unhandled error. It says nothing now.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
32
80
|
## 0.33.0 – The library's one voice, and React 18 proved (Oct. 2026)
|
|
33
81
|
|
|
34
82
|
### Added
|
package/README.md
CHANGED
|
@@ -30,14 +30,26 @@ In an application:
|
|
|
30
30
|
import { Button, Card } from "@umriss-ui/core";
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Nothing else is required. React
|
|
34
|
-
|
|
33
|
+
Nothing else is required. React 19 or newer as a peer.
|
|
34
|
+
|
|
35
|
+
The package ships ES2022 syntax; an application that serves older browsers
|
|
36
|
+
transpiles it itself.
|
|
35
37
|
|
|
36
38
|
Every entry, `./wording/de` included, begins with `"use client"`, the directive a framework
|
|
37
39
|
with Server Components reads to treat a module as client code. No test runs
|
|
38
40
|
inside such a framework: the package is rendered to a string in a test,
|
|
39
41
|
and the fields' widths a server writes into the markup are checked there.
|
|
40
42
|
|
|
43
|
+
### What an import costs
|
|
44
|
+
|
|
45
|
+
An application whose bundler shakes the tree pays for what it imports, not for
|
|
46
|
+
the package. Minified and gzipped, the stylesheet not counted: an import that
|
|
47
|
+
uses nothing 1.1 kB, `Button` 5.2 kB, `Select` 9.4 kB, `DatePicker` 10.4 kB,
|
|
48
|
+
everything 50.7 kB. The figures come from bundling an entry that imports from
|
|
49
|
+
the built `dist/core.js` with Rollup - the peers external, the stylesheet
|
|
50
|
+
resolved to nothing - then minifying with esbuild and gzipping. `check:dist`
|
|
51
|
+
holds the first of them under 1.5 kB in every package.
|
|
52
|
+
|
|
41
53
|
## Styles
|
|
42
54
|
|
|
43
55
|
**They load themselves.** `dist/core.js` imports its stylesheet, and the
|
|
@@ -115,10 +127,10 @@ import { GERMAN_FORMATS, GERMAN_WORDING } from "@umriss-ui/core/wording/de";
|
|
|
115
127
|
|
|
116
128
|
## Components
|
|
117
129
|
|
|
118
|
-
The table
|
|
130
|
+
The table is not part of this package. It lives in
|
|
119
131
|
**`@umriss-ui/table`**:
|
|
120
132
|
`useTable` with columns as elements, `Toolbar`, `Search`, `ColumnMenu`, `Export`,
|
|
121
|
-
`Pagination
|
|
133
|
+
`Pagination` and `VerdictColumn`. That package takes
|
|
122
134
|
`@umriss-ui/core` as a peer and reads its provider, formats and wording.
|
|
123
135
|
|
|
124
136
|
| Component | Purpose |
|
|
@@ -157,7 +169,6 @@ The table and the alarm list are not part of this package. They live in
|
|
|
157
169
|
| `ControlSizeProvider` | one size for the controls in a place - a toolbar, a dense form: every control with `size` inside takes it unless it says its own. A popover, dialog or tooltip opened from there starts without it |
|
|
158
170
|
| `UmrissProvider` | one place to set things: density, portal target, toasts, language. **Optional** – without it everything behaves as it does unconfigured. It holds no theme (light and dark are the application's `color-scheme`) and writes nothing onto the document |
|
|
159
171
|
| `LanguageProvider` / `useFormats` / `useWording` | formatting and wording as an overridable seam; the wording is a directory of entries, not a translation call. English is the default, German ships as `@umriss-ui/core/wording/de` |
|
|
160
|
-
| `Dock` | a tool strip over *one* surface: four named resting places at the edges of the host, moved by the grip (dragging snaps, the four arrow keys are the four places), orientation follows the edge; translucent material like the palette; a place without room refuses visibly; `mode` marks at most one tool and belongs to the caller |
|
|
161
172
|
| `DateRangePicker` | a period in two clicks across two chained months: backwards is allowed (the ends swap silently), a preview band on hovering, quick choices from the wording; on a phone the months stand one below the other |
|
|
162
173
|
| `DateTimeRangePicker` | a period with a time at both ends: "all day" as the default, time fields that advance, Enter accepts; the clock change is handled per end |
|
|
163
174
|
| `Popover` | the one closable, anchored surface underneath Menu, Combobox and the pickers: portal (nearest `<dialog>`, then the portal target, then the body), position with flipping above and below and across its trigger's edges, a panel that fits nowhere cut to the larger side instead of laid over its trigger, clamping as the last resort, never larger than the window (it scrolls in itself beyond that), outside click, Escape with focus returned |
|
|
@@ -179,7 +190,7 @@ The table and the alarm list are not part of this package. They live in
|
|
|
179
190
|
|
|
180
191
|
## Principles for new components
|
|
181
192
|
|
|
182
|
-
1. Pass `
|
|
193
|
+
1. Pass `ref`, `className` and `...rest` through to the root element –
|
|
183
194
|
every component that renders a root element. Excepted are the wrappers that
|
|
184
195
|
have none: `Popover` renders into a portal, `Tooltip` around the caller's
|
|
185
196
|
child, `Menu`, `ContextMenu` and `ToastProvider` are composed of other
|
|
@@ -226,15 +237,12 @@ The table and the alarm list are not part of this package. They live in
|
|
|
226
237
|
|
|
227
238
|
## Roadmap
|
|
228
239
|
|
|
229
|
-
The core scope is complete, and so are the command palette,
|
|
240
|
+
The core scope is complete, and so are the command palette, the
|
|
230
241
|
danger text tone, the pass-through of rules 1 and 2 above, the six basic
|
|
231
242
|
components and the layout extras, forced colours, the listbox
|
|
232
|
-
announcements, and the fields' widths and sizes (ADR-0041).
|
|
233
|
-
announcements heard through VoiceOver (`.scratch/listbox-announcements/`,
|
|
234
|
-
ticket 02) - put aside by the maintainer on 11 Oct 2026, not closed.
|
|
243
|
+
announcements, and the fields' widths and sizes (ADR-0041).
|
|
235
244
|
|
|
236
|
-
|
|
237
|
-
state space. What core will not build at all stands in
|
|
245
|
+
What core will not build at all stands in
|
|
238
246
|
[ADR-0032](../../docs/adr/0032-what-umriss-is-not.md). Validation is the
|
|
239
247
|
caller's, and a dashboard a user arranges is never built; umriss shows the
|
|
240
248
|
reader's time ([ADR-0060](../../docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).
|