react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

Expose LongPressEvent and MoveEvent

Open artola opened this issue 2 weeks ago โ€ข 0 comments

Provide a general summary of the issue here

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

https://github.com/adobe/react-spectrum/blob/f61e75cea173140eb74e2f8c4b17ca9ac3fcf2de/packages/%40react-aria/interactions/src/index.ts#L43

and later on react-aria type exports:

https://github.com/adobe/react-spectrum/blob/f61e75cea173140eb74e2f8c4b17ca9ac3fcf2de/packages/react-aria/src/index.ts#L66

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

artola avatar Nov 23 '25 11:11 artola