Repository navigation
chore(core): Lab's PageControl reaches the shared animator, the Reduce Motion cross-fade and the touch hit area through Core's internal touch entry #9669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c3954ea
chore(core): Lab's PageControl reaches the shared animator, the Reduc…
vjeux 68ab6e5
Merge branch 'main' into c23/l1-pagecontrol-core
cixzhang 1a209d8
Merge branch 'main' into c23/l1-pagecontrol-core
vjeux 39d3a83
Merge main into the PageControl lab entry branch (#10189 landed)
cixzhang 2ca0ea0
Merge main into the PageControl core re-exports branch
vjeux 6646a51
Merge main into the PageControl touch entry branch
cixzhang 7c2eaa7
Merge main into the PageControl touch entry branch
vjeux File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@astryxdesign/core': patch | ||
| --- | ||
|
|
||
| [chore] Internal: `@astryxdesign/core/internal/touch` also re-exports an element's shared animator, the Reduce Motion cross-fade, and the coarse-pointer touch hit area's hook and layer, for Lab's PageControl. It is an internal entry reserved for Astryx's own packages, outside the public API. | ||
|
|
||
| @vjeux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,10 +4,10 @@ | |
| * @file touch.ts | ||
| * @input The gesture core: the arena, the recognizers and their geometry. | ||
| * Also the pan, the motion engine and math, and the touch-presentation, | ||
| * direction and focus helpers that Lab components read | ||
| * direction, focus and hit-area helpers that Lab components read | ||
| * @output `@astryxdesign/core/internal/touch`: the gesture core's primitives | ||
| * and the motion, touch-presentation, direction and focus modules for Lab | ||
| * components, re-exported by name | ||
| * and the motion, touch-presentation, direction, focus and hit-area | ||
| * modules for Lab components, re-exported by name | ||
| * @position An internal entry reserved for Astryx's own packages: | ||
| * undocumented, outside the public API and its compatibility promise | ||
| * (spec:AST-017 FR21), versioned in lockstep with Core, and allowed only in | ||
|
|
@@ -100,3 +100,9 @@ export {useInteractionModalityTracking} from '../utils/interactionModality'; | |
| // scroll is a finger's, and act when that scroll ends. | ||
| export {useFingerScroll} from '../gestures/useFingerScroll'; | ||
| export type {UseFingerScrollOptions} from '../gestures/useFingerScroll'; | ||
| // Lab's PageControl also reads an element's shared animator, the Reduce | ||
| // Motion cross-fade, and the touch hit area's hook and layer. | ||
|
Comment on lines
+110
to
+111
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non-blocking (INV29): this comment restates the four names below it in words. Keep only the reason: // Lab's PageControl reads these. |
||
| export {animatorFor} from '../motion/animator'; | ||
| export {reducedMotionFade} from '../motion/reducedMotion'; | ||
| export {useTouchHitArea} from '../utils/touchHitArea'; | ||
| export {touchHitAreaStyles} from '../utils/touchHitArea.stylex'; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking:
@outputstill says "the gesture core's primitives", but the entry now also carries the motion engine, curve helpers, hit-area watcher and direction read, and the header is 20 lines (file headers stay near 12). Suggested:@input Core's gesture, motion, touch and direction modulesand@output @astryxdesign/core/internal/touch: those modules for Lab, by name.