Skip to content
Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
1924 commits
Select commit Hold shift + click to select a range
b8d7f4c
Merge #8589 (#8315 10abed58) into the host line
cixzhang Oct 27, 2026
71b9578
Merge #8336 (#8315 10abed58) into the arena fixes
cixzhang Oct 27, 2026
cba0ad9
Merge main (a00afee502: #8521 merged) into the experimental touch layer
vjeux Oct 27, 2026
f5ac3e8
Merge #8076 (cba0ad93f6: main with #8521 merged) into the presented s…
vjeux Oct 27, 2026
b9f6d2d
Merge b8d7f4cdaf (#8336 (#8315 10abed58: #8072's action-group finger …
cixzhang Oct 27, 2026
050fb02
Merge #8076 (cba0ad93f6: a3e07d889b's edge-zone measuring, main with …
vjeux Oct 27, 2026
13b556b
Merge #8270 (#8076 cba0ad93f6) into #8309
vjeux Oct 27, 2026
8b5e539
Merge #8309 (#8076 cba0ad93f6) into #8315
vjeux Oct 27, 2026
bbacf83
Merge #8315 (#8076 cba0ad93f6) into #8336
vjeux Oct 27, 2026
303e507
Merge #8336 (#8076 cba0ad93f6) into #8320
vjeux Oct 27, 2026
d8efc9a
Merge #8320 (#8076 cba0ad93f6: a3e07d889b and main with #8521; her #8…
vjeux Oct 27, 2026
4f11c60
Merge #8340 (f5ac3e8904: no frame shows where a touch motion is going…
vjeux Oct 27, 2026
0c9d2fb
docs(core): drawnTranslate's note wraps at the file's width again
vjeux Oct 27, 2026
0ee1b4e
Merge #8293 (#8076 cba0ad93f6; #8340 f5ac3e8904) into #8356
vjeux Oct 27, 2026
1ae267a
Merge #8356 (#8076 cba0ad93f6; #8340 f5ac3e8904) into #8358
vjeux Oct 27, 2026
68d5491
Merge #8358 (#8076 cba0ad93f6; #8340 f5ac3e8904) into #8360
vjeux Oct 27, 2026
1a4eb1c
test(gestures): a watcher follows a touch the browser scrolls with to…
cixzhang Oct 27, 2026
9f87f08
fix(gestures): a scroll-edge pan holds a lone finger only, so a pinch…
cixzhang Oct 27, 2026
7c8c729
Merge #8589 (a watcher's real-touch browser test) into the host line
cixzhang Oct 27, 2026
36c2669
Merge #8336 (a scroll-edge pan holds a lone finger only; #8589's watc…
cixzhang Oct 27, 2026
c5b1e89
test(gestures): the 41 px edge-band case skips WebKit like the file's…
cixzhang Oct 27, 2026
2850d32
Merge #8309 (c5b1e894: the 41 px edge-band case skips WebKit) as a de…
cixzhang Oct 27, 2026
2e0bf48
Merge #8315 (2850d32b: #8309 c5b1e894, a WebKit test skip) into the g…
cixzhang Oct 27, 2026
d3c39fa
Merge #8589 (#8315 2850d32b) into the host line
cixzhang Oct 27, 2026
46fb7be
Merge #8336 (#8315 2850d32b) into the arena fixes
cixzhang Oct 27, 2026
d97753d
Merge #8270 (#8076 cba0ad93f6) into #8309
vjeux Oct 27, 2026
9affd96
Merge #8315 (#8076 cba0ad93f6) into #8336
vjeux Oct 27, 2026
13f603d
Merge #8309 (#8076 cba0ad93f6) into #8315
vjeux Oct 27, 2026
0567e2c
Merge #8336 (#8076 cba0ad93f6) into #8320
vjeux Oct 27, 2026
e18b6d4
Merge #8320 (her 46fb7beee4: the 41 px case skips WebKit; a scroll-ed…
vjeux Oct 27, 2026
797c704
Merge #8356 (#8320 46fb7beee4) into #8358
vjeux Oct 27, 2026
8ed72d9
Merge #8293 (#8320 46fb7beee4) into #8356
vjeux Oct 27, 2026
df700c4
Merge #8358 (#8320 46fb7beee4) into #8360
vjeux Oct 27, 2026
2c8edc3
test(gestures): a scroll-edge pan holds nothing while a second finger…
vjeux Oct 27, 2026
54a4c27
fix(gestures): a scroll-edge pan holds nothing while a second finger …
vjeux Oct 27, 2026
3bfd7c3
fix(core): the animator reads no style for a node out of the document
vjeux Oct 27, 2026
e9aa784
Merge #8336 (9affd96133: the host line on #8076 cba0ad93f6, main with…
vjeux Oct 27, 2026
b87b40b
test(gestures): the watcher's browser test checks it reports moves af…
cixzhang Oct 27, 2026
21347b3
Merge #8589 (the watcher's browser test checks moves after the takeov…
cixzhang Oct 27, 2026
528e3e1
Merge #8336 (vjeux's two-finger scroll-edge fix; #8589's watcher brow…
cixzhang Oct 27, 2026
16da6d9
chore(MobileNav): the changeset names the full-height page fix
vjeux Oct 27, 2026
870b827
fix(MobileNav): under a finger the close keeps FR5's timing
vjeux Oct 27, 2026
2119cfa
Merge #8076 (3bfd7c32da: the animator reads no style for a node out o…
vjeux Oct 27, 2026
d70e066
test(core): the press feedback controller imports nothing from the ge…
vjeux Oct 27, 2026
fbed9d2
refactor(core): the coarse-pointer query moves to the environment que…
vjeux Oct 27, 2026
9db6af5
Merge #8270 (#8076 3bfd7c32da; the coarse-pointer query in utils/) in…
vjeux Oct 27, 2026
999afb7
Merge #8309 (#8076 3bfd7c32da; the coarse-pointer query in utils/) in…
vjeux Oct 27, 2026
b57ac07
test(gestures): the watcher's browser test names its record type (lint)
cixzhang Oct 27, 2026
6cca0de
Merge #8589 (the watcher browser test's lint fix) into the host line
cixzhang Oct 27, 2026
ea8531c
Merge #8336 (#8589's lint fix) into the arena fixes
cixzhang Oct 27, 2026
304ef9b
Merge #8098 (e979167d93), #8320 (0567e2c7cb) and #8076 (3bfd7c32da): …
vjeux Oct 27, 2026
2f56d49
Merge the wave-2 foundation line (review base 304ef9bb69): #8098 e979…
vjeux Oct 27, 2026
2f4364d
Merge #8119 (2f56d495ad) and #8342 (e9aa7841a2): the review base
vjeux Oct 27, 2026
3bbf277
Merge #8119 (2f56d495ad) and #8342 (e9aa7841a2) for the input hold
vjeux Oct 27, 2026
1370884
Merge the review base (2f4364d555) into the input hold
vjeux Oct 27, 2026
99b0a4f
Merge #8320 0567e2c7cb (F2's line, wave 2) into the scroll lock's base
vjeux Oct 27, 2026
280d775
Merge #8320 0567e2c7cb (one base merge, 99b0a4f6a0) into the scroll lock
vjeux Oct 27, 2026
1b6e19f
test(gestures): the watcher's real-touch test reads its end before th…
vjeux Oct 27, 2026
790c65e
Merge #8315 (#8076 3bfd7c32da; the coarse-pointer query in utils/) in…
vjeux Oct 27, 2026
2fd9697
Merge #8336 (#8076 3bfd7c32da; the coarse-pointer query in utils/) in…
vjeux Oct 27, 2026
45b25e4
Merge #8320 (cixzhang's ea8531cd9b: the scroll-edge hold for a lone f…
vjeux Oct 27, 2026
e95a4e2
Merge #8356 (#8320 ea8531cd9b; #8076 3bfd7c32da; the coarse-pointer q…
vjeux Oct 27, 2026
d80cebe
Merge #8293 (#8320 ea8531cd9b; #8076 3bfd7c32da; the coarse-pointer q…
vjeux Oct 27, 2026
741787a
Merge #8358 (#8320 ea8531cd9b; #8076 3bfd7c32da; the coarse-pointer q…
vjeux Oct 27, 2026
8111745
test(gestures): gestures attach for every pointer (spec:AST-094 FR43,…
vjeux Oct 27, 2026
431f4b0
test(gestures): a press tracker's fine-pointer profile: no delay, and…
vjeux Oct 27, 2026
f9a93c3
test(gestures): the screen-edge pan stays off under a mouse and a pen…
vjeux Oct 27, 2026
f50207f
feat(gestures): gestures attach for every pointer (spec:AST-094 FR43,…
vjeux Oct 27, 2026
dc3840f
test(gestures): the browser proofs read FR43 under a fine pointer, wi…
vjeux Oct 27, 2026
1aade8a
test(gestures): an in-band touch on a wider element decides at 15 px …
vjeux Oct 27, 2026
3d85c30
fix(gestures): an in-band touch decides at 15 px whatever the element…
vjeux Oct 27, 2026
9d0f6f2
Merge #8061 (3d85c303e6: an in-band screen-edge touch decides at 15 p…
vjeux Oct 27, 2026
11dbebf
Merge #8641 (bec2283d0f: a gesture that cancels itself on a finger's …
vjeux Oct 27, 2026
d9a1e1a
fix(gestures): an in-band touch decides at 10 px on an element wider …
vjeux Oct 27, 2026
e6ab0b9
Merge #8061 (d9a1e1ad19: an in-band touch on an element wider than th…
vjeux Oct 27, 2026
e7b5b3c
Merge #8076 (e6ab0b9cd9: #8061 d9a1e1ad19, an in-band screen-edge tou…
vjeux Oct 27, 2026
e718566
Merge #8270 (#8076 e6ab0b9cd9: FR18 per DEC-22, #8641) into #8309
vjeux Oct 27, 2026
1e44dc3
Merge #8315 (#8076 e6ab0b9cd9: FR18 per DEC-22, #8641) into #8336
vjeux Oct 27, 2026
9486526
Merge #8309 (#8076 e6ab0b9cd9: FR18 per DEC-22, #8641; #8641's moving…
vjeux Oct 27, 2026
03155c3
Merge the #8589 watcher-test fix (1b6e19f7b0: the real-touch test rea…
vjeux Oct 27, 2026
3d7fa2e
Merge #8336 (#8076 e6ab0b9cd9: FR18 per DEC-22, #8641; #8589's watche…
vjeux Oct 27, 2026
82fe8b7
Merge #8356 (#8076 e6ab0b9cd9: FR18 per DEC-22, #8641; #8589's watche…
vjeux Oct 27, 2026
d835d1c
Merge #8320 (#8076 e6ab0b9cd9: FR18 per DEC-22, #8641; #8589's watche…
vjeux Oct 27, 2026
ee5387a
Merge #8293 (#8076 e6ab0b9cd9: FR18 per DEC-22, #8641; #8589's watche…
vjeux Oct 27, 2026
aebbb7c
test(motion): retire the gate that kept the menus off the gestures table
vjeux Oct 27, 2026
23ade34
Merge #8358 (#8076 e6ab0b9cd9: FR18 per DEC-22, #8641; #8589's watche…
vjeux Oct 27, 2026
9fa271e
Merge #8360 (#8076 e6ab0b9cd9: FR18 per DEC-22, #8641; #8589's watche…
vjeux Oct 27, 2026
d535664
Merge #8336 (03155c374e: F2's fZ line on #8076 e6ab0b9cd9, with the w…
vjeux Oct 27, 2026
84405e8
Merge #8320 3d7fa2ebcb (F2's fZ: #8076 e6ab0b9cd9, the watcher-test f…
vjeux Oct 27, 2026
27dd234
Merge #8320 3d7fa2ebcb (one base merge, 84405e811e) into the scroll lock
vjeux Oct 27, 2026
e90fc8a
test(gestures): a finger from a browser that sends Touch Events but e…
vjeux Oct 27, 2026
00ab452
fix(gestures): the host reads no Touch Events where it takes fingers …
vjeux Oct 27, 2026
1d43d0d
Merge #8336 (the host takes a finger once where it reads its pointer …
vjeux Oct 27, 2026
898d317
Merge #8320 (the host takes a finger once where it reads its pointer …
vjeux Oct 27, 2026
169cd73
Merge #8293 (the host takes a finger once where it reads its pointer …
vjeux Oct 27, 2026
cb552b2
Merge #8356 (the host takes a finger once where it reads its pointer …
vjeux Oct 27, 2026
11a1a2d
test(motion): the uikit barrel keeps UIKIT_CLICK for importers writte…
vjeux Oct 27, 2026
d8651c2
fix(motion): the uikit barrel keeps UIKIT_CLICK, with the click guard…
vjeux Oct 27, 2026
c246cf6
Merge #8360 (the uikit barrel keeps UIKIT_CLICK) into the every-point…
vjeux Oct 27, 2026
49a23fc
Merge #8119 (3de0deb217) and #8342 (d535664aec): the review base
vjeux Oct 27, 2026
4bfd8b0
Merge #8119 (3de0deb217) and #8342 (d535664aec) for the input hold
vjeux Oct 27, 2026
3de0deb
Merge #8098 (27dd234d4f: the fZ foundation line, with #8076 e6ab0b9cd…
vjeux Oct 27, 2026
8cef6cd
Merge the review base (49a23fc4de) into the input hold
vjeux Oct 27, 2026
f562631
Merge #8358 (the host takes a finger once where it reads its pointer …
vjeux Oct 27, 2026
22f0517
Merge #8360 (the host takes a finger once where it reads its pointer …
vjeux Oct 27, 2026
6f56ef9
test(core): Core's root, hooks and utils entries carry no gesture code
vjeux Oct 27, 2026
57b5bbd
fix(core): the haptic switch's attribute lives in utils, so Core's pu…
vjeux Oct 27, 2026
32ccda6
test(gestures): a claiming recognizer keeps its blocking touchmove un…
vjeux Oct 27, 2026
dbf5390
fix(gestures): a claiming recognizer's element keeps its blocking tou…
vjeux Oct 27, 2026
78d4c1d
test(gestures): a mouse or a pen pan takes no text selection once it …
vjeux Oct 27, 2026
7356a69
fix(gestures): a mouse or a pen pan takes no text selection once it c…
vjeux Oct 27, 2026
c69cf92
docs(gestures): the README and changeset name the claiming touchmove,…
vjeux Oct 27, 2026
7fc24e1
test(gestures): a right click or a ctrl-click on macOS starts no pres…
vjeux Oct 27, 2026
e78b2da
fix(gestures): a ctrl-click on macOS starts no press, as a right clic…
vjeux Oct 27, 2026
f4be8f0
Merge #8360 (the haptic switch's attribute lives in utils: Core's pub…
vjeux Oct 27, 2026
3fb31dd
Merge main (6aea9bda01: #8663 merged, one release policy) into the ex…
vjeux Oct 27, 2026
170162d
Merge #8076 (main's #8663 rows in motion/README.md) into #8270
vjeux Oct 27, 2026
58dbb1a
Merge #8270 (#8076: main's #8663 rows in motion/README.md) into #8309
vjeux Oct 27, 2026
2e77071
Merge #8309 (#8076: main's #8663 rows in motion/README.md) into #8315
vjeux Oct 27, 2026
3b1b26d
Merge #8315 (#8076: main's #8663 rows in motion/README.md) into #8336
vjeux Oct 27, 2026
ca71fce
Merge #8336 (#8076: main's #8663 rows in motion/README.md) into #8320
vjeux Oct 27, 2026
fe527be
Merge #8320 (#8076: main's #8663 rows in motion/README.md; this pull …
vjeux Oct 27, 2026
0dd683d
Merge #8358 (#8076: main's #8663 rows in motion/README.md) into #8360
vjeux Oct 27, 2026
c5465c2
Merge #8356 (#8076: main's #8663 rows in motion/README.md) into #8358
vjeux Oct 27, 2026
52e5eb7
Merge #8293 (#8076: main's #8663 rows in motion/README.md) into #8356
vjeux Oct 27, 2026
f785deb
Merge #8360 (#8076: main's #8663 rows in motion/README.md) into the e…
vjeux Oct 27, 2026
aba5646
Merge #8336 (3b1b26d530: F2's line on #8076 3fb31ddb3e, main with #86…
vjeux Oct 27, 2026
a036a6a
Merge #8320 ca71fce61a (F2's line on #8076 3fb31ddb3e, main 6aea9bda0…
vjeux Oct 27, 2026
3d23397
Merge #8320 ca71fce61a (one base merge, a036a6ad3b) into the scroll lock
vjeux Oct 27, 2026
a3511eb
test(gestures): a mouse drag a pan claimed selects no page text, in W…
vjeux Oct 27, 2026
389db4e
fix(core): usePressTracker rebuilds its tracker when its options change
vjeux Oct 27, 2026
8764f26
Merge #8098 (3d23397a0a: the fZ2 foundation line, with #8076 3fb31ddb…
vjeux Oct 27, 2026
4cafee6
Merge #8119 (8764f26f3b) and #8342 (aba564668f) for the input hold
vjeux Oct 27, 2026
4dfe4ed
Merge #8119 (8764f26f3b) and #8342 (aba564668f): the review base
vjeux Oct 27, 2026
2b307af
Merge the review base (4dfe4eded9) into the input hold
vjeux Oct 27, 2026
49f872a
fix(gestures): a claimed mouse or pen drag holds selection off docume…
vjeux Oct 27, 2026
c1f24bf
test(gestures): a fine-pointer finger's press on an action group ends…
vjeux Oct 27, 2026
9adc6f2
Merge #8360 (only the utils entry is pinned gesture-free) into the ev…
vjeux Oct 27, 2026
5588013
test(core): only the utils entry is pinned gesture-free; the root and…
vjeux Oct 27, 2026
0b2b013
test(gestures): a recognizer inside a shadow root gets its finger and…
vjeux Oct 27, 2026
c06acd5
fix(gestures): the host resolves what an input landed on through the …
vjeux Oct 27, 2026
3c8817f
test(gestures): the drag selection case reads the page once the selec…
vjeux Oct 27, 2026
620fbfe
test(gestures): a recognizer inside a shadow root gets its finger and…
vjeux Oct 27, 2026
a18870e
test(MobileNav): the strip probe waits for the slide-in's input hold …
vjeux Oct 27, 2026
c3c119a
fix(gestures): the host resolves what an input landed on through the …
vjeux Oct 27, 2026
53a1e69
Merge #8336 (a recognizer inside a shadow root gets its finger: the h…
vjeux Oct 27, 2026
9a0d046
Merge #8320 (#8336: a recognizer inside a shadow root gets its finger…
vjeux Oct 27, 2026
6e42f12
Merge #8358 (#8336: a recognizer inside a shadow root gets its finger…
vjeux Oct 27, 2026
27d3958
Merge #8356 (#8336: a recognizer inside a shadow root gets its finger…
vjeux Oct 27, 2026
5805486
Merge #8293 (#8336: a recognizer inside a shadow root gets its finger…
vjeux Oct 27, 2026
c2cd3ba
Merge #8360 (#8336: a recognizer inside a shadow root gets its finger…
vjeux Oct 27, 2026
b039876
test(core): the held-dip proofs wait for the dip to finish, not for 2…
vjeux Oct 27, 2026
5e0277e
Merge #8336 (c3c119a466: the host resolves what an input landed on th…
vjeux Oct 27, 2026
41d3e61
test(useMenuPress): the trigger keeps the released tolerance on a fin…
vjeux Oct 27, 2026
d06691b
fix(useMenuPress): the trigger takes its tolerance when its press sta…
vjeux Oct 27, 2026
a3527b9
test(useLongPress): the travel is measured on each axis, as its docum…
vjeux Oct 27, 2026
f62179d
fix(useLongPress): the tolerance is measured on each axis again, as d…
vjeux Oct 27, 2026
120350b
test(gestures): a scroll and its brake see a finger inside an open sh…
vjeux Oct 27, 2026
a0c57a3
fix(gestures): a scroll and its brake compare a finger along the flat…
vjeux Oct 27, 2026
a8b174a
Merge #8336 (the host compares a finger with a scroller along the fla…
vjeux Oct 27, 2026
c1186e4
Merge #8320 (#8336: the host compares a finger with a scroller along …
vjeux Oct 27, 2026
886749b
Merge #8293 (#8336: the host compares a finger with a scroller along …
vjeux Oct 27, 2026
af9cb4e
Merge #8356 (#8336: the host compares a finger with a scroller along …
vjeux Oct 27, 2026
1ffc9d8
Merge #8360 (the menu trigger takes its tolerance when its press star…
vjeux Oct 27, 2026
b390514
Merge #8358 (useLongPress measures its tolerance on each axis again, …
vjeux Oct 27, 2026
0f2397e
test(gestures): a claimed pen's stylus touchend is cancelled, as a fi…
vjeux Oct 27, 2026
5a64900
fix(gestures): a claimed pen's stylus touchend is cancelled, as a fin…
vjeux Oct 27, 2026
264c66d
test(gestures): a second finger fails a one-finger pan where fingers …
vjeux Oct 27, 2026
54b0a68
fix(gestures): a second finger fails a one-finger pan wherever finger…
vjeux Oct 27, 2026
5f6bc04
refactor(useLongPress): the per-press tolerance stays off the public …
vjeux Oct 27, 2026
6b3e60d
docs(gestures): the host's header and the host-owner changeset descri…
vjeux Oct 27, 2026
ff66ec6
Merge #8320 a8b174a7d6 (F2's reviewer fixes: the host's flat-tree scr…
vjeux Oct 27, 2026
bd4b2c5
Merge #8320 a8b174a7d6 (one base merge, ff66ec6253) into the scroll lock
vjeux Oct 27, 2026
b19ca67
test(core): the non-modal replace check reads the scroll lock itself,…
vjeux Oct 27, 2026
5326798
test(gestures): a real-touch proof of the screen-edge pan on an eleme…
vjeux Oct 27, 2026
5fe3deb
test(gestures): a pinch whose second finger lands on another one-fing…
vjeux Oct 27, 2026
30b9aac
fix(gestures): the second-finger check runs again once the new finger…
vjeux Oct 27, 2026
4b8c2b0
docs(gestures): two changesets, the arena's claim comment and a test …
vjeux Oct 27, 2026
8d7da28
test(gestures): the screen-edge pan is locked to a finger; a widened …
vjeux Oct 27, 2026
83b2084
fix(gestures): the screen-edge pan is a finger's only; its options ta…
vjeux Oct 27, 2026
da02df9
test(selectionLock): a finger's and a pen's hold take the lock under …
vjeux Oct 27, 2026
42baf0f
fix(selectionLock): a finger's and a pen's hold take the lock under a…
vjeux Oct 27, 2026
538039c
test(clickGuard): a guard whose view goes away lets its window run ou…
vjeux Oct 27, 2026
9c1d352
test(gestures): a cancelled mouse or pen press lifts the document-wid…
vjeux Oct 27, 2026
2d365a7
fix(gestures): a click guard whose view went away drops without touch…
vjeux Oct 27, 2026
156b9d7
test(clickGuard): no guard outlives the test that armed it
vjeux Oct 27, 2026
9960efe
fix(test-utils): the shared setup disarms every click guard as each t…
vjeux Oct 27, 2026
1b4b92a
fix(MobileNav): the slide-in's touch hold ends on its transition's ow…
vjeux Oct 27, 2026
1828f92
test(core): the scroll lock's top-layer check asks only an engine tha…
vjeux Oct 27, 2026
bd86f9d
fix(core): the scroll lock's top-layer check detects the engine's sta…
vjeux Oct 27, 2026
3846b6a
Merge main 70ea85903c into #8073
vjeux Oct 28, 2026
ca2543d
Merge remote-tracking branch 'origin/main' into HEAD
cixzhang Oct 28, 2026
10c62f5
test(core): a mouse press ending early leaves a held row to its owner
vjeux Oct 28, 2026
fdf8766
fix(core): a press ended early clears its paint through the one writer
vjeux Oct 28, 2026
63128d3
test(core): pressFeedback.test.ts drops its unused durationToMs import
vjeux Oct 28, 2026
f24e872
Merge #8446 ca2543df75 and #8073 63128d3530 into #8076
vjeux Oct 28, 2026
8c70274
Merge main (70ea8590: #8045, #8046 landed)
cixzhang Oct 28, 2026
5c1d37f
Merge main (70ea8590: #8045, #8046 landed)
cixzhang Oct 28, 2026
6f994bc
docs(core): the gestures README names both writers of the press attri…
vjeux Oct 28, 2026
8daabc8
Merge #8076 6f994bcdfb into #8360
vjeux Oct 28, 2026
73e90c2
docs(core): pressFeedback says paintPress writes the presses it track…
vjeux Oct 28, 2026
e6ca2f0
Merge #8360 73e90c2fa6 into #8665
vjeux Oct 28, 2026
678490f
test(gestures): under a fine pointer the host drops its page listener…
vjeux Oct 28, 2026
c22d219
fix(gestures): under a fine pointer the host drops its page listeners…
vjeux Oct 28, 2026
62870cd
docs(spec): AST-094 FR41 says a claimed mouse or pen drag suppresses …
vjeux Oct 28, 2026
e32bfc2
test(gestures): a pen's barrel button starts no press, as the gesture…
vjeux Oct 28, 2026
f4dae89
fix(gestures): a pen's barrel button starts no press
vjeux Oct 28, 2026
33511d9
docs(gestures): the README says what a pen does, and how the host lis…
vjeux Oct 28, 2026
323a8fd
docs(changeset): the press-tracking changeset names both writers of t…
vjeux Oct 28, 2026
f3b1290
test(useMenuPress): a finger held on the trigger keeps FR29's drift a…
vjeux Oct 29, 2026
1e1431f
fix(useMenuPress): a finger held on the trigger keeps FR29's drift al…
vjeux Oct 29, 2026
1682f96
chore(gestures): the gesture files on this line have no unused bindings
vjeux Oct 29, 2026
856c4d1
test(gestures): a rotation re-based on every change releases at its r…
vjeux Oct 29, 2026
8310bcb
fix(gestures): a re-based rotation keeps its release velocity
vjeux Oct 29, 2026
fe7f5f9
test(motion): the Reduce Motion late-dip proof reads what the dip ani…
vjeux Oct 29, 2026
e4713e8
test(gestures): a finger inside an open shadow root is down in its sc…
vjeux Oct 29, 2026
839b33c
fix(gestures): a finger inside an open shadow root is compared along …
vjeux Oct 29, 2026
01d358b
test(gestures): an element stays an action group while any of its att…
vjeux Oct 29, 2026
1251af1
fix(gestures): an element is an action group while any of its attachm…
vjeux Oct 29, 2026
826534b
test(gestures): a tap on a moving sheet's shadow-root content reaches…
vjeux Oct 29, 2026
66e17cb
fix(gestures): the presented hit test descends into open shadow roots
vjeux Oct 29, 2026
1bf9da8
test(gestures): no touch-action rule stays once the last marked eleme…
vjeux Oct 29, 2026
db3d3f7
fix(gestures): a document's or shadow root's touch-action rules go wi…
vjeux Oct 29, 2026
82579aa
docs(gestures): presented hit testing names its review condition, and…
vjeux Oct 29, 2026
955fed4
docs(gestures): the README and the barrel point Lab at @astryxdesign/…
vjeux Oct 29, 2026
38acf83
docs(core): the input stream's notes name the stops it fixes, what st…
vjeux Oct 29, 2026
121937a
docs(changeset): the build changeset names the treeshakeCompensation …
vjeux Oct 29, 2026
2e2f92a
test(gestures): real-touch proofs for a still finger's sub-pixel jitt…
vjeux Oct 29, 2026
75392b2
test(gestures): a retargeted tap with only watchers attached activate…
vjeux Oct 29, 2026
1363a95
Merge #8360 75392b296a into #8665
vjeux Oct 29, 2026
4362f35
test(gestures): an element stays a group while any of its gestures is…
vjeux Oct 29, 2026
d975503
Merge #8360 75392b296a into #8336
vjeux Oct 29, 2026
045f666
docs(core): the input stream's notes no longer list click among the g…
vjeux Oct 29, 2026
1adb531
Merge #8360 045f666f7a into #8665
vjeux Oct 29, 2026
bf1a58b
test(gestures): under a fine pointer an armed press cancels a claimed…
vjeux Oct 29, 2026
1585de0
fix(gestures): under a fine pointer an armed press cancels a claimed …
vjeux Oct 29, 2026
f46d28f
test(gestures): a press claimed at its own pointerdown keeps the page…
vjeux Oct 29, 2026
5d9fc1a
Merge #8360 045f666f7a into the scroll lock
vjeux Oct 29, 2026
00d500d
Merge #8336 (d975503b8a) into the input hold
vjeux Oct 29, 2026
bce55d5
fix(gestures): a press that claims at its own pointerdown keeps the p…
vjeux Oct 29, 2026
4de6442
docs(gestures): the host's notes, the selection test and FR41 say wha…
vjeux Oct 29, 2026
c6c02fc
docs(spec): FR41 says what a claimed drag does with the page's select…
vjeux Oct 29, 2026
283e7b2
Merge #8665 c6c02fcf2b into #8336
vjeux Oct 29, 2026
284dbd5
Merge #8098 (5d9fc1af82)
vjeux Oct 29, 2026
67f63f3
Merge #8336 (283e7b2e37) into the input hold
vjeux Oct 29, 2026
074796a
test(Layer): a component that holds its layer carries no gesture code
vjeux Oct 30, 2026
ed17d69
fix(Layer): the input hold imports nothing from gestures/; the gestur…
vjeux Oct 30, 2026
b026ef2
Merge #8342 (ed17d69e19) and #8119 (284dbd5ec5): the review base
vjeux Oct 30, 2026
b712c1e
Merge #8342 (ed17d69e19) and #8119 (284dbd5ec5)
vjeux Oct 30, 2026
7e585b2
style(MobileNav): format the touch-presentation spec with Prettier
vjeux Oct 30, 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/appshell-mobile-nav-slide-out.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[fix] AppShell keeps the mobile nav's drawer rendered until its slide-out ends. It no longer hides the drawer 300 ms after a close, partway through the slide-out (410 ms by default).

@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/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.

@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 applies option changes from the next touch; the recognizer's arena plumbing is `protected`; `attachTapHaptic` gives focus straight back. Not exported from the package entry point; no component uses it yet.

@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; no component uses it yet.

@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. 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 gets press feedback only. Internal, used by the touch components; 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; no component uses it yet.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/gesture-pan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@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.

@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, the shared press paint, delegated press tracking and the gesture hooks. Not exported from the package entry point; no component uses them yet.

@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
7 changes: 7 additions & 0 deletions .changeset/gesture-recognizer-core.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@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.

@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; the early claim is opt-in, and a numeric `claimDistance` applies to any direction; 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; no component uses it yet.

@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-tap-long-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[chore] Internal: tap and long-press gesture recognizers with UIKit's measured thresholds. 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; no component uses it yet.

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

[chore] Internal: one presentation hold for every layer (`Layer/presentationHold`). While a layer presents, a touch, a press or a click anywhere reaches nothing (keys and assistive technology still act, and a pinch still zooms the page); while it dismisses, the same, and the layer's content is inert. The gesture host holds the layer's touches through its touch gates, and `isPresentationShield` lets a hit test see past a hold's shield. Not exported from the package entry point; no component uses it yet.

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

[fix] MobileNav locks the page through the shared scroll lock (`useScrollLock`) while it is open. Under a finger, a drag on the open drawer no longer scrolls the page behind it, and overlays open together share one lock.

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

[fix] Under a finger, MobileNav presents and dismisses as an iOS sheet does. It takes no touch until its slide-in ends and no input until its slide-out ends. Its dialog stays open through the slide-out, so the scrim fades over the whole of it, and focus returns when the slide-out ends. Under a mouse nothing changes.

@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/scroll-lock-keeps-the-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@astryxdesign/core': patch
---

[fix] `useScrollLock`, and so Dialog, BottomSheet, Drawer and Lightbox, keeps the page where it is while an overlay is open. The lock used to pin `<body>` with `position: fixed` at minus the scroll offset and scroll back on release: the page's offset read 0 for the whole lock, and on iOS Safari the jump to the top brought the toolbar back, where it stayed after the overlay closed. Now the page gets `overflow: hidden` (on the root, or on `<body>` when the body's own overflow is the one the viewport uses), and on touch screens a one-finger pan that would scroll the page is cancelled, which iOS Safari before 26.4 needs because it scrolls an `overflow: hidden` page under a finger. Pans that a scroller inside the overlay can take, and pinch-zoom, still work. The lock no longer pins `<body>`, and `window.scrollY` keeps its value while the lock holds. The lock cancels those pans itself, leaving a touch a gesture recognizer owns to it, and judges each pan after a small slop so a swipe's first wobble does not fix the wrong axis. It follows the browser's scroll chain, so an overlay rendered inside a scrolling container still holds the page: a modal dialog's pans go to the page, not to that container. MobileNav's own clip goes through the same page scroll-style claims, so closing or unmounting it no longer releases another overlay's lock.

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

[feat] Themes can retune touch motion roles. `defineTheme({motion})` takes `springs`, `durations` and `curves` keyed by motion role, the table path of a measured touch motion value (`springs.sheetPresent`, `navigation.transitionMs`), at the root or in an adaptation rule, and writes one `--motion-*` variable per role it sets. A role the theme leaves out keeps its measured default, an unknown role id is refused, and the duration scale (`fast`, `medium`, `ratio`) is optional when a theme sets only roles. `astryx docs motion` lists every motion role with its CSS variable and default, and the theme authoring guide and template describe the new fields.

@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 takes the press feedback's selection lock for a press-tracked control's contact and for a recognizer created with `preventsTextSelection`, a non-text input under the finger included, and restores selection when the contact ends. Not exported from the package entry point; no component uses it yet.

@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] Under a finger or pen, holding a control whose hold does something (a slider's thumb, a switch's or a segmented control's drag) no longer starts text selection or the iOS callout; they come back when the finger lifts. A control or row whose hold does nothing keeps the browser's long-press selection. Text fields keep their selection, a link keeps its native menu and preview, and where the primary pointer is fine (a mouse, a trackpad, a touchscreen laptop, a desktop pen tablet) every contact keeps desktop selection. There, the press controller also registers no touch listener.

@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), drives a pseudo-element such as a dialog's ::backdrop, 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), and starts a call from rest when the browser commits it, as Core Animation does. Not exported from the package entry point.

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

[chore] Internal: a compositor animator for touch presentations. It plays UIKit's springs, scroll coasts (built by a separate coast module, so a surface that never coasts does not carry them) and any closed-form curve 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.

@vjeux
7 changes: 7 additions & 0 deletions .changeset/uikit-motion-math.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@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.

@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
5 changes: 4 additions & 1 deletion .github/scripts/ci-interaction.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ describe('interaction proof routing', () => {
}
});

it('keeps the harness, components, Storybook and its own setup in scope', () => {
it('keeps the harness, components, themes, Storybook and its own setup in scope', () => {
const pattern = new RegExp(
decide().run.match(/bash "\$helper" "\$BASE_SHA" '([^']+)'/)[1],
);
Expand All @@ -242,6 +242,8 @@ describe('interaction proof routing', () => {
'internal/a11y-spec/src/storybook.ts',
'playwright.interaction.config.ts',
'packages/core/src/BottomSheet/BottomSheet.tsx',
// Themes set the motion durations components animate with.
'packages/themes/neutral/src/neutralTheme.ts',
'apps/storybook/.storybook/preview.tsx',
'.github/workflows/ci.yml',
'package.json',
Expand All @@ -253,6 +255,7 @@ describe('interaction proof routing', () => {
'docs/specs/AST-030/spec.md',
'apps/docsite/src/app/page.tsx',
'packages/core/package.json',
'packages/themes/neutral/package.json',
'.github/scripts/native-swift.sh',
]) {
expect(pattern.test(untouched), untouched).toBe(false);
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ jobs:
&& git fetch --quiet --no-tags --depth=1 origin "$BASE_SHA" \
&& git show "$BASE_SHA:.github/scripts/pr-scope-touches.sh" > "$helper"; then
scope=0
bash "$helper" "$BASE_SHA" '^(internal/interaction-harness/|internal/a11y-spec/|playwright\.interaction\.config\.ts$|packages/[^/]+/src/|apps/storybook/|\.github/workflows/ci\.yml$|package\.json$|pnpm-lock\.yaml$)' || scope=$?
bash "$helper" "$BASE_SHA" '^(internal/interaction-harness/|internal/a11y-spec/|playwright\.interaction\.config\.ts$|packages/[^/]+/src/|packages/themes/[^/]+/src/|apps/storybook/|\.github/workflows/ci\.yml$|package\.json$|pnpm-lock\.yaml$)' || scope=$?
fi
if [ "$scope" = 1 ]; then
echo 'No harness, component, Storybook or proof-setup change; skipping the interaction proofs.'
Expand Down
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
Loading
Loading