Skip to content

Releases: NoriginMedia/Norigin-Spatial-Navigation

@noriginmedia/norigin-spatial-navigation-core@3.0.1

Choose a tag to compare

@github-actions github-actions released this 14 Apr 07:56
8e17cab

Patch Changes

  • 74b4165: - Fixed missing null checks for getForcedFocusKey in smartNavigate and setFocus
  • 98bef7c: - Deprecate nativeMode option
  • ed4186e: - Make focusDetails optional in navigateByDirection

v3.0.0

Choose a tag to compare

@xavi160 xavi160 released this 19 Mar 15:55
4a67d75

What's Changed

New Contributors

Full Changelog: https://github.com/NoriginMedia/Norigin-Spatial-Navigation/compare/v2.3.0...@noriginmedia/norigin-spatial-navigation@3.0.0

New callback `onArrowRelease`

Choose a tag to compare

@asgvard asgvard released this 19 Feb 09:35

Added

  • New callback onArrowRelease that is called when Arrow key is released on a component. Receives the direction and extraProps as params.

data-focused attribute for focused items

Choose a tag to compare

@asgvard asgvard released this 16 Jan 08:27

[2.2.3]

  • Enhanced focus behavior by adding and removing the data-focused attribute during focus transitions. This allows to check if the item has focus via DOM attributes. Can be useful for e2e tests automation.

Exporting top level core service

Choose a tag to compare

@xavi160 xavi160 released this 06 Dec 10:18
e6ac578

What's Changed

Full Changelog: v2.2.1...v2.2.2

Dynamic RTL Support and Custom Distance Calculation Enhancements

Choose a tag to compare

@Braggiouy Braggiouy released this 02 Oct 09:07
06cc026

[2.2.1]

Added

  • New init config option distanceCalculationMethod that allows switching between edge-based, center-based and corner-based (default) distance calculations.
  • Support for a custom distance calculation function via the customDistanceCalculationFunction option, enabling custom logic for determining distances between focusable components. This will override the getSecondaryAxisDistance method.
  • Added updateRTL method to update the RTL behavior dynamically. This method allows toggling the Right-to-Left layout at runtime, updating the spatial navigation behavior without requiring reinitialization.

domNodeFocusOptions support

Choose a tag to compare

@predikament predikament released this 20 Aug 12:50
631bf3e

Added

  • new init config option domNodeFocusOptions for passing FocusOptions when using shouldFocusDOMNode

RTL support, native events support

Choose a tag to compare

@asgvard asgvard released this 15 Nov 13:40

Added

  • new init config option shouldUseNativeEvents that enables the use of native events for triggering actions, such as clicks or key presses.
  • new init config option rtl that changes focus behavior for layouts in right-to-left (RTL) languages such as Arabic and Hebrew.

Console warn on empty ref, support for strings for Key Event names

Choose a tag to compare

@asgvard asgvard released this 16 Oct 12:38

[2.0.2]

Added

  • Console warning when passing an empty ref to useFocusable
  • Support for string names for Key Events. Now you can configure the key map with numbers or event names like ArrowRight.

Restoring focus to the parent with `preferredChildFocusKey` set

Choose a tag to compare

@asgvard asgvard released this 09 Oct 12:01

[2.0.1]

Fixed

  • Restoring focus to the parent with preferredChildFocusKey set