Releases: NoriginMedia/react-spatial-navigation
Updated Docs to use scoped package from NPM
v2.0.5 2.0.5
Published to NPM
v2.0.4 2.0.4
Prepared package for NPM publishing
v2.0.3 Merge remote-tracking branch 'origin/master'
Fixed an issue with DOM node updates
Sometimes React component updates the DOM node without the system knowing about that, so its layout (coordinates and measurements) are not updated in the "node" ref that is stored in the system.
Debug and Visual Debug modes. Improved siblings coordinates algorithm.
- Now you can use
debug
andvisualDebug
flags in init config to enable these modes. - Improved the way of how
smartNavigate
filters the siblings by the coordinates.
Added documentation, issue templates, contribution guide
This is a major release after we added proper documentation, issue templates and contribution guide.
Performance optimisations
In this release we removed usage of React Context that was keeping the current focused element on the screen. Context caused all focusable components to get re-rendered every time you change focus to another element. Now each component has its own "focused" state that is changed by the spatialNavigation service externally. This makes it to re-render 2 components at a time - the one that got new focus and the one that lost focus.
Fixed an issue where parent was always selecting first child
Parent nodes will now respect the "propagateFocus" property correctly and won't select first child if this property is not set.
Bugfixing. Pause/resume functionality
Added pauseSpatialNavigation and resumeSpatialNavigation methods to HOC.
Typo fixes.
Forget Last Child option, bugfixing, optimisation
Added Forget Last Child option in order to ignore "auto focus last child" default logic.
Fixed TypeError caused when trying to enhance immutable component with setPropTypes, that tries to set static prop on non-extensible object.
Optimised compose wrappers call, removed unnecessary function wrap.