Skip to content

Expose LongPressEvent and MoveEvent #9230

@artola

Description

@artola

Provide a general summary of the issue here

LongPressEvent and MoveEvent are not exposed in @react-aria/interactions type exports:

export type {PressEvent, PressEvents, MoveStartEvent, MoveMoveEvent, MoveEndEvent, MoveEvents, HoverEvent, HoverEvents, FocusEvents, KeyboardEvents} from '@react-types/shared';

and later on react-aria type exports:

export type {FocusProps, FocusResult, FocusVisibleProps, FocusVisibleResult, FocusWithinProps, FocusWithinResult, HoverProps, HoverResult, InteractOutsideProps, KeyboardProps, KeyboardResult, LongPressProps, LongPressResult, MoveEvents, MoveResult, PressHookProps, PressProps, PressResult, ScrollWheelProps, PressEvent, PressEvents, MoveStartEvent, MoveMoveEvent, MoveEndEvent, HoverEvent, HoverEvents, FocusEvents, KeyboardEvents} from '@react-aria/interactions';

It seems just forgotten.

🤔 Expected Behavior?

It should be exported like other "Long*" and "Move" types.

😯 Current Behavior

LongPressEvent and MoveEvent are missing.

💁 Possible Solution

Just export in both packages.

🔦 Context

No response

🖥️ Steps to Reproduce

https://codesandbox.io/p/sandbox/misty-feather-6wnsff?file=%2Fsrc%2FApp.tsx

Version

RA 3.44.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions