Skip to content
Draft
Show file tree
Hide file tree
Changes from 5 commits
Commits
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
496 changes: 496 additions & 0 deletions apps/storybook/stories/NavigationStackSpecDemos.stories.tsx

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions packages/core/src/internal/touch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,14 @@ describe('internal/touch', () => {
}
});

it('re-exports the press tracker hook by name', async () => {
const entry: Record<string, unknown> = await import('./touch');
const module = await import('../gestures/usePressTracker');
// Identity alone passes when both sides are undefined.
expect(typeof entry.usePressTracker).toBe('function');
expect(entry.usePressTracker).toBe(module.usePressTracker);
});

it("re-exports by name UIKit's timing table, which Lab's SearchField reads", async () => {
const entry: Record<string, unknown> = await import('./touch');
const uikit = await import('../motion/uikit/timing');
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/internal/touch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,8 @@ export {touchHitAreaStyles} from './touchHitArea.stylex';
export {useActionGroupTracking} from '../hooks/useActionGroupTracking';
export type {ActionGroupTrackingOptions} from '../hooks/useActionGroupTracking';

// Lab's NavigationStack links track their press with the shared press tracker.
export {usePressTracker} from '../gestures/usePressTracker';
Comment thread
astracat-bot[bot] marked this conversation as resolved.
Resolved

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.

Regression: since the merge of main, architecture:react-component-runtime INV13 says press feedback timing is reached "through architecture:press-feedback's engine and profiles, not directly", and architecture:press-feedback's INV1 gap keeps the press tracker to "its current direct users (Switch, Slider, the SegmentedControl lens, Lightbox)". ESLint's @astryx/press-through-recipes flags this line. Drive useNavigationLink's prepare/drop from the press feedback engine, or have the record's owner add the link to the tracker's direct users; then drop this line, its test and its Changeset.


// Lab's TabBar finds a panel's scroll area with Core's scroll test.
export {measureLogicalScrollAxis} from '../hooks/scrollGeometry';
Loading