@enact/spotlight
Advanced tools
Comparing version 4.7.2 to 4.7.3
@@ -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 @@ |
{ | ||
"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 @@ * |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
403360
7977
Updated@enact/core@^4.7.3