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 1.7.0 to 1.8.0

8

CHANGELOG.md

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

## [1.8.0] - 2017-09-07
### Fixed
- `spotlight/Spottable` to clean up internal spotted state when blurred within `onSpotlightDisappear` handler
## [1.7.0] - 2017-08-23

@@ -10,3 +16,3 @@

- `spotlight/SpotlightContainerDecorator` config option `continue5WayHold` to support moving focus to the next spottable element on 5-way hold key.
- `spotlight/SpotlightContainerDecorator` config option `continue5WayHold` to support moving focus to the next spottable element on 5-way hold key
- `spotlight/Spottable` ability to restore focus when an initially disabled component becomes enabled

@@ -13,0 +19,0 @@

4

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

@@ -24,3 +24,3 @@ "main": "src/spotlight.js",

"dependencies": {
"@enact/core": "^1.7.0",
"@enact/core": "^1.8.0",
"prop-types": "~15.5.10",

@@ -27,0 +27,0 @@ "ramda": "~0.24.1",

@@ -262,7 +262,2 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

if (spottable) {
rest.onBlur = this.handleBlur;
rest.onFocus = this.handleFocus;
rest.onKeyDown = this.handleKeyDown;
rest.onKeyUp = this.handleKeyUp;
if (rest.className) {

@@ -276,2 +271,6 @@ rest.className += ' ' + spottableClass;

return React.createElement(Wrapped, _extends({}, rest, {
onBlur: this.handleBlur,
onFocus: this.handleFocus,
onKeyDown: this.handleKeyDown,
onKeyUp: this.handleKeyUp,
disabled: disabled,

@@ -278,0 +277,0 @@ tabIndex: tabIndex

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