Skip to content

Releases: NoriginMedia/Norigin-Spatial-Navigation

Output bundle is targeting ES5

Choose a tag to compare

@asgvard asgvard released this 13 Sep 14:48

Previous versions still had some arrow functions in the bundle coming from the Webpack itself, even though TS config had ES5 as target. Now the bundle is ES5 compatible.

React v18 StrictMode support

Choose a tag to compare

@asgvard asgvard released this 08 Sep 10:33

[1.1.0]

Added

  • Support for React v18 StrictMode. Added useEffectOnce to avoid multiple effect runs on mount that was breaking the
    generation of the focusKeys.

Fixed

  • Few TS errors that somehow not being checked when the app is built and published ¯_(ツ)_/¯.

getCurrentFocusKey + multiple codes per key direction

Choose a tag to compare

@asgvard asgvard released this 07 Sep 12:14

[1.0.6]

Added

  • Function (getCurrentFocusKey) for retrieving the currently focused component's focus key (#30)
  • Support for passing multiple key codes per direction in setKeyMap (#29)

Added generic P type to be passed to useFocusable, fixed lodash imports

Choose a tag to compare

@asgvard asgvard released this 16 Jun 16:07

Added

  • Added generic P type for the props passed to useFocusable hook that is available in all callbacks that bounce props back.

Changed

  • Changed all lodash imports to cherry-picked ones to avoid the whole lodash lib to be bundled in the project.

Fixed Webpack issue in node env, added eslint plugins

Choose a tag to compare

@asgvard asgvard released this 12 May 11:34

[1.0.4]

Added

  • Eslint dependencies required by eslint-config-airbnb

Fixed

  • Fixed issue in Node environment - Webpack global object is now this instead of self

[BUGFIX] Added missing callbacks to the update effect

Choose a tag to compare

@asgvard asgvard released this 29 Apr 16:06
v1.0.3

Added missing callbacks to the update effect

Changed measureLayout to calculate coords based on offsets instead of getClientBoundRect

Choose a tag to compare

@asgvard asgvard released this 25 Apr 15:30

Changed measureLayout back to calculate coords based on offsetTop/Left/Width/Height instead of getClientBoundRect

Migrated to React Hooks

Choose a tag to compare

@asgvard asgvard released this 28 Mar 13:17

Initial release of React Hooks implementation of the library. Previously was based on HOC.