Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@enact/spotlight

Package Overview
Dependencies
Maintainers
1
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enact/spotlight - npm Package Compare versions

Comparing version 4.7.3 to 4.7.4

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Change Log

## [4.7.4] - 2023-08-31
No significant changes.
## [4.7.3] - 2023-08-10

@@ -7,0 +11,0 @@

4

package.json
{
"name": "@enact/spotlight",
"version": "4.7.3",
"version": "4.7.4",
"description": "A focus management library",

@@ -27,3 +27,3 @@ "repository": {

"dependencies": {
"@enact/core": "^4.7.3",
"@enact/core": "^4.7.4",
"classnames": "^2.3.2",

@@ -30,0 +30,0 @@ "prop-types": "^15.8.1",

@@ -154,3 +154,4 @@ "use strict";

var notifyKeyDown = function notifyKeyDown(keyCode, callback) {
var palmSystem = window.PalmSystem;
var _window$webOSSystem;
var webOSSystem = (_window$webOSSystem = window.webOSSystem) !== null && _window$webOSSystem !== void 0 ? _window$webOSSystem : window.PalmSystem;

@@ -164,3 +165,3 @@ // for hide/show pointer events, handle them and return true

return true;
} else if (!(0, _keymap.is)('nonModal', keyCode) && !(0, _keymap.is)('cancel', keyCode) && !((0, _keymap.is)('enter', keyCode) && palmSystem && palmSystem.cursor && palmSystem.cursor.visibility)) {
} else if (!(0, _keymap.is)('nonModal', keyCode) && !(0, _keymap.is)('cancel', keyCode) && !((0, _keymap.is)('enter', keyCode) && webOSSystem && webOSSystem.cursor && webOSSystem.cursor.visibility)) {
setPointerMode(false);

@@ -167,0 +168,0 @@ }

@@ -139,13 +139,15 @@ "use strict";

function setPlatformPointerMode() {
var palmSystem = window.PalmSystem;
if (palmSystem && palmSystem.cursor) {
(0, _pointer.setPointerMode)(palmSystem.cursor.visibility);
var _window$webOSSystem;
var webOSSystem = (_window$webOSSystem = window.webOSSystem) !== null && _window$webOSSystem !== void 0 ? _window$webOSSystem : window.PalmSystem;
if (webOSSystem && webOSSystem.cursor) {
(0, _pointer.setPointerMode)(webOSSystem.cursor.visibility);
}
}
function focusElement(elem, containerIds, fromPointer) {
var _window$PalmSystem$cu;
var _window$webOSSystem2, _webOSSystem$cursor;
if (!elem) {
return false;
}
if ((0, _pointer.getPointerMode)() && !fromPointer && ((0, _inputType.getInputType)() === 'touch' || typeof window !== 'undefined' && (!window.PalmSystem || (_window$PalmSystem$cu = window.PalmSystem.cursor) !== null && _window$PalmSystem$cu !== void 0 && _window$PalmSystem$cu.visibility))) {
var webOSSystem = (_window$webOSSystem2 = window.webOSSystem) !== null && _window$webOSSystem2 !== void 0 ? _window$webOSSystem2 : window.PalmSystem;
if ((0, _pointer.getPointerMode)() && !fromPointer && ((0, _inputType.getInputType)() === 'touch' || typeof window !== 'undefined' && (!webOSSystem || (_webOSSystem$cursor = webOSSystem.cursor) !== null && _webOSSystem$cursor !== void 0 && _webOSSystem$cursor.visibility))) {
(0, _container.setContainerLastFocusedElement)(elem, containerIds);

@@ -152,0 +154,0 @@ return false;

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