Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1403 commits
Select commit Hold shift + click to select a range
dcfecc9
Merge #8067 (f9f1162c: #8522, main through #8055) into the motion-rol…
cixzhang Oct 26, 2026
2267ee5
Merge #8258 (dcfecc93: #8067 f9f1162c, main through #8055) into the e…
cixzhang Oct 26, 2026
b84bcfc
refactor(core): drop the animator's unused TRAVEL alias
cixzhang Oct 26, 2026
24336ad
Merge 2267ee5154 (#8076 with main through #8055's landing, via #8067 …
cixzhang Oct 26, 2026
739aa81
Merge dbcfc30f7a (main) as a dependency
cixzhang Oct 26, 2026
09aa3f1
Merge #8076 (2267ee5154: #8073's fold with her b600a78a, main through…
vjeux Oct 26, 2026
1346af4
docs(core): the gestures README gives a control's release the shared …
vjeux Oct 26, 2026
02ff48f
fix(interaction): a watch stamps after the newest entry, and an exit …
cixzhang Oct 26, 2026
a9208c4
test(core): the FR30 own-scroll case moves its finger past the press …
cixzhang Oct 26, 2026
1d7254a
Merge #8309 (a9208c41: #8076 2267ee51, main through #8055) into the g…
cixzhang Oct 26, 2026
7847980
test(core): the animator's tests drop an unused import and binding
cixzhang Oct 26, 2026
528dd2d
fix(interaction): after an on-screen start, the busy verdict judges t…
vjeux Oct 26, 2026
e05cdd1
Merge #8505 (02ff48fafe: a watch stamps after the newest entry, and a…
vjeux Oct 26, 2026
e1dfdff
fix(gestures): the arena reaches deliverBeganElsewhere through intern…
cixzhang Oct 26, 2026
154fa40
Merge #8315 (e1dfdff9: #8309 a9208c41, #8076 2267ee51, main through #…
cixzhang Oct 26, 2026
a68f610
Merge #8336 (154fa407: #8315 e1dfdff9 and main through #8055) into th…
cixzhang Oct 26, 2026
b814769
fix(core): under Reduce Motion a move lands only while the element is…
cixzhang Oct 26, 2026
80104ff
Merge #8270 (09aa3f1883) into #8083
vjeux Oct 26, 2026
dd24577
Merge #8083 (80104ffe93: UIKIT_PRESS and #8270 09aa3f1883) into #8084
vjeux Oct 26, 2026
20224d1
refactor(AlertDialog): import the alert's two spring rows, not the wh…
vjeux Oct 26, 2026
5a59ef2
fix(gestures): a page hold judges a new touch afresh when it reuses a…
cixzhang Oct 26, 2026
d349777
Merge #8336 (5a59ef2e: a page hold judges a reused identifier afresh)…
cixzhang Oct 26, 2026
d1b07a4
Merge #8045 (e05cdd163a, on #8505 02ff48fafe) into the recorder stand…
vjeux Oct 26, 2026
231cb4e
Merge cixzhang's #8320 head (d34977703e: her #8309-#8336 heads, #8076…
vjeux Oct 26, 2026
c9eb04a
test(gestures): a drag on a moving sheet keeps a blocking touchmove S…
vjeux Oct 26, 2026
b9f6aed
fix(gestures): a drag on a moving element keeps a blocking touchmove …
vjeux Oct 26, 2026
a265d3a
Merge #8270 (09aa3f1883: #8076 2267ee5154, as this PR already merged …
vjeux Oct 26, 2026
8df22b8
Merge #8309 (#8270 09aa3f1883 in its ancestry) into #8315
vjeux Oct 26, 2026
b191e22
Merge #8315 (#8270 09aa3f1883 in its ancestry) into #8336
vjeux Oct 26, 2026
a0f248e
Merge #8336 (#8270 09aa3f1883 in its ancestry) into #8320
vjeux Oct 26, 2026
f603195
Merge #8293 (cixzhang's #8309-#8320 heads, #8076 2267ee5154, main thr…
vjeux Oct 26, 2026
992d5d8
Merge #8320 (#8270 09aa3f1883 in its ancestry) into #8293
vjeux Oct 26, 2026
4c8c03c
test(gestures): the bare browser fixture imports the selection lock f…
vjeux Oct 26, 2026
ffafa19
Merge #8356 (cixzhang's #8309-#8320 heads, #8076 2267ee5154, main thr…
vjeux Oct 26, 2026
979865b
Merge #8358 (cixzhang's #8309-#8320 heads, #8076 2267ee5154, main thr…
vjeux Oct 26, 2026
f8c8db8
test(core): a held DropdownMenu trigger keeps FR29's 13 pt drift allo…
vjeux Oct 26, 2026
0b1e908
fix(core): a held DropdownMenu trigger keeps FR29's 13 pt drift allow…
vjeux Oct 26, 2026
88c0d62
test(core): the click guard stays ahead of a page's later window list…
vjeux Oct 26, 2026
a6cb3b0
fix(core): the click guard installs its click listener once per window
vjeux Oct 26, 2026
595b5c3
Merge #8076 (1346af4990: the README's control release and test list, …
vjeux Oct 26, 2026
14e78e0
Merge #8270 (09aa3f1883 with #8076 1346af4990: the README's control r…
vjeux Oct 26, 2026
363a213
Merge #8309 (#8270 09aa3f1883, #8076 1346af4990) into #8315
vjeux Oct 26, 2026
3044718
Merge #8315 (#8270 09aa3f1883, #8076 1346af4990) into #8336
vjeux Oct 26, 2026
1b50337
Merge #8336 (#8270 09aa3f1883, #8076 1346af4990) into #8320
vjeux Oct 26, 2026
499d3ba
Merge #8320 (#8270 09aa3f1883, #8076 1346af4990) into #8293
vjeux Oct 26, 2026
9eec830
Merge #8358 (#8076 1346af4990) into #8360
vjeux Oct 26, 2026
050eaf0
Merge #8293 (#8076 1346af4990) into #8356
vjeux Oct 26, 2026
3d08dbc
Merge #8356 (#8076 1346af4990) into #8358
vjeux Oct 26, 2026
51688cd
fix(interaction): waitForAnimation and a watch's started() stand down…
vjeux Oct 26, 2026
3ebfa58
Merge 20224d1b80 (#8084) as a dependency
vjeux Oct 26, 2026
356c276
Merge 6d4977daba (#8346) as a dependency
vjeux Oct 26, 2026
274ee1b
fix(core): a handle's stop freezes its waiting Reduce Motion travel w…
cixzhang Oct 26, 2026
93c611d
Merge main (#8505 landed) into the storyboards
cixzhang Oct 26, 2026
79aa498
Merge #8348 (main with #8505 landed) into the frame evidence
cixzhang Oct 26, 2026
63218c8
Merge #8045 (main with #8505 landed) into the recorder stand-down
cixzhang Oct 26, 2026
ebbc03f
test(core): the UIKit table carries no stray-click guess
vjeux Oct 26, 2026
e606945
refactor(core): the UIKit table drops UIKIT_CLICK
vjeux Oct 26, 2026
6f4a748
chore(core): the click-guard changeset is an internal note
vjeux Oct 26, 2026
0400cb2
Merge #8446 (63218c8a: the harness line on main 42a30b47 with #8505) …
cixzhang Oct 26, 2026
6c68865
Merge 0400cb2e4d (#8076 with main through #8055's landing) as a depen…
cixzhang Oct 26, 2026
a865057
Merge 6c688655c6 (#8270 with #8076 0400cb2e and main 42a30b47) as a d…
cixzhang Oct 26, 2026
ec3283b
Merge #8270 (6c688655c6) into #8083
vjeux Oct 26, 2026
4550708
Merge #8083 (ec3283b229: #8270 6c688655c6) into #8084
vjeux Oct 26, 2026
d6a5845
Merge #8309 (a8650574: #8076 0400cb2e with the harness line on main) …
cixzhang Oct 26, 2026
7f36229
fix(core): a carried Reduce Motion move keeps its own call
cixzhang Oct 26, 2026
67fc000
test(gestures): the host never writes a touch-action wider than the a…
vjeux Oct 26, 2026
0648297
fix(gestures): the host reads an author's touch-action in the next fr…
vjeux Oct 26, 2026
610b9c1
test(gestures): the press tracker bundle carries only the UIKit group…
vjeux Oct 26, 2026
672ed7d
perf(gestures): the press tracker imports only the UIKit groups it reads
vjeux Oct 26, 2026
dfcb2b4
test(gestures): a press tracker disabled under the finger reports not…
vjeux Oct 26, 2026
fbf8258
fix(gestures): a press tracker disabled under the finger ends its pre…
vjeux Oct 26, 2026
8aa1d23
Merge #8309 (the next-frame author read; the press tracker's per-grou…
vjeux Oct 26, 2026
2c2397b
Merge #8315 (d6a58453: #8309 a8650574, #8076 0400cb2e with #8446, mai…
cixzhang Oct 26, 2026
7f7b0e8
Merge #8336 (2c2397b9: #8315 d6a58453 and main 42a30b47) into the are…
cixzhang Oct 26, 2026
500f3ca
docs(gestures): the haptic switch's label rule says what the code does
vjeux Oct 26, 2026
38aa181
Merge #8315 (#8309's next-frame author read; a tracker disabled under…
vjeux Oct 26, 2026
8588156
test(gestures): the host-line cases take the frame the host writes to…
vjeux Oct 26, 2026
9ac98bb
Merge #8336 (the next-frame author read; a tracker disabled under the…
vjeux Oct 26, 2026
e9cbff0
docs(gestures): the hook modules name what each Effect synchronizes
vjeux Oct 26, 2026
4639282
test(gestures): usePressTracker's bundle carries only the UIKit group…
vjeux Oct 26, 2026
7a67307
perf(gestures): usePressTracker imports only the control group it reads
vjeux Oct 26, 2026
9f9772d
Merge #8320 (#8270 6c688655c6; the next-frame author read; a tracker …
vjeux Oct 26, 2026
06d6c01
Merge #8293 (#8270 6c688655c6) into #8356
vjeux Oct 26, 2026
f368b31
Merge #8356 (#8270 6c688655c6) into #8358
vjeux Oct 26, 2026
374778d
Merge #8358 (#8270 6c688655c6) into #8360
vjeux Oct 26, 2026
5ad1170
fix(interaction): the WebKit container runs as the invoking user unde…
cixzhang Oct 26, 2026
49460a6
docs(interaction): a traced waitForAnimation on a CSS @keyframes anim…
cixzhang Oct 26, 2026
1a40c3a
fix(core): a held call still finds its start; a caught dismissal fade…
cixzhang Oct 26, 2026
eef7532
test(gestures): the host marks a recognizer's touch-action under a ru…
vjeux Oct 26, 2026
38ea7d9
fix(interaction): rootless docker runs the WebKit container without -…
cixzhang Oct 26, 2026
7c8aea9
test(gestures): in a browser, the host's touch-action is in force fro…
vjeux Oct 26, 2026
fd4d2c4
perf(gestures): the host marks a recognizer's touch-action under a ru…
vjeux Oct 26, 2026
19797f8
Merge #8309 (the touch-action mark under a rule an author rule outran…
vjeux Oct 26, 2026
57db055
Merge #8315 (#8309's touch-action mark under a rule an author rule ou…
vjeux Oct 26, 2026
b9a08c5
test(gestures): the host-line cases read the host's touch-action mark
vjeux Oct 26, 2026
5ff3b62
Merge #8336 (#8309's touch-action mark under a rule an author rule ou…
vjeux Oct 26, 2026
d5485a7
Merge #8320 (#8309's touch-action mark under a rule an author rule ou…
vjeux Oct 26, 2026
af46f51
Merge #8293 (#8309's touch-action mark) into #8356
vjeux Oct 26, 2026
db17a90
Merge #8356 (#8309's touch-action mark) into #8358
vjeux Oct 26, 2026
6360b11
Merge #8358 (#8309's touch-action mark) into #8360
vjeux Oct 26, 2026
d77ea18
test(AlertDialog): let the gesture host's attach frame run before cou…
vjeux Oct 26, 2026
041eb3d
Merge #8083 (d77ea18195: the action-group test runs the host's attach…
vjeux Oct 26, 2026
9bf354f
test(gestures): a hold's selection lock suppresses a link's callout, …
vjeux Oct 26, 2026
730b103
fix(gestures): a hold's selection lock suppresses a link's callout, a…
vjeux Oct 26, 2026
215f031
fix(core): a waiting Reduce Motion call whose own opacity a later cal…
cixzhang Oct 26, 2026
7f0f5c4
docs(interaction): waitForAnimation's JSDoc names the CSS @keyframes …
vjeux Oct 26, 2026
5712c49
Merge #8348 (38ea7d9c: rootless docker, WebKit container user) into t…
cixzhang Oct 26, 2026
ca36472
Merge 041eb3de9c (#8084) as a dependency
vjeux Oct 26, 2026
4045092
chore(interaction): move four instruments out of the frame evidence
cixzhang Oct 26, 2026
6762cc5
chore(interaction): move rendering traces and the long-task log out o…
cixzhang Oct 26, 2026
03058f6
chore(interaction): move the compositor presentation record out of th…
cixzhang Oct 26, 2026
bf5950f
feat(interaction): Chromium rendering traces, the compositor presenta…
cixzhang Oct 26, 2026
d12ed28
feat(interaction): cast filmstrips, rect sampling, a Storybook highli…
cixzhang Oct 26, 2026
35f86f8
Merge 6d4977daba (#8346) into 041eb3de9c (#8084)
vjeux Oct 26, 2026
1e0528e
Merge 35f86f88c2 (#8084 with #8346) as a dependency
vjeux Oct 26, 2026
4574489
Merge #8270 (the selection lock's engine split; a link's callout supp…
vjeux Oct 26, 2026
6d5eaf1
Merge #8309 (#8270's selection-lock split) into #8315
vjeux Oct 26, 2026
eae13d0
Merge #8315 (#8270's selection-lock split) into #8336
vjeux Oct 26, 2026
60bcd6f
Merge #8336 (#8270's selection-lock split) into #8320
vjeux Oct 26, 2026
8e71835
Merge #8320 (#8270's selection-lock split) into #8293
vjeux Oct 26, 2026
f192d6e
Merge #8293 (#8270's selection-lock split) into #8356
vjeux Oct 26, 2026
6028a4a
Merge #8358 (#8270's selection-lock split) into #8360
vjeux Oct 26, 2026
2a45217
Merge #8356 (#8270's selection-lock split) into #8358
vjeux Oct 26, 2026
61de06c
Merge #8549 (d12ed280: the frame evidence split into #8045, #8548 and…
cixzhang Oct 26, 2026
85b54e4
test(core): a held DropdownMenu trigger keeps FR29's 13 pt only where…
vjeux Oct 26, 2026
1715b48
fix(core): a held DropdownMenu trigger keeps FR29's 13 pt only where …
vjeux Oct 26, 2026
c1c46dc
fix(core): a held call keeps reading until it has a start
cixzhang Oct 26, 2026
8e0d69f
test(gestures): usePressTracker's lock case reads a refused selectstart
vjeux Oct 26, 2026
0c90358
Merge #8336 (usePressTracker's lock case reads a refused selectstart)…
vjeux Oct 26, 2026
752cfec
Merge #8320 into #8293
vjeux Oct 26, 2026
11b0333
Merge #8293 into #8356
vjeux Oct 26, 2026
d21a0e2
Merge #8356 into #8358
vjeux Oct 26, 2026
40966b1
Merge #8358 into #8360
vjeux Oct 26, 2026
d3275e1
docs(gestures): the README says a press tracker disabled under a fing…
vjeux Oct 26, 2026
f8fbbd6
Merge #8315 (the README on a press tracker disabled under a finger) i…
vjeux Oct 26, 2026
91cae43
Merge #8336 into #8320
vjeux Oct 26, 2026
82cc875
Merge #8320 into #8293
vjeux Oct 26, 2026
7409502
Merge #8293 into #8356
vjeux Oct 26, 2026
988471b
Merge #8356 into #8358
vjeux Oct 26, 2026
59761df
Merge #8358 into #8360
vjeux Oct 26, 2026
daf723b
Merge 61de06c700 (#8446: the split harness line with #8348's containe…
cixzhang Oct 26, 2026
a2cf054
Merge #8309 (daf723b8: the harness line split, #8446 61de06c7) into t…
cixzhang Oct 26, 2026
bae8ff7
Merge #8309's window (#8270's selection-lock split, the touch-action …
vjeux Oct 26, 2026
57f866d
Merge #8315's window (the disabled-under-finger README note, #8309's …
vjeux Oct 26, 2026
fd8bf33
Merge #8309 (cixzhang's daf723b835 with the window) into #8315
vjeux Oct 26, 2026
6d10c7d
Merge #8315 (cixzhang's harness merge; the window) into #8336
vjeux Oct 26, 2026
0b41b85
Merge #8336 into #8320
vjeux Oct 26, 2026
856a3b5
Merge #8320 into #8293
vjeux Oct 26, 2026
d02629e
Merge #8293 into #8356
vjeux Oct 26, 2026
245cb1f
Merge #8356 into #8358
vjeux Oct 26, 2026
4aeeb04
Merge #8358 into #8360
vjeux Oct 26, 2026
4715604
fix(gestures): an idle per-event press tracker leaves no page listener
cixzhang Oct 26, 2026
95a3513
Merge #8336 (an idle per-event press tracker leaves no page listener)…
cixzhang Oct 26, 2026
92d6477
fix(core): decay takes touchRelease; a take-back fades straight back;…
cixzhang Oct 26, 2026
5d7e96a
docs(gestures): the host header, AttachOptions and the README state a…
cixzhang Oct 26, 2026
4e50cdd
Merge #8336 (the per-event press tracker's listener lifetime, documen…
cixzhang Oct 26, 2026
45a454b
docs(core): the animator header and changeset name the touch-release …
cixzhang Oct 26, 2026
3e3c4e7
Merge main (#8348 landed) into the frame evidence
cixzhang Oct 26, 2026
a7ffe6e
Merge #8045 (main with #8348 landed) into the rendering traces
cixzhang Oct 26, 2026
36abaa1
Merge #8548 (main with #8348 landed) into the instruments
cixzhang Oct 26, 2026
2931530
Merge #8549 (main with #8348 landed) into the recorder stand-down
cixzhang Oct 26, 2026
27fb158
fix(gestures): a finger-scroll watch installs no page listener where …
cixzhang Oct 26, 2026
5f625ff
Merge #8446 (2931530b12: the split harness line, with main's #8348) i…
vjeux Oct 26, 2026
1503d63
test(AlertDialog): a held finger's refused selection is checked by ei…
vjeux Oct 26, 2026
1fafd5c
Merge #8083 (1503d63c1c: the held finger's refused selection by eithe…
vjeux Oct 26, 2026
c11f1f0
Merge #8336 (a finger-scroll watch installs no page listener under a …
cixzhang Oct 26, 2026
1286a82
Merge 2931530b12 (#8446: the harness line on main with #8348 landed) …
cixzhang Oct 26, 2026
1910a64
Merge #8309 (1286a827: the harness line on main, #8348 landed) into t…
cixzhang Oct 26, 2026
8bc79c0
Merge #8270 (#8446 2931530b12, the same dependency) into #8309
vjeux Oct 26, 2026
e134fff
test(gestures): a finger the window blur cancelled lifts on nothing
vjeux Oct 26, 2026
b6869cf
fix(gestures): a finger the window blur cancelled lifts on nothing
vjeux Oct 26, 2026
ab343f5
test(gestures): a recognizer's own-scroll exemption lasts until the n…
vjeux Oct 26, 2026
ff306bc
fix(gestures): a recognizer's own-scroll exemption lasts until the ne…
vjeux Oct 26, 2026
ed0b174
test(gestures): a detach that leaves only disabled recognizers stops …
vjeux Oct 26, 2026
1be6b6c
fix(gestures): a detach that leaves only disabled recognizers stops t…
vjeux Oct 26, 2026
b4e0adb
Merge #8446 (2931530b: the harness line on main with #8348) into the …
cixzhang Oct 26, 2026
2b264d3
test(core): uikit.test.ts matches bindings in the file text again
cixzhang Oct 26, 2026
ecb9f20
Merge #8056 (2b264d3d: the held call's start, the Reduce Motion landi…
vjeux Oct 26, 2026
62ecda1
test(core): browser proofs that a Reduce Motion dip held before its f…
vjeux Oct 26, 2026
53c11ea
Merge #8315 (1910a646: #8309 1286a827, the harness line on main with …
cixzhang Oct 26, 2026
0e4d0fd
Merge #8336 (53c11ea9: #8315 1910a646 with main) into the arena fixes
cixzhang Oct 26, 2026
ee3f21c
Merge #8309 (#8270's #8446 2931530b12, the same dependency) into #8315
vjeux Oct 26, 2026
9525df5
Merge #8315 (#8270's #8446 2931530b12, the same dependency) into #8336
vjeux Oct 26, 2026
822cd31
Merge #8336 (#8270's #8446 2931530b12, the same dependency) into #8320
vjeux Oct 26, 2026
786b192
Merge #8320 (#8446 2931530b12; cixzhang's per-press press-tracker lis…
vjeux Oct 26, 2026
d4e96d2
Merge #8293 (#8446 2931530b12; cixzhang's per-press press-tracker lis…
vjeux Oct 26, 2026
742e146
Merge #8356 (#8446 2931530b12; cixzhang's per-press press-tracker lis…
vjeux Oct 26, 2026
0e5ff71
Merge #8358 (#8446 2931530b12; cixzhang's per-press press-tracker lis…
vjeux Oct 26, 2026
26345b2
Merge #8309 (blur, own-scroll exemption, detach re-sync) into #8315
vjeux Oct 26, 2026
8110543
Merge #8336 (blur, own-scroll exemption, detach re-sync) into #8320
vjeux Oct 26, 2026
7961f56
Merge #8315 (blur, own-scroll exemption, detach re-sync) into #8336
vjeux Oct 26, 2026
9fe46ac
Merge #8320 (blur, own-scroll exemption, detach re-sync) into #8293
vjeux Oct 26, 2026
a95cc08
Merge #8293 (blur, own-scroll exemption, detach re-sync) into #8356
vjeux Oct 26, 2026
8eaa955
Merge #8356 (blur, own-scroll exemption, detach re-sync) into #8358
vjeux Oct 26, 2026
846d7e7
Merge #8358 (blur, own-scroll exemption, detach re-sync) into #8360
vjeux Oct 26, 2026
66c651f
fix(interaction): a watch taken inside a trace right after a style ch…
cixzhang Oct 26, 2026
4e0c5b1
Helper base for #8083: the merge of its parents only, #8270 5f625ffaa…
vjeux Oct 26, 2026
41e4e0d
Merge #8270 (5f625ffaa1) and #8076 (62ecda1c34) into #8083
vjeux Oct 26, 2026
1489758
Merge #8083 (41e4e0ddee: #8270 5f625ffaa1 + #8076 62ecda1c34) into #8084
vjeux Oct 26, 2026
5613501
docs(interaction): the README's evidence list and busy recipe match w…
cixzhang Oct 26, 2026
a149b9c
Merge #8045 (README evidence list and FR5 block) into the rendering t…
cixzhang Oct 26, 2026
852d55c
fix(interaction): readLongTasks fails closed, and the README lists ev…
cixzhang Oct 26, 2026
4099d7e
Merge #8548 (readLongTasks fails closed) into the instruments
cixzhang Oct 26, 2026
6ccd5b4
fix(interaction): castStoryboard takes no clip it would ignore
cixzhang Oct 26, 2026
40c6be3
Merge #8549 (castStoryboard's clip, readLongTasks fails closed, READM…
cixzhang Oct 26, 2026
87e516b
docs(interaction): a traced watch restyles its element; take it befor…
cixzhang Oct 26, 2026
d4369f6
fix(gestures): a recognizer's own scroll is never a finger's; comment…
cixzhang Oct 26, 2026
704fb38
Merge 87e516b545 (#8446: CodeBunny fixes up the harness line) as a de…
cixzhang Oct 26, 2026
a475b8f
Merge 6d4977daba (#8346) into 1489758549 (#8084)
vjeux Oct 26, 2026
52a9a50
Merge a475b8f086 (#8084, #8346) as a dependency
vjeux Oct 26, 2026
60763a6
fix(gestures): the host's touch-action rules sit in the reset cascade…
cixzhang Oct 26, 2026
851525b
Merge #8309 (60763a66: touch-action rules in @layer reset, #8446 87e5…
cixzhang Oct 26, 2026
463dd67
feat(gestures): a recognizer created with claimsTouches: false is a w…
cixzhang Oct 26, 2026
89792ab
Merge #8315 (851525bc: #8309 60763a66, touch-action rules in @layer r…
cixzhang Oct 26, 2026
73bcd28
Merge #8315 (851525bc: #8309 60763a66, touch-action rules in @layer r…
cixzhang Oct 26, 2026
5c58ae5
Merge the gesture watcher (its own PR now) into the host line
cixzhang Oct 26, 2026
bf6a6a0
Merge #8336 (5c58ae58: #8315 851525bc, the watcher split into #8589) …
cixzhang Oct 26, 2026
bce5d90
fix(interaction): the compositor record refuses another open page
cixzhang Oct 26, 2026
7613c98
Merge #8548 (the compositor record refuses another page) into the ins…
cixzhang Oct 26, 2026
f79b8a9
fix(interaction): resolve ASTRYX_WEBKIT_SHADER_CACHE to a host path
cixzhang Oct 26, 2026
a1e7176
Merge #8549 (compositor record refuses another page, shader cache pat…
cixzhang Oct 26, 2026
ff365ff
docs(interaction): a traced waitForRest restyles a running element on…
cixzhang Oct 26, 2026
95bead4
Merge #8320 (cixzhang's bf6a6a0174: own scroll never a finger's, touc…
vjeux Oct 26, 2026
0985ac7
Merge #8293 (cixzhang's #8320 bf6a6a0174) into #8356
vjeux Oct 26, 2026
bac4669
fix(interaction): a window that delivered under four frames is judged…
cixzhang Oct 26, 2026
f1c5125
Merge n8045 (the busy verdict judges a thin window against its span) …
cixzhang Oct 26, 2026
bd50829
Merge n8548 (the busy verdict judges a thin window against its span) …
cixzhang Oct 26, 2026
f405e7f
Merge n8549 (the busy verdict judges a thin window against its span) …
cixzhang Oct 26, 2026
12a9dc3
test(gestures): the selection lock's old gestures path still resolves
vjeux Oct 26, 2026
0be69a5
fix(gestures): the selection lock's old gestures path re-exports it f…
vjeux Oct 26, 2026
c91f97e
Merge #8356 (the selection lock's transition re-export; cixzhang's #8…
vjeux Oct 26, 2026
6225083
Merge #8358 (the selection lock's transition re-export) into #8360
vjeux Oct 26, 2026
959f1e1
Merge f405e7fa31 (#8446: CodeBunny's #8045 round up the harness line)…
cixzhang Oct 26, 2026
4e19448
Merge #8309 (959f1e1e: #8446 f405e7fa) into the gesture hook fixes
cixzhang Oct 26, 2026
21a1df9
docs(gestures): a watcher needs no manageStyle: false
cixzhang Oct 26, 2026
d0d7f6a
Merge #8315 (4e19448b: #8309 959f1e1e) into the gesture watcher
cixzhang Oct 26, 2026
7455721
Merge #8315 (4e19448b: #8309 959f1e1e) into the host line
cixzhang Oct 26, 2026
029e4fd
Merge #8589 (a watcher needs no manageStyle: false) into the host line
cixzhang Oct 26, 2026
cd49a87
Merge #8336 (#8315 4e19448b, #8589's README) into the arena fixes
cixzhang Oct 26, 2026
32d2acc
Merge #8320 (cixzhang's cd49a87223: #8446 f405e7fa31, #8589's README)…
vjeux Oct 26, 2026
af0a0e0
Merge #8293 (cixzhang's #8320 cd49a87223) into #8356
vjeux Oct 26, 2026
3ee997f
Merge #8356 (cixzhang's #8320 cd49a87223) into #8358
vjeux Oct 26, 2026
559ab88
Merge #8358 (cixzhang's #8320 cd49a87223) into #8360
vjeux Oct 26, 2026
94e179f
fix(AlertDialog): the alert's springs play through the internal motio…
cixzhang Oct 26, 2026
56500ed
test(useActionGroupTracking): count only the fade's own timer when tr…
vjeux Oct 26, 2026
88c413b
Merge #8083 (56500ed399: the action-group test counts only the fade's…
vjeux Oct 26, 2026
f3e51b5
fix(AlertDialog): register only the alert's own two springs as roles,…
cixzhang Oct 26, 2026
113b697
docs(AlertDialog): the first-frame comment claims only what is proven…
cixzhang Oct 26, 2026
24627e8
Merge 6d4977daba (#8346) and 559ab88d6a (#8360) into 113b697c70 (#8084)
vjeux Oct 26, 2026
b0106ad
Merge 24627e8151 (#8084, #8346, #8360) as a dependency
vjeux Oct 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/action-group-tracker-core.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[internal] AlertDialog's touch tracking runs on the shared action-group tracker, the one any gesture recognizer can drive (a menu tracking the finger that opened it from its trigger, a segmented control, a page control). AlertDialog's behavior is unchanged.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/action-group-tracker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[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.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/alertdialog-touch-action-tracking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[fix] AlertDialog: on a touch screen, under a finger or a pen, the two actions are tracked as one group, the way iOS tracks an alert's actions. A finger that lands on one action and slides to the other now runs the action it lifts on. Before, iOS Safari ran the action the finger first touched (Delete, when the finger slid to Cancel), and other browsers ran nothing and left the alert open. The touched action highlights as soon as it is touched instead of 150 ms later, the highlight follows the finger between the actions, and lifting off both still runs nothing. A mouse, the keyboard and assistive technology keep each button's own click, and text stays selectable with a mouse. To keep the previous behavior under a finger, pass the new `presentation="dialog"`, which keeps the dialog a mouse gets on every device; the default is `presentation="adaptive"`.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/alertdialog-touch-motion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[feat] AlertDialog: under a finger the alert appears and leaves the way an iOS alert does. It scales down into place from 1.2 while it and the dimming fade in, and it fades out with the dimming when it closes, on the alert's measured spring; the animation keeps running when the page is busy. While it appears a touch does nothing (keys and assistive technology still act), and while it leaves nothing reaches it: a touch, a click, a key or an assistive-technology activation does nothing. With reduced motion it only cross-fades. Defaults under a finger: the width with no `width` prop goes from 400 px to UIKit's 320 px, and this motion replaces the Dialog's entrance (rising 16 px and scaling up from 0.95 while it fades in) and its exit. With a mouse nothing changes, and `presentation="dialog"` keeps the previous motion and width under a finger too.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/build-stylex-cross-file-consts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/build': patch
---

[fix] `astryxStylex` resolves `defineConsts` values read from another file. With the `{stylexOptions}` form (the one Storybook uses), a file that read only constants from a `.stylex.ts` module lost that import once StyleX compiled it, so the constants never reached the CSS: a constant used as a media-query key failed the build ("Invalid empty selector") and one used as a value shipped as a custom property nothing declares. In either form, a constant defined on the other side of the layer split, or in an Astryx package (compiled with the library class-name prefix) and read from an app file (compiled with its own), stayed unresolved.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/click-guard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: the gesture recognizers and the menu press model share one guard for the browser's click after a gesture that already acted, swallowing it for 400ms or until the next press. Keyboard and assistive-technology clicks (`detail` 0) always pass.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-browser-negotiation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: touch-action derivation, the native scroll probe and haptics for the gesture system. Not exported from the package entry point; no component uses them yet.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AlertDialog's gesture host applies the derived touch-action and probes native scroll on tracked touches, so "no component uses them yet" is no longer true at this head.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This note belongs to the gesture system's own pull request, where it's being corrected.


@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-hook-fixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: the gesture hooks call nothing back after unmount; `usePressTracker` brakes with the host by default and keeps one tracker, so an option change or a new ref never drops a press in progress; the recognizer's arena plumbing is `protected`. Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-host-fixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: gesture host fixes from review. A page scroll under a still finger keeps the press and its click; watchers and touches nothing can claim get passive listeners only; a claimed pen holds only its own stylus touches; an element's own `touch-action` is never widened; slotted content scrolls with its shadow-tree scroller. Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-host-owner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: the gesture host becomes the one document-level touch owner: the finger count, touch gates, and a kept press for continuous-tracking controls, whose element gets `touch-action: manipulation` where the pointer is coarse. A scroll lock's page hold and the finger-scroll watch keep their own listeners and ask the host only about the touches it owns. A second finger fails a one-finger pan that has not claimed, so the page can pinch. Where the primary pointer is fine, the host attaches nothing and registers no listener, following the pointer when it changes; a recognizer that reads each event's pointer itself opts out with `perEventPointer`, and a press tracker with it paints a finger's press feedback only, with no control event and no mouse or pen press. A press tracker whose hold acts (a stepper's hold-repeat) can bring a selection lock for its presses, as a recognizer can. Internal, for the touch components that adopt them; not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-host.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: the gesture system's DOM host (claims, click suppression, the browser's takeover, the pointer behind a contact). Not exported from the package entry point.

@vjeux
2 changes: 1 addition & 1 deletion .changeset/gesture-pan.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
'@astryxdesign/core': patch
---

[chore] Internal: the pan gesture recognizer, with UIKit's measured hysteresis and velocity filter. Not exported from the package entry point; no component uses it yet.
[chore] Internal: the pan gesture recognizer, with UIKit's measured hysteresis and velocity filter. Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-press-tracking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: UIControl press tracking with control and cell profiles and the gesture hooks, with every press painter writing `data-astryx-press` through one internal writer in `utils/pressFeedback.ts`. Not exported from the package entry point; no component uses them yet.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AlertDialog uses the gesture hooks through useGestureRecognizer (via useActionGroupTracking), so this note should say so instead of "no component uses them yet".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This note belongs to the gesture system's own pull request, where it's being corrected.


@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: the gesture system's README for component authors, with its browser proof in Chromium and WebKit.

@vjeux
2 changes: 1 addition & 1 deletion .changeset/gesture-recognizer-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
'@astryxdesign/core': patch
---

[chore] Internal: the gesture recognizer core for touch presentations: UIKit's recognizer state machine and the arena that settles which recognizer owns a touch. Not exported from the package entry point; no component uses it yet.
[chore] Internal: the gesture recognizer core for touch presentations: UIKit's recognizer state machine and the arena that settles which recognizer owns a touch. Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-recognizer-fixes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: gesture recognizer and arena fixes from review; a pan claims nothing before it begins at 10 pt; one velocity tracker for every gesture (`spec:AST-100`: UIKit's measured blend, a scrolling surface's release through the pan's `scrollVelocity()`, and FR2's release rules). Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-swipe-pinch-rotation-edge-hover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: swipe, pinch, rotation, screen-edge pan and hover gesture recognizers. Not exported from the package entry point; no component uses them yet.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-watcher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: a recognizer created with `claimsTouches: false` is a watcher: passive listeners only, simultaneous with every recognizer, and it follows a touch the browser takes for a scroll to the lift. Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/input-stream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[fix] The touch press feedback and the gesture recognizers now listen on the window's capture phase through one shared input stream: one passive listener per event type for both. An app's own capture-phase `stopPropagation` at the document no longer starves them, and a page of pressables registers no listener that can hold a scroll.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/long-press-one-source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[fix] `useLongPress` (ContextMenu's long press, and the held finger that opens a menu from its trigger) now cancels when the finger travels more than 10px from where it landed, measured as a distance, as UIKit's long press does. Before, it allowed 10px on each axis, so a diagonal drift of up to about 14px kept the press. Its duration and tolerance now come from the same source as the long-press gesture recognizer.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/presented-hit-testing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] On iOS, a touch on an element the compositor animator is moving reaches what is drawn: the animator reports each moving element's offset from its layout box, and the gesture host sends the touch, press bounds and the tap's click there instead of to the layout position iOS WebKit hit-tests.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/reduced-motion-record.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: Reduce Motion for the touch presentations follows design:reduced-motion beyond the animator too. `reducedMotionFade()` gives code beside the animator the animator's own fade (an opacity-only 200 ms cross-fade on a coarse pointer or after a touch release, at once on any other pointer), `animator.reducedMotion()` reports which form a change takes for feedback that plays no fade of its own, and `reducedMotion.stylex.ts` holds the fade's constants for StyleX transitions. The fade's length is not a theme motion role. Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/touch-selection-lock-gestures.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: the gesture host applies a recognizer's own `selectionLock` to that recognizer's contact and imports no lock itself; a long press brings one only when it has a hold (a `minimumPressDuration` above 0), and `selectionLock: null` opts out. Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/touch-selection-lock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[fix] Where the primary pointer is fine (a mouse, a trackpad, a touchscreen laptop, a desktop pen tablet), the press feedback controller no longer registers a touch listener: it reads the primary pointer at the first finger or pen press and keeps its `touchcancel` listener only while that pointer is coarse.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/uikit-motion-animator-curves.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: the touch presentations' animator plays any closed-form curve (such as a spring chasing a moving target) through `play`, with the same presentation values, velocities, stop and shared clock as a spring, and the Reduce Motion policy. Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/uikit-motion-animator-pseudo-element.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: the touch presentations' animator drives a pseudo-element such as a dialog's ::backdrop: a static filling animation holds its value after a curve ends and after `set`, a custom property on its host promotes it, and a Reduce Motion dip borrows and hands back the pseudo-element's own opacity. Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/uikit-motion-animator-reduced-motion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: the touch presentations' animator follows design:reduced-motion (under Reduce Motion, an opacity-only cross-fade of 200 ms on a coarse pointer or after a touch release and an immediate change on any other pointer, with no option or theme value that keeps travel or lengthens the fade; an entrance or exit role orients a slide that changes no opacity), decided by its own planner module, and starts a call from rest when the browser commits it, as Core Animation does. Not exported from the package entry point.

@vjeux
2 changes: 1 addition & 1 deletion .changeset/uikit-motion-animator.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
'@astryxdesign/core': patch
---

[chore] Internal: a compositor animator for touch presentations. It plays UIKit's springs, and scroll coasts (built by a separate coast module, so a surface that never coasts does not carry them; `decay` plays a release's momentum, and under Reduce Motion cross-fades a spring back from past an edge) as Web Animations on translate, rotate, scale and opacity, so they keep running while JavaScript is busy, and reads values and velocities back from the curves for interruption, retargeting and Reduce Motion cross-fades. Not exported from the package entry point; no component uses it yet.
[chore] Internal: a compositor animator for touch presentations. It plays UIKit's springs, and scroll coasts (built by a separate coast module, so a surface that never coasts does not carry them; `decay` plays momentum, and sends a spring back from past an edge through the Reduce Motion policy: a cross-fade on a coarse pointer or after a touch release, at once elsewhere) as Web Animations on translate, rotate, scale and opacity, so they keep running while JavaScript is busy, and reads values and velocities back from the curves for interruption, retargeting and Reduce Motion cross-fades. Not exported from the package entry point.

@vjeux
2 changes: 1 addition & 1 deletion .changeset/uikit-motion-math.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
'@astryxdesign/core': patch
---

[chore] Internal: the spring, decay, rubber-band and projection math of UIKit for touch presentations, as pure functions checked against an independent integration and against values read from UIKit. Not exported from the package entry point; no component uses it yet.
[chore] Internal: the spring, decay, rubber-band and projection math of UIKit for touch presentations, as pure functions checked against an independent integration and against values read from UIKit. Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/uikit-motion-use-animator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: useAnimator, a React wrapper around the touch presentations' animator that never re-renders per frame, and browser proofs on the interaction harness that the animator's motion keeps running through a blocked main thread in Chromium and WebKit. Not exported from the package entry point.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/use-finger-scroll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: `useFingerScroll(scroller)` tells a finger's scroll from the program's, and the gestures README gains a guide to migrating a raw-touch drag onto the recognizers. Internal to the touch components: not exported from the package entry point or the gestures barrel.

@vjeux
29 changes: 28 additions & 1 deletion apps/docsite/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@
* @position Next.js configuration for the existing Vercel docsite deployment.
*/

import {existsSync, readFileSync, readdirSync} from 'node:fs';
import {existsSync, readFileSync, readdirSync, realpathSync} from 'node:fs';
import {createRequire} from 'node:module';
import {resolve} from 'node:path';

const coreInternalModules = createRequire(import.meta.url)(
'../../scripts/core-internal-modules.cjs',
);

const playgroundCookieCompatibility = readFileSync(
resolve(
import.meta.dirname,
Expand Down Expand Up @@ -156,6 +161,28 @@ const nextConfig = {
{'@astryxdesign/cli/api': 'module @astryxdesign/cli/api'},
];
}
// Lab's build imports core's internal motion and gesture modules by their
// module paths, which core's "exports" do not list. Resolve each to the
// file core's own built components import, so a page keeps one gesture
// host and one animator per element.
const coreDir = realpathSync(
resolve(import.meta.dirname, 'node_modules/@astryxdesign/core'),
);
config.plugins.push(
new webpack.NormalModuleReplacementPlugin(
coreInternalModules.CORE_INTERNAL_SPECIFIER,
resource => {
const file = coreInternalModules.resolveCoreInternal(
resource.request,
{coreDir},
);
if (file != null) {
resource.request = file;
}
},
),
);

// Webpack's CSS @import resolver doesn't follow package.json "exports".
// Map each theme's /theme.css subpath to the actual dist file.
const themesDir = resolve(import.meta.dirname, '../../packages/themes');
Expand Down
25 changes: 25 additions & 0 deletions apps/sandbox/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import path from 'node:path';
import {fileURLToPath} from 'node:url';
import {createRequire} from 'node:module';
import stylexResolution from '../../scripts/stylex-module-resolution.cjs';
import coreInternalModules from '../../scripts/core-internal-modules.cjs';
import {categories} from './src/app/sandboxPages';
import {
discoverRoutes,
Expand All @@ -33,6 +34,29 @@ let routes = discoverRoutes(
categories.map(category => category.slug),
);

/**
* Lab's build imports core's internal motion and gesture modules by their
* module paths, which core's `exports` do not list. Resolve each to the file
* core's own built components import (its source under ASTRYX_SOURCE), so the
* page keeps one gesture host and one animator per element.
*/
function coreInternalModulePaths(): Plugin {
const coreDir = fs.realpathSync(
path.join(appDir, 'node_modules/@astryxdesign/core'),
);
const source = process.env.ASTRYX_SOURCE === '1';
return {
name: 'sandbox-core-internal-modules',
enforce: 'pre',
resolveId(specifier) {
return coreInternalModules.resolveCoreInternal(specifier, {
coreDir,
source,
});
},
};
}

function staticRoutes(): Plugin {
const id = '\0virtual:sandbox-routes';
let failed = false;
Expand Down Expand Up @@ -212,6 +236,7 @@ export default defineConfig({
],
},
}),
coreInternalModulePaths(),
staticRoutes(),
],
resolve: {
Expand Down
28 changes: 28 additions & 0 deletions apps/storybook/stories/AlertDialog.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,34 @@ export const Delete: Story = {
},
};

/**
* The delete confirmation with `presentation="dialog"`: under a finger it
* keeps the dialog a mouse gets, with each button's own press and click.
*/
export const DialogPresentation: Story = {
render: () => {
const [isOpen, setIsOpen] = useState(false);
return (
<>
<Button
label="Delete item"
variant="destructive"
onClick={() => setIsOpen(true)}
/>
<AlertDialog
isOpen={isOpen}
onOpenChange={setIsOpen}
presentation="dialog"
title="Delete item?"
description="This action cannot be undone. The item and all its data will be permanently removed."
actionLabel="Delete"
onAction={() => setIsOpen(false)}
/>
</>
);
},
};

/**
* Async action with loading state.
*/
Expand Down
Loading
Loading