New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 Compare versions

Comparing version 2.9.1 to 2.9.2

4

CHANGELOG.md

@@ -7,2 +7,6 @@ # Changelog

## [2.9.2]
### Fixed
- Fixed issue #46 Focus jumps on wrong component: Removed `setTimeout` in `measureLayout` to avoid coordinates mismatches with DOM nodes.
## [2.9.1]

@@ -9,0 +13,0 @@ ### Added

20

dist/measureLayout.js

@@ -35,16 +35,14 @@ "use strict";

if (node && relativeNode) {
setTimeout(function () {
var relativeRect = getRect(relativeNode);
var relativeRect = getRect(relativeNode);
var _getRect = getRect(node),
height = _getRect.height,
left = _getRect.left,
top = _getRect.top,
width = _getRect.width;
var _getRect = getRect(node),
height = _getRect.height,
left = _getRect.left,
top = _getRect.top,
width = _getRect.width;
var x = left - relativeRect.left;
var y = top - relativeRect.top;
var x = left - relativeRect.left;
var y = top - relativeRect.top;
callback(x, y, width, height, left, top);
}, 0);
callback(x, y, width, height, left, top);
}

@@ -51,0 +49,0 @@ };

@@ -630,6 +630,6 @@ 'use strict';

this.log('smartNavigate', 'currentCutoffCoordinate', currentCutoffCoordinate);
this.log('smartNavigate', 'siblings', siblings.length + ' elements:', siblings.map(function (s) {
return s.focusKey;
}).join(', '), siblings.map(function (s) {
return s.node;
this.log('smartNavigate', 'siblings', siblings.length + ' elements:', siblings.map(function (sibling) {
return sibling.focusKey;
}).join(', '), siblings.map(function (sibling) {
return sibling.node;
}));

@@ -636,0 +636,0 @@ }

{
"name": "@noriginmedia/react-spatial-navigation",
"version": "2.9.1",
"version": "2.9.2",
"description": "HOC-based Spatial Navigation (key navigation) solution for React",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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