react-focus-lock
Advanced tools
Comparing version 1.17.1 to 1.17.2
@@ -29,10 +29,7 @@ "use strict"; | ||
if (process.env.NODE_ENV !== 'production') { | ||
AutoFocusInside.propTypes = { | ||
children: _propTypes.default.node.isRequired, | ||
disabled: _propTypes.default.bool, | ||
className: _propTypes.default.string | ||
}; | ||
} | ||
AutoFocusInside.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: _propTypes.default.node.isRequired, | ||
disabled: _propTypes.default.bool, | ||
className: _propTypes.default.string | ||
} : {}; | ||
AutoFocusInside.defaultProps = { | ||
@@ -39,0 +36,0 @@ disabled: false, |
@@ -28,9 +28,6 @@ "use strict"; | ||
if (process.env.NODE_ENV !== 'production') { | ||
FreeFocusInside.propTypes = { | ||
children: _propTypes.default.node.isRequired, | ||
className: _propTypes.default.string | ||
}; | ||
} | ||
FreeFocusInside.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: _propTypes.default.node.isRequired, | ||
className: _propTypes.default.string | ||
} : {}; | ||
FreeFocusInside.defaultProps = { | ||
@@ -37,0 +34,0 @@ disabled: false, |
@@ -43,5 +43,5 @@ "use strict"; | ||
RenderChildren.propTypes = { | ||
RenderChildren.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: _propTypes.default.node.isRequired | ||
}; | ||
} : {}; | ||
var Fragment = _react.default.Fragment ? _react.default.Fragment : RenderChildren; | ||
@@ -133,5 +133,7 @@ var hidden = { | ||
if (typeof allowTextSelection !== 'undefined') { | ||
// eslint-disable-next-line no-console | ||
console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default'); | ||
if (process.env.NODE_ENV !== 'production') { | ||
if (typeof allowTextSelection !== 'undefined') { | ||
// eslint-disable-next-line no-console | ||
console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default'); | ||
} | ||
} | ||
@@ -175,21 +177,18 @@ | ||
if (process.env.NODE_ENV !== 'production') { | ||
FocusLock.propTypes = { | ||
children: _propTypes.default.node.isRequired, | ||
disabled: _propTypes.default.bool, | ||
returnFocus: _propTypes.default.bool, | ||
noFocusGuards: _propTypes.default.bool, | ||
allowTextSelection: _propTypes.default.bool, | ||
autoFocus: _propTypes.default.bool, | ||
persistentFocus: _propTypes.default.bool, | ||
group: _propTypes.default.string, | ||
className: _propTypes.default.string, | ||
whiteList: _propTypes.default.func, | ||
as: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]), | ||
lockProps: _propTypes.default.object, | ||
onActivation: _propTypes.default.func, | ||
onDeactivation: _propTypes.default.func | ||
}; | ||
} | ||
FocusLock.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: _propTypes.default.node.isRequired, | ||
disabled: _propTypes.default.bool, | ||
returnFocus: _propTypes.default.bool, | ||
noFocusGuards: _propTypes.default.bool, | ||
allowTextSelection: _propTypes.default.bool, | ||
autoFocus: _propTypes.default.bool, | ||
persistentFocus: _propTypes.default.bool, | ||
group: _propTypes.default.string, | ||
className: _propTypes.default.string, | ||
whiteList: _propTypes.default.func, | ||
as: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]), | ||
lockProps: _propTypes.default.object, | ||
onActivation: _propTypes.default.func, | ||
onDeactivation: _propTypes.default.func | ||
} : {}; | ||
FocusLock.defaultProps = { | ||
@@ -196,0 +195,0 @@ disabled: false, |
@@ -105,9 +105,6 @@ "use strict"; | ||
}); | ||
if (process.env.NODE_ENV !== 'production') { | ||
MoveFocusInside.propTypes = { | ||
children: _propTypes.default.node.isRequired, | ||
disabled: _propTypes.default.bool, | ||
className: _propTypes.default.string | ||
}; | ||
} | ||
MoveFocusInside.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: _propTypes.default.node.isRequired, | ||
disabled: _propTypes.default.bool, | ||
className: _propTypes.default.string | ||
} : {}; |
@@ -122,7 +122,5 @@ "use strict"; | ||
if (process.env.NODE_ENV !== 'production') { | ||
FocusTrap.propTypes = { | ||
children: _propTypes.default.node.isRequired | ||
}; | ||
} | ||
FocusTrap.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: _propTypes.default.node.isRequired | ||
} : {}; | ||
@@ -129,0 +127,0 @@ var attachHandler = function attachHandler() { |
@@ -16,10 +16,7 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
if (process.env.NODE_ENV !== 'production') { | ||
AutoFocusInside.propTypes = { | ||
children: PropTypes.node.isRequired, | ||
disabled: PropTypes.bool, | ||
className: PropTypes.string | ||
}; | ||
} | ||
AutoFocusInside.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: PropTypes.node.isRequired, | ||
disabled: PropTypes.bool, | ||
className: PropTypes.string | ||
} : {}; | ||
AutoFocusInside.defaultProps = { | ||
@@ -26,0 +23,0 @@ disabled: false, |
@@ -15,9 +15,6 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
if (process.env.NODE_ENV !== 'production') { | ||
FreeFocusInside.propTypes = { | ||
children: PropTypes.node.isRequired, | ||
className: PropTypes.string | ||
}; | ||
} | ||
FreeFocusInside.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: PropTypes.node.isRequired, | ||
className: PropTypes.string | ||
} : {}; | ||
FreeFocusInside.defaultProps = { | ||
@@ -24,0 +21,0 @@ disabled: false, |
@@ -20,5 +20,5 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
RenderChildren.propTypes = { | ||
RenderChildren.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: PropTypes.node.isRequired | ||
}; | ||
} : {}; | ||
var Fragment = React.Fragment ? React.Fragment : RenderChildren; | ||
@@ -117,5 +117,7 @@ var hidden = { | ||
if (typeof allowTextSelection !== 'undefined') { | ||
// eslint-disable-next-line no-console | ||
console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default'); | ||
if (process.env.NODE_ENV !== 'production') { | ||
if (typeof allowTextSelection !== 'undefined') { | ||
// eslint-disable-next-line no-console | ||
console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default'); | ||
} | ||
} | ||
@@ -161,21 +163,18 @@ | ||
if (process.env.NODE_ENV !== 'production') { | ||
FocusLock.propTypes = { | ||
children: PropTypes.node.isRequired, | ||
disabled: PropTypes.bool, | ||
returnFocus: PropTypes.bool, | ||
noFocusGuards: PropTypes.bool, | ||
allowTextSelection: PropTypes.bool, | ||
autoFocus: PropTypes.bool, | ||
persistentFocus: PropTypes.bool, | ||
group: PropTypes.string, | ||
className: PropTypes.string, | ||
whiteList: PropTypes.func, | ||
as: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), | ||
lockProps: PropTypes.object, | ||
onActivation: PropTypes.func, | ||
onDeactivation: PropTypes.func | ||
}; | ||
} | ||
FocusLock.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: PropTypes.node.isRequired, | ||
disabled: PropTypes.bool, | ||
returnFocus: PropTypes.bool, | ||
noFocusGuards: PropTypes.bool, | ||
allowTextSelection: PropTypes.bool, | ||
autoFocus: PropTypes.bool, | ||
persistentFocus: PropTypes.bool, | ||
group: PropTypes.string, | ||
className: PropTypes.string, | ||
whiteList: PropTypes.func, | ||
as: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), | ||
lockProps: PropTypes.object, | ||
onActivation: PropTypes.func, | ||
onDeactivation: PropTypes.func | ||
} : {}; | ||
FocusLock.defaultProps = { | ||
@@ -182,0 +181,0 @@ disabled: false, |
@@ -87,9 +87,6 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
export { MoveFocusInside as default }; | ||
if (process.env.NODE_ENV !== 'production') { | ||
MoveFocusInside.propTypes = { | ||
children: PropTypes.node.isRequired, | ||
disabled: PropTypes.bool, | ||
className: PropTypes.string | ||
}; | ||
} | ||
MoveFocusInside.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: PropTypes.node.isRequired, | ||
disabled: PropTypes.bool, | ||
className: PropTypes.string | ||
} : {}; |
@@ -102,7 +102,5 @@ import React from 'react'; | ||
if (process.env.NODE_ENV !== 'production') { | ||
FocusTrap.propTypes = { | ||
children: PropTypes.node.isRequired | ||
}; | ||
} | ||
FocusTrap.propTypes = process.env.NODE_ENV !== "production" ? { | ||
children: PropTypes.node.isRequired | ||
} : {}; | ||
@@ -109,0 +107,0 @@ var attachHandler = function attachHandler() { |
{ | ||
"name": "react-focus-lock", | ||
"version": "1.17.1", | ||
"version": "1.17.2", | ||
"description": "It is a trap! (for a focus)", | ||
@@ -55,2 +55,3 @@ "main": "dist/cjs/index.js", | ||
"babel-eslint": "^9.0.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.19", | ||
"chai": "^4.1.0", | ||
@@ -57,0 +58,0 @@ "chai-enzyme": "^1.0.0-beta.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
71359
21
1030
35
14