react-stickerpipe
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -23,2 +23,6 @@ 'use strict'; | ||
var _reactEventListener = require('react-event-listener'); | ||
var _reactEventListener2 = _interopRequireDefault(_reactEventListener); | ||
var _client = require('./client'); | ||
@@ -71,9 +75,18 @@ | ||
_this.handleClickOutside = function () { | ||
_this.handleClickOutside = function (event) { | ||
var hideMenu = _this.props.hideMenu; | ||
hideMenu(); | ||
hideMenu(event); | ||
}; | ||
_this.handleKeyUp = function (event) { | ||
var hideMenu = _this.props.hideMenu; | ||
if (event.which === 27) { | ||
hideMenu(event); | ||
} | ||
}; | ||
_this.state = { | ||
@@ -245,3 +258,4 @@ stickerPacks: [], | ||
colors: mergedColors | ||
}) | ||
}), | ||
_react2.default.createElement(_reactEventListener2.default, { target: 'window', onKeyUp: this.handleKeyUp }) | ||
); | ||
@@ -248,0 +262,0 @@ } |
{ | ||
"name": "react-stickerpipe", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "React Component for StickerPipe API", | ||
@@ -76,2 +76,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"react-event-listener": "^0.4.5", | ||
"react-onclickoutside": "^6.1.1", | ||
@@ -78,0 +79,0 @@ "superagent": "^3.0.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
42979
916
5
+ Addedreact-event-listener@^0.4.5
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedreact-event-listener@0.4.5(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)
+ Addedwarning@3.0.0(transitive)