Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@noriginmedia/react-spatial-navigation

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@noriginmedia/react-spatial-navigation - npm Package Versions

124

2.8.0

Diff

Changelog

Source

[2.8.0]

Removed

  • dist folder is removed from source. It is generated only when publishing to NPM now.
asgvard
published 2.7.2 •

Changelog

Source

[2.7.2]

Changed

  • Allowed components to be focused with setFocus even if they have focusable={false}
asgvard
published 2.7.1 •

Changelog

Source

[2.7.1]

Added

  • focusable prop that enables component as a focusable target. Default is true. Usable when you need to temporarily disable focusable behaviour on the component. E.g. disabled button state.

Changed

  • Moved react and react-dom to peer dependencies
asgvard
published 2.6.0 •

Changelog

Source

[2.6.0]

Fixed

  • Key up triggers .cancel() instead of .flush()

Added

  • Throttling now applies options to disable trailing functions
asgvard
published 2.5.0 •

Changelog

Source

[2.5.0]

Fixed

  • Throttling is now only applied if the throttle option supplied was greater than 0

Added

  • Key up now flushes any throttled input
asgvard
published 2.4.0 •

Changelog

Source

[2.4.0]

Added

  • added support for onArrowPress property, it enables to add a custom behavior when arrows are pressed and can prevent the default navigation.
asgvard
published 2.3.2 •

Changelog

Source

[2.3.2]

Fixed

  • Fixed an issue where the lastFocusedChildKey were not saved for all focusable parents when focus is jumping to another tree branch with setFocus.
asgvard
published 2.3.1 •

Changelog

Source

[2.3.1]

Added

  • Added throttle property to throttle the function fired by the event listener.
asgvard
published 2.3.0 •

Changelog

Source

[2.3.0]

Added

  • Added support for Native environment. Now if the service is initialized with nativeMode flag, it will skip creating window event listeners, measuring coordinates and other web-only features. It will still continue to register all focusable components and update focused flag on them.
  • Added new method stealFocus to withFocusable hoc. It works exactly the same as setFocus apart from that it doesn't care about arguments passed to this method. This is useful when binding it to a callback that passed some params back that you don't care about.
asgvard
published 2.2.1 •

Changelog

Source

[2.2.1]

Changed

  • Improved the main navigation algorithm. Instead of calculating distance between center of the borders between 2 items in the direction of navigation, the new algorithm now prioritises the distance by the main coordinate and then takes into account the distance by the secondary coordinate. Inspired by this algorithm

Removed

  • Removed propagateFocus config option and prop for withFocusable HOC because it was always used for items with children items anyway
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc