Skip to content

Commit d2bb6ef

Browse files
committed
Merge main 0af8ee1 now that meta#8041 has merged
useScrollableArea.ts conflicted: meta#8041 merged in a later form than the one this branch carried. That file takes this PR's version, which is meta#8041's merged code plus this PR's own changes (the shared mutation observers and the watch on a viewport's direct children). AppShell.tsx merged textually but declared mainRef twice: meta#8723 added an object ref for the content glide, and this PR's ref is the scroll measurement under fill. This PR's becomes mainScrollRef, and main's node goes to both through useMergedRefs.
2 parents d7317a2 + 0af8ee1 commit d2bb6ef

707 files changed

Lines changed: 90112 additions & 6537 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changeset/action-group-tracker.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[internal] One tracker for a held finger across a group of targets (an alert's or an action sheet's actions, a menu's rows, a segmented control's segments, a page control's dots): it reads the targets' rects once, resolves the finger against them (or by the owner's rule), paints or reports the highlight, and runs the target through its own click at the lift. Nothing a consumer sees changes.
6+
7+
@vjeux
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[feature] `useAnimatedLayout({containerRef})` returns a handle that Collapsible and TreeList take as their new `animatedLayout` prop (`spec:AST-105`). When one of them opens or closes, the content around it inside that container (after it, and before it where the layout centers or end-aligns it) glides to its new place instead of jumping, the revealed content reveals, closing content conceals before it hides, and the chevron turns, all on one shared motion, under every pointer, a mouse included. Fixed and stuck sticky elements stay put, the glide never scrolls the container, and under Reduce Motion the change cross-fades on touch and happens at once with a mouse. A single-mode CollapsibleGroup glides every item it changes. Without the prop, nothing changes.
6+
7+
@cixzhang
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[fix] With an `animatedLayout` handle, content before a Collapsible or TreeList change glides too where the layout moves it: an item before the change in a centered, end-aligned or space-between row, a sibling `order` places after it, and the card around a change in a centered column. Inside a positioned, stuck sticky or top-layer ancestor of the change, only the content after the change moves: that ancestor, the wrappers inside it and the content before the change take their final place at once.
6+
7+
@cixzhang
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[perf] With an `animatedLayout` handle, a Collapsible or TreeList change in a long list reads every row's place before any glide starts, so the page is laid out once rather than once per gliding row.
6+
7+
@cixzhang
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[fix] With an `animatedLayout` handle, content after a change now glides even when it keeps a transform that leaves it in place. A resting Button (`scale(1)`, computed as `matrix(1, 0, 0, 1, 0, 0)`), a pressed one (`scale(0.98)`) and a row with swipe actions at rest (`translate3d(0, 0, 0)`) used to jump to their new place as if the app were moving them, and a pressed button jumped onto the button gliding beside it. A row a swipe holds open, or anything the app translates or rotates, is still left to the app.
6+
7+
@vjeux

‎.changeset/animated-layout-swap.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[fix] The animated-layout module gains its internal in-place swap: old content held as one inert, transient copy while new content enters in its place, on the shared motion. Nothing uses it yet and nothing public changes. In right-to-left containers, content after a Collapsible or TreeList size change (with an `animatedLayout` handle) now glides by its inline-start edge instead of jumping.
6+
7+
@cixzhang

‎.changeset/animated-layout.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[chore] Internal: the one module for size-change glides (`spec:AST-105`, `architecture:react-component-runtime` INV12). After a reported size change, the content after it inside a container glides to its new place on one shared internal motion role, and the changed element enters or exits on the same motion. Not exported; no component uses it yet. The public `useAnimatedLayout` hook and Collapsible's and TreeList's `animatedLayout` prop arrive together in a later release.
6+
7+
@cixzhang
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[fix] `useAnnounce` now delivers a message by where its caller is. Inside an open Astryx modal — a Dialog, a modal BottomSheet (standalone or a switcher step), a modal Drawer, a Lightbox, MobileNav, or CommandPalette's dialog — the message reaches a persistent live region inside that dialog, which assistive technology hears while the modal is open, instead of the page-body region the modal hides; outside a modal nothing changes. Component and app code rendered inside a modal that calls `useAnnounce` is heard without any change to it. Delivery follows exposure, in top-layer order: a message sent as a switcher step hands over reaches the entering step, forward or back; a message sent as a modal BottomSheet closes, or just before an open Dialog is unmounted, waits while the leaving modal still covers the page and is delivered at its real close to whatever is exposed then — the Dialog it was opened over, or the page body — instead of being lost; a message a modal receives while a later modal covers it is not written and its region is clear before it is on top again. Busy controls inside a modal announce their busy start through the same region, including inside a native modal an app renders without Astryx; messages written to one region before the first is exposed are joined, and an identical repeat in the same frame is said once. The region's internal marker is `data-astryx-modal-live-region="polite"` or `"assertive"` (the busy region's former `data-astryx-modal-busy-region` is gone). Not in this change: CommandPalette's own result-count messages, Lightbox's own position and zoom messages, and Selector's and MultiSelector's selection and result-count messages in their `bottom-sheet` presentation are sent from the component that renders each dialog, above it, and still use the page-body channel while that dialog is open; each component's own change follows. This meets the in-modal delivery requirement in spec:AST-086 (FR14).
6+
7+
@imdreamrunner

‎.changeset/announce-same-frame-join.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
'@astryxdesign/core': patch
33
---
44

5-
[fix] useAnnounce: messages announced in the same frame are now joined, in order, into one announcement instead of the last one replacing the others, and an identical repeat is spoken once, so a screen reader no longer misses an earlier status such as a result count announced alongside a confirmation. An empty message still clears the region, including joined messages not yet spoken. This meets the shared-channel requirement in spec:AST-086 (FR9).
5+
[fix] useAnnounce: messages announced in the same frame are now joined, in order, into one announcement instead of the last one replacing the others, and an identical repeat is spoken once, so a screen reader no longer misses an earlier status such as a result count announced alongside a confirmation. An empty message still clears the region, including joined messages not yet spoken. This meets the shared-channel requirement in spec:AST-086 (FR9). Introduced in #8244; final-state evidence (#8294).
66

77
@cixzhang
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[fix] ChatComposerInput keeps focus and its Tab stop when disabled instead of moving focus to the page. Disabled editors block editing, paste/drop, trigger selection, imperative mutations, and submission while retaining their draft and accessible description.
6+
@korkt-kim

0 commit comments

Comments
 (0)