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

134

2.11.0

Diff

Changelog

Source

[2.11.0]

Changed

  • onBecameBlurred and onBecameFocused are always invoked synchonously with focus change and not on componentDidUpdate

Added

  • setFocus and navigateByDirection accept an details object, this object is passed back on onBecameBlurred and onBecameFocused callbacks
asgvard
published 2.10.0 •

Changelog

Source

[2.10.0]

Changed

  • Changed behaviour of onBecameFocused, now it's invoked also in case of stealFocus

Added

  • Added onBecameBlurred with the same behaviour of onBecameFocused but invoked on component losing focus
salvan13
published 2.9.3 •

Changelog

Source

[2.9.3]

Added

  • Added KeyDetails param on callback functions onEnterPress and onArrowPress
salvan13
published 2.9.2 •

Changelog

Source

[2.9.2]

Fixed

  • Fixed issue #46 Focus jumps on wrong component: Removed setTimeout in measureLayout to avoid coordinates mismatches with DOM nodes.
asgvard
published 2.9.1 •

Changelog

Source

[2.9.1]

Added

  • Added a testing library (Jest).
  • Added a private function getNearestChild that helps to find the nearest child by coordinates.
  • Added a unit test of getNearestChild.

Removed

  • Removed old logic of finding the nearest child by coordinates of getNextFocusKey method (We use the getNearestChild function instead).
asgvard
published 2.9.0 •

Changelog

Source

[2.9.0]

Added

  • Added smart focusing by direction (left, right, top, down), if you can't use buttons or focusing by key. Use navigateByDirection method for it.
salvan13
published 2.8.4 •

Changelog

Source

[2.8.4]

Fixed

  • Fixed useless logIndex update.
asgvard
published 2.8.3 •

Changelog

Source

[2.8.3]

Fixed

  • Fixed missing reference to a component in native mode
asgvard
published 2.8.2 •

Changelog

Source

[2.8.2]

Added

  • Added guard checks for Enter press and Arrow press to check whether component exists
asgvard
published 2.8.1 •

Changelog

Source

[2.8.1]

Added

  • Added a copy of "node" ref to "layout" to also have it onBecameFocused callback
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