focus-trap-react
Advanced tools
Comparing version 8.6.0 to 8.7.0
# Changelog | ||
## 8.7.0 | ||
### Minor Changes | ||
- 7fbe8ca: Update to support new features in `focus-trap@6.6.0` including `initialFocus` which can now be false to prevent initial focus, and `escapeDeactivates` which can now alternately be a function that returns a boolean instead of a straight boolean. | ||
## 8.6.0 | ||
@@ -4,0 +10,0 @@ |
@@ -292,5 +292,5 @@ "use strict"; | ||
checkCanReturnFocus: PropTypes.func, | ||
initialFocus: PropTypes.oneOfType([PropTypes.instanceOf(ElementType), PropTypes.string, PropTypes.func]), | ||
initialFocus: PropTypes.oneOfType([PropTypes.instanceOf(ElementType), PropTypes.string, PropTypes.func, PropTypes.bool]), | ||
fallbackFocus: PropTypes.oneOfType([PropTypes.instanceOf(ElementType), PropTypes.string, PropTypes.func]), | ||
escapeDeactivates: PropTypes.bool, | ||
escapeDeactivates: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]), | ||
clickOutsideDeactivates: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]), | ||
@@ -297,0 +297,0 @@ returnFocusOnDeactivate: PropTypes.bool, |
{ | ||
"name": "focus-trap-react", | ||
"version": "8.6.0", | ||
"version": "8.7.0", | ||
"description": "A React component that traps focus.", | ||
@@ -61,9 +61,9 @@ "main": "dist/focus-trap-react.js", | ||
"@babel/plugin-proposal-class-properties": "^7.12.13", | ||
"@babel/preset-env": "^7.14.5", | ||
"@babel/preset-env": "^7.14.7", | ||
"@babel/preset-react": "^7.14.5", | ||
"@changesets/cli": "^2.16.0", | ||
"@testing-library/cypress": "^7.0.6", | ||
"@testing-library/dom": "^7.31.2", | ||
"@testing-library/dom": "^8.0.0", | ||
"@testing-library/jest-dom": "^5.14.1", | ||
"@testing-library/react": "^11.2.7", | ||
"@testing-library/react": "^12.0.0", | ||
"@testing-library/user-event": "^13.1.9", | ||
@@ -73,16 +73,16 @@ "@types/jquery": "^3.5.5", | ||
"babel-eslint": "^10.1.0", | ||
"babel-jest": "^27.0.2", | ||
"babel-jest": "^27.0.6", | ||
"babelify": "^10.0.0", | ||
"browserify": "^17.0.0", | ||
"budo": "^11.6.4", | ||
"cypress": "^7.5.0", | ||
"cypress": "^7.6.0", | ||
"cypress-plugin-tab": "^1.0.5", | ||
"eslint": "^7.28.0", | ||
"eslint": "^7.29.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-cypress": "^2.11.3", | ||
"eslint-plugin-react": "^7.24.0", | ||
"jest": "^27.0.4", | ||
"jest": "^27.0.6", | ||
"jest-watch-typeahead": "^0.6.4", | ||
"onchange": "^7.1.0", | ||
"prettier": "^2.3.1", | ||
"prettier": "^2.3.2", | ||
"prop-types": "^15.7.2", | ||
@@ -93,6 +93,6 @@ "react": "^17.0.2", | ||
"start-server-and-test": "^1.12.5", | ||
"typescript": "^4.3.2" | ||
"typescript": "^4.3.4" | ||
}, | ||
"dependencies": { | ||
"focus-trap": "^6.5.1" | ||
"focus-trap": "^6.6.0" | ||
}, | ||
@@ -99,0 +99,0 @@ "peerDependencies": { |
@@ -254,2 +254,3 @@ const React = require('react'); | ||
PropTypes.func, | ||
PropTypes.bool, | ||
]), | ||
@@ -261,3 +262,3 @@ fallbackFocus: PropTypes.oneOfType([ | ||
]), | ||
escapeDeactivates: PropTypes.bool, | ||
escapeDeactivates: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]), | ||
clickOutsideDeactivates: PropTypes.oneOfType([ | ||
@@ -264,0 +265,0 @@ PropTypes.bool, |
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
53175
507
Updatedfocus-trap@^6.6.0