@synopackageland/ui 0.25.3 → 0.25.5
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 +46 -0
- package/dist/cli.js +0 -0
- package/dist/index.js +3848 -3837
- package/dist/json-preview/preview.js +5081 -5070
- package/dist/reka-runtime.json +1 -1
- package/dist/rich-text.js +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/dist/virtual/galleryColumns.d.ts +5 -2
- package/docs/adaptive-layout.md +2 -2
- package/docs/app-local-modal.md +24 -5
- package/docs/mobile-native.md +5 -2
- package/package.json +91 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.25.5 (2026-11-10)
|
|
4
|
+
|
|
5
|
+
Opening or closing the phone's navigation drawer, the aside sheet or the FAB speed dial no longer restyles the whole page. AppLayout made the page column `inert` while one was open, and Chrome restyles every element under an element whose `inert` changes. Pages look the same: a computed-style comparison of every element and property in each state, and the screenshots, differ only in Chrome's `interactivity` (the `inert` itself). No API change.
|
|
6
|
+
|
|
7
|
+
Measured with `pnpm trace:restyle --phone` (a 1,173-element settings page on a 390px touch phone, Chrome at 4× CPU slowdown, median of 7; development build): opening the drawer restyles 68 elements instead of 860 (style 28 ms instead of 206 ms; next paint 90 ms instead of 298 ms), the aside sheet 88 instead of 879, the FAB speed dial 43 instead of 834. Closing each restyles 32–43 elements instead of 822–834. The DSM window theme (`--phone --window`) gives about the same: 29–86 elements instead of 819–877.
|
|
8
|
+
|
|
9
|
+
### Phone layout
|
|
10
|
+
|
|
11
|
+
- **The page behind an overlay is `aria-hidden`, not `inert`.** The drawer and the aside sheet keep it out of reach as an app-local dialog does: the mask takes presses, wheel and touch, Tab loops in the overlay, focus that reaches the page goes back, and Escape closes. An expanded aside, which leaves the page no width, still makes the page `inert`
|
|
12
|
+
- **The FAB speed dial traps focus in an app-local AppRoot.** In `modal-scope="app"` its trap came only from the page's `inert`. Tab and Shift+Tab now loop in the dial, and focus that reaches the page goes back to it, as in document mode
|
|
13
|
+
|
|
14
|
+
### Development
|
|
15
|
+
|
|
16
|
+
- **Every dev server runs the patched Reka.** Vite's dependency optimizer pre-bundled reka-ui without `build/rekaPatch.ts`, so in Histoire, the gallery and the `tests/dsm-host` pages a Dialog locked the document body (`pointer-events: none`, `overflow: hidden`). The Reka patch plugin now keeps reka-ui out of `optimizeDeps` in any config that uses it, and the browser-check scripts serve through `vitest.config.ts`. `tests/dev-server-reka.test.ts` fails when a dev config or a script's dev server goes without it. The published package was not affected: its build already applied the patch
|
|
17
|
+
- `pnpm trace:restyle --phone [--window]` measures the drawer, the aside sheet and the FAB speed dial (`tests/dsm-host/restyle-phone.html`)
|
|
18
|
+
|
|
19
|
+
### Migration notes
|
|
20
|
+
|
|
21
|
+
- A test that checked `[data-ui-layout-main]` for `inert` while the phone drawer, the aside sheet or the FAB speed dial is open should check `aria-hidden="true"` instead. With an expanded aside the page is still `inert`
|
|
22
|
+
|
|
23
|
+
## 0.25.4 (2026-11-10)
|
|
24
|
+
|
|
25
|
+
A local change no longer restyles the whole App. Adding a row, showing a notice or opening a dialog used to make Chrome restyle every element of the App (100–500 ms per click on a busy machine); now only what the change reaches is restyled. Pages look the same: a computed-style comparison of every element and property over the component gallery and the visual pages found no difference. No API change.
|
|
26
|
+
|
|
27
|
+
Measured with `pnpm trace:restyle` (a 1,200-element settings page in a DSM window, Chrome at 4× CPU slowdown, median of 7; development build, so script time is high): opening a dialog restyles 36 elements instead of 816 (style 16 ms instead of 160 ms; first paint about 125 ms instead of 270 ms); a notice at the top of a settings page restyles 5 elements instead of 1,269 (style 3 ms instead of 185 ms); a row at the top of a form group restyles 19 elements instead of 80.
|
|
28
|
+
|
|
29
|
+
### Theme
|
|
30
|
+
|
|
31
|
+
- **Form groups and the rich text editor** space every child after the first with `:not(:first-child)` instead of `* + *` (same elements, same zero specificity). Adding a row to a `FormGroup` restyled the subtrees of all the rows after it
|
|
32
|
+
- **Settings pages** space each visible block after the first visible one with `:nth-child(n + 2 of :not([hidden]))` instead of a `~` rule. Showing a notice at the top of a `SettingsPage` restyled the whole page
|
|
33
|
+
- **The phone's aside button** hides under an open record sheet by asking the App root (`[data-ui-app]:has(…)`), not the document root
|
|
34
|
+
- **The DSM window theme** (`themes/dsm7-embedded.css`) scopes each rule to the App as `:where([data-ui-app])X, :where([data-ui-app]) X` instead of `:where([data-ui-app], [data-ui-app] *)X` (same elements, same specificity). A full restyle of an App about 25 levels deep takes about a third less time. The file is larger (57 KB instead of 47 KB gzipped)
|
|
35
|
+
|
|
36
|
+
### Dialogs and sheets (app-local modal)
|
|
37
|
+
|
|
38
|
+
- **Opening a dialog no longer makes the App's background `inert`.** Chrome restyles every element under an element whose `inert` changes, which made a dialog's first frame wait for a restyle of the whole App. The background is `aria-hidden`; the mask still takes presses, wheel and touch, Tab still loops in the dialog, focus that reaches the background goes back to the dialog, and Escape closes it. Focus left on the background when a dialog skips autofocus is released, as `inert` would. A nested dialog still makes the one under it inert
|
|
39
|
+
|
|
40
|
+
### Card grid
|
|
41
|
+
|
|
42
|
+
- **Two cards across on a tablet.** `VirtualCardGrid` gained its second column at a 640px container, so a gallery beside a sidebar on a portrait iPad (about 470px) showed one card per row. `GALLERY_BREAKPOINTS` is now `[440, 720, 1024, 1280, 1536]`: two columns from 440px, three from 720px, the wider steps unchanged. A phone (390px) keeps one. No API change
|
|
43
|
+
|
|
44
|
+
### Migration notes
|
|
45
|
+
|
|
46
|
+
- A test that checked `[data-ui-background]` for `inert` while a dialog is open should check `aria-hidden="true"` instead
|
|
47
|
+
- An App that rewrote these selectors in its own build can drop that rewrite
|
|
48
|
+
|
|
3
49
|
## 0.25.3 (2026-11-09)
|
|
4
50
|
|
|
5
51
|
### Grid
|
package/dist/cli.js
CHANGED
|
File without changes
|