@umriss-ui/core 0.32.0 → 0.34.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 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. The journal of the repository (`docs/journal.md`) describes
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,55 @@ 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.34.0 – The Dock and the alarm list's words leave (Oct. 2026)
30
+
31
+ From this version all five packages carry one number and are released
32
+ together.
33
+
34
+ ### Changed
35
+
36
+ - **`--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).
37
+
38
+ - **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.
39
+
40
+ - **`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.
41
+
42
+ - **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.
43
+
44
+ ### Fixed
45
+
46
+ - **An announcement that waits past its page no longer throws.** The library's
47
+ voice speaks after a rest of 150 ms; where the document was gone by then - a
48
+ test's environment torn down right after a combobox, a multi-select, the
49
+ command palette or a copy spoke - the timer ran into `document is not
50
+ defined` and a test run ended with an unhandled error. It says nothing now.
51
+
52
+ ---
53
+
54
+ ## 0.33.0 – The library's one voice, and React 18 proved (Oct. 2026)
55
+
56
+ ### Added
57
+
58
+ - **`announce(text, at?)`**: the library's one voice - the polite live region the combobox, the multi-select and the command palette speak through - for another package or an application that has something to say without a visible change. A later call within 150 ms replaces an earlier one; the same words again are heard again; `at` is the element that speaks, so that inside a modal `<dialog>` it is the dialog's own region.
59
+
60
+ - **The unit tests run against React 18.3.1 and 19 in CI**, and the fields' widths are rendered to a string on a server in a test (`fieldWidth.test.tsx`).
61
+
62
+ - **`availabilitySnoozed(until, by, reason?)`**: a third, optional argument; the English and German sentences append `: ${reason}` for a non-empty reason ("Snoozed until 14:00 by M. Weber: valve being replaced" / "Zurückgestellt bis 14:00 von M. Weber: Ventil wird getauscht"). A wording of two parameters still fits the type and keeps working, with no reason in its sentence.
63
+
64
+ - **`copiedRows(count, formatted)`, `copiedCell` and `copyFailed`**: what the table says to a screen reader after Ctrl/Cmd+C ("3 rows copied", "Cell copied", "Could not copy"), in English and German. A wording that leaves them out fails its type, as with any new key.
65
+
66
+ ### Changed
67
+
68
+ - **Every entry begins with `"use client";`.** The built files `dist/core.js` and `dist/wording/de.js` start with the directive, then the stylesheet import, so a bundler that splits server from client code takes each as client code. The directive is written to the built entries only; the sources are unchanged.
69
+
70
+ - **Every export is a client component.** A hook called in a Server Component now fails with React's message about a client reference, not one about `useState`.
71
+
72
+ ### Fixed
73
+
74
+ - **`inert` works on React 18.** The folded panel of `Accordion` and `Card`, a `Popover` leaving and a `Splitter` pane folded to nothing wrote no `inert` attribute under 18, which drops a boolean on an attribute it does not know, so their content stayed in the tab order. The attribute is now written in the form each major reads.
75
+
76
+ ---
77
+
32
78
  ## 0.32.0 – Words for a snooze's reason and a plan's milestones (Oct. 2026)
33
79
 
34
80
  ### Added
package/README.md CHANGED
@@ -30,7 +30,13 @@ In an application:
30
30
  import { Button, Card } from "@umriss-ui/core";
31
31
  ```
32
32
 
33
- Nothing else is required.
33
+ Nothing else is required. React 18 or 19 as a peer; the unit tests run against
34
+ 18.3 and 19 in CI.
35
+
36
+ Every entry, `./wording/de` included, begins with `"use client"`, the directive a framework
37
+ with Server Components reads to treat a module as client code. No test runs
38
+ inside such a framework: the package is rendered to a string in a test,
39
+ and the fields' widths a server writes into the markup are checked there.
34
40
 
35
41
  ## Styles
36
42
 
@@ -109,10 +115,10 @@ import { GERMAN_FORMATS, GERMAN_WORDING } from "@umriss-ui/core/wording/de";
109
115
 
110
116
  ## Components
111
117
 
112
- The table and the alarm list are not part of this package. They live in
118
+ The table is not part of this package. It lives in
113
119
  **`@umriss-ui/table`**:
114
120
  `useTable` with columns as elements, `Toolbar`, `Search`, `ColumnMenu`, `Export`,
115
- `Pagination`, `VerdictColumn`, `AlarmList` and `alarmModel`. That package takes
121
+ `Pagination` and `VerdictColumn`. That package takes
116
122
  `@umriss-ui/core` as a peer and reads its provider, formats and wording.
117
123
 
118
124
  | Component | Purpose |
@@ -151,7 +157,6 @@ The table and the alarm list are not part of this package. They live in
151
157
  | `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 |
152
158
  | `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 |
153
159
  | `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` |
154
- | `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 |
155
160
  | `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 |
156
161
  | `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 |
157
162
  | `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 |
@@ -220,13 +225,12 @@ The table and the alarm list are not part of this package. They live in
220
225
 
221
226
  ## Roadmap
222
227
 
223
- The core scope is complete, and so are the command palette, `Dock`, the
228
+ The core scope is complete, and so are the command palette, the
224
229
  danger text tone, the pass-through of rules 1 and 2 above, the six basic
225
230
  components and the layout extras, forced colours, the listbox
226
- announcements, and the fields' widths and sizes (ADR-0041). What is still open is one check a person makes: the listbox
227
- announcements heard through VoiceOver (`.scratch/listbox-announcements/`,
228
- ticket 02).
231
+ announcements, and the fields' widths and sizes (ADR-0041).
229
232
 
230
- Collapsing the dock onto its grip stays out of scope, because it doubles the
231
- state space. What core will not build at all stands in
232
- [ADR-0032](../../docs/adr/0032-what-umriss-is-not.md).
233
+ What core will not build at all stands in
234
+ [ADR-0032](../../docs/adr/0032-what-umriss-is-not.md). Validation is the
235
+ caller's, and a dashboard a user arranges is never built; umriss shows the
236
+ reader's time ([ADR-0060](../../docs/adr/0060-validation-and-a-layout-editor-are-never-time-zones-not-yet.md)).