Skip to content

Commit 655e2e8

Browse files
committed
Merge meta#8076 (746871a) into the keyboard module
meta#8076's head folds main 99ad3f6 (meta#8053, meta#8462) into the motion foundation, so the keyboard module no longer conflicts with main. One conflict: motion.doc.mjs takes meta#8076's text and keeps this branch's sentence that ChatLayout's Reduce Motion cross-fade reads `timing.curves.move`. timing.ts keeps this branch's `keyboardNotification` group, which meta#8076's next head adopts verbatim. The motion role table regenerates unchanged (45 roles), as do the CLI goldens.
2 parents 9bce44b + 746871a commit 655e2e8

49 files changed

Lines changed: 1953 additions & 317 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
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: DropdownMenu's rule that steps the root menu aside while a sub-menu's drilled-in view shows names its surface host by an internal marker instead of a universal selector. No visible or behavior change.
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] DropdownMenu, MoreMenu and ContextMenu: a menu presented as a bottom sheet (`presentation="bottom-sheet"`, or `"adaptive"` on a phone) no longer keeps its closed sheet and every item mounted while the menu is closed. The sheet mounts as it opens and unmounts after its exit, with focus still returning to the trigger. The open sheet also renders two fewer wrapper elements, with the same layout.
6+
7+
@cixzhang

‎docs/architecture/react-component-runtime.md‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ those contracts.
154154
keyboard change. A component outside Core does not ride; it commits the
155155
resting value once. Packages outside Core cannot import the hook; a
156156
component there that responds to the keyboard keeps one listener that
157-
measures as `spec:AST-099` FR2 defines, or takes the browser's keyboard report
158-
where FR8 applies, keeps focus from panning as FR4
157+
measures as `spec:AST-099` FR2 defines, keeps focus from panning as FR4
159158
does, blurs as FR5 does, applies the height through a functional style on
160159
its own elements, and follows INV3 and INV5. The hook follows INV3 and
161160
INV5.
@@ -293,13 +292,13 @@ observable-behavior predicates require review or runtime evidence. Likewise, a
293292
focused test proves only its named behavior and mutation expectation; a green
294293
component suite is not blanket conformance with every invariant.
295294

296-
| Invariant | Evidence | Failure signal |
297-
| ---------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
298-
| INV1–INV2 | Initial-render and interaction tests | Output flashes a known-wrong state, or one action is delayed or repeated through an Effect |
299-
| INV3, INV5 | StrictMode setup/cleanup and dependency-change tests | Duplicate callback, leaked work, stale subscription, or missing resynchronization |
300-
| INV1, INV4, INV6 | Ref attach/null/replacement, DOM-in-state rejection, and old-node cleanup-before-new-attach mutations | A DOM node or collection enters state, old node remains active, cleanup misses replacement, or ref mutation changes semantics silently |
301-
| INV7 | Real-browser geometry plus N-consumer observer-instance/subscription mutations | Geometry is invalid, observer instances grow with repeated consumers, one unsubscribe silences peers, or cleanup removes another subscriber |
302-
| INV8 | Owner-observable behavior across documented composition replacement; optional focused internal mechanism tests | Behavior disappears or changes owner when a documented subpart is replaced |
303-
| INV9 | Provider/external-store identity and render-count tests | Unchanged semantic payload changes identity, or snapshot identity creates a render loop |
304-
| INV10 | Shared test over every adopter of the announcement module | An adopter holding its own Effect, observer, timer, or listener for its own-content announcement |
305-
| INV11 | Source boundary check plus hook tests across StrictMode replay and unmount | A second keyboard listener or measurement in Core; a consumer reading a CSS custom property on the root or a shared ancestor for the height; an export of the hook; a component outside Core measuring by a rule other than AST-099 FR2 or, where it applies, FR8, or riding the keyboard; a listener left after unmount; a Core rider driven by JavaScript per frame or by its own transition; or more than one layout read per keyboard change |
295+
| Invariant | Evidence | Failure signal |
296+
| ---------------- | -------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
297+
| INV1–INV2 | Initial-render and interaction tests | Output flashes a known-wrong state, or one action is delayed or repeated through an Effect |
298+
| INV3, INV5 | StrictMode setup/cleanup and dependency-change tests | Duplicate callback, leaked work, stale subscription, or missing resynchronization |
299+
| INV1, INV4, INV6 | Ref attach/null/replacement, DOM-in-state rejection, and old-node cleanup-before-new-attach mutations | A DOM node or collection enters state, old node remains active, cleanup misses replacement, or ref mutation changes semantics silently |
300+
| INV7 | Real-browser geometry plus N-consumer observer-instance/subscription mutations | Geometry is invalid, observer instances grow with repeated consumers, one unsubscribe silences peers, or cleanup removes another subscriber |
301+
| INV8 | Owner-observable behavior across documented composition replacement; optional focused internal mechanism tests | Behavior disappears or changes owner when a documented subpart is replaced |
302+
| INV9 | Provider/external-store identity and render-count tests | Unchanged semantic payload changes identity, or snapshot identity creates a render loop |
303+
| INV10 | Shared test over every adopter of the announcement module | An adopter holding its own Effect, observer, timer, or listener for its own-content announcement |
304+
| INV11 | Source boundary check plus hook tests across StrictMode replay and unmount | A second keyboard listener or measurement in Core; a consumer reading a CSS custom property on the root or a shared ancestor for the height; an export of the hook; a component outside Core measuring by a rule other than AST-099 FR2, or riding the keyboard; a listener left after unmount; a Core rider driven by JavaScript per frame or by its own transition; or more than one layout read per keyboard change |

‎docs/specs/AST-094-touch-presentations/spec.md‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -592,17 +592,15 @@ that reacts to scrolling keeps hearing it.
592592
sits between a 12 pt move that opened the menu and a 14 pt move that did
593593
not. Is that bracket its justification, or does it need a finer
594594
measurement? (`owner decision`)
595-
- **OQ6 — Opening a sub-menu without a lift.** A sub-menu drills in when a
596-
finger lifts on its row (FR26, FR34). Can a held finger also open it
597-
by resting on that row, and keep picking inside it without lifting?
598-
`module:DropdownMenu/useMenuPress` ORD1a covers only a mouse.
599-
(`owner decision`)
595+
- **OQ6 — Opening a sub-menu without a lift.** Resolved by
596+
`module:DropdownMenu/useMenuPress` DEC-8: a finger resting on a sub-menu row
597+
never opens it; a lift on the row does (its FR10).
600598
- **OQ7 — The opening haptic.** UIKit plays a haptic as a held finger
601599
opens a menu; a page in iOS Safari cannot (FR23). Where does the menu record
602600
that gap? (`owner decision`)
603-
- **OQ8 — Withdrawing a tentative open.** What does a screen reader hear when
604-
a menu that a held finger opened is withdrawn by a cancel before the
605-
finger reached it? (`owner decision`)
601+
- **OQ8 — Withdrawing a tentative open.** Resolved by
602+
`module:DropdownMenu/useMenuPress` DEC-8: nothing withdraws an open, so a
603+
screen reader hears one open and one close (its AR5).
606604
- **OQ9 — Where a menu sits on a compact touch screen.** Should an anchored
607605
menu on a compact touch screen (`spec:AST-012` FR9) cover its trigger,
608606
centered on it and top-aligned with it, or bottom-aligned with it when the

0 commit comments

Comments
 (0)