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.2 to 4.7.3

10

CHANGELOG.md

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

## [4.7.3] - 2023-08-10
### Added
- `spotlight/SpotlightContainerDecorator` config option `leaveFor` to direct which element receives focus when the focus is leaving
## [4.7.2] - 2023-07-14

@@ -12,2 +18,6 @@

## [4.5.4] - 2023-06-07
No significant changes.
## [4.7.1] - 2023-06-02

@@ -14,0 +24,0 @@

4

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

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

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

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

@@ -30,2 +30,9 @@ // Type definitions for spotlight/SpotlightContainerDecorator

/**
* Directs which element receives focus when the focus is leaving from the current container using 5-way direction keys.
If `{down: '#left'}` , the focus moves to the DOM element whose id value is `left` when pressing the 5-way down.
If `{left: '', right: ''}` , the focus cannot leave the current container with 5-way left and right.
If `null` , the default 5-way behavior will be applied.
*/
leaveFor?: object;
/**
* Filter the navigable elements.

@@ -32,0 +39,0 @@ */

@@ -110,2 +110,14 @@ "use strict";

/**
* Directs which element receives focus when the focus is leaving from the current container using 5-way direction keys.
* If `{down: '#left'}`, the focus moves to the DOM element whose id value is `left` when pressing the 5-way down.
* If `{left: '', right: ''}`, the focus cannot leave the current container with 5-way left and right.
* If `null`, the default 5-way behavior will be applied.
*
* @type {Object}
* @default null
* @memberof spotlight/SpotlightContainerDecorator.SpotlightContainerDecorator.defaultConfig
* @public
*/
leaveFor: null,
/**
* Filter the navigable elements.

@@ -112,0 +124,0 @@ *

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