Skip to content

Releases: NoriginMedia/Norigin-Spatial-Navigation

New "useGetBoundingClientRect" config option

10 Mar 10:53
Compare
Choose a tag to compare

New init config option useGetBoundingClientRect that affects the measurements of sizes and coordinates.

Added setThrottle

20 Dec 11:27
32dc88d
Compare
Choose a tag to compare

Added

  • Add setThrottle to dynamically change throttle time. In relation to issue #45

Changed

  • Remove event listeners for unbindEventHandlers regardless of throttle value

Fix focus lost

15 Dec 10:09
6a7e164
Compare
Choose a tag to compare

Changed

  • Update parentFocusKey when removeFocusable
  • Fix issue with destroy (added bind)

es5 compliant (removed Reflect)

09 Dec 11:44
541634d
Compare
Choose a tag to compare

Replaced Reflect.deleteProperty with delete, to be es5 compliant.

Accept `focusDetails` argument in focusSelf

07 Dec 14:08
10fe198
Compare
Choose a tag to compare

Added focusDetails argument in focusSelf (and also in setFocus).

Also, I modified the focusDetails interface to include either an event, nativeEvent or any key-value combination required. This object will be received at the onFocus callback.

Output bundle is targeting ES5

13 Sep 14:48
Compare
Choose a tag to compare

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

08 Sep 10:33
Compare
Choose a tag to compare

[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

07 Sep 12:14
Compare
Choose a tag to compare

[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

16 Jun 16:07
Compare
Choose a tag to compare

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

12 May 11:34
Compare
Choose a tag to compare

[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