Skip to content

Commit

Permalink
Bump focus-trap to 7.2.0 (#873)
Browse files Browse the repository at this point in the history
Add missing trapStack option from 7.1.0 and new isKeyForward/isKeyBackward
options from 7.2.0.
  • Loading branch information
stefcameron authored Dec 2, 2022
1 parent ac0e1e4 commit 0c98e74
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-dingos-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'focus-trap-react': patch
---

Add missing trapStack option from focus-trap 7.1.0, add new isKeyForward and isKeyBackward options from focus-trap 7.2.0, bump focus-trap to 7.2.0.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"typescript": "^4.9.3"
},
"dependencies": {
"focus-trap": "^7.1.0",
"focus-trap": "^7.2.0",
"tabbable": "^6.0.1"
},
"peerDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions src/focus-trap-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,9 @@ FocusTrap.propTypes = {
]),
getShadowRoot: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),
}),
trapStack: PropTypes.array,
isKeyForward: PropTypes.func,
isKeyBackward: PropTypes.func,
}),
containerElements: PropTypes.arrayOf(PropTypes.instanceOf(ElementType)), // DOM element ONLY
children: PropTypes.oneOfType([
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4268,10 +4268,10 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.0.tgz#a5d06b4a8b01e3a63771daa5cb7a1903e2e57067"
integrity sha512-tW+UkmtNg/jv9CSofAKvgVcO7c2URjhTdW1ZTkcAritblu8tajiYy7YisnIflEwtKssCtOxpnBRoCB7iap0/TA==

focus-trap@^7.1.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/focus-trap/-/focus-trap-7.1.0.tgz#3226e977d76b1fd555c2e4f7ff91f10371f0f2cc"
integrity sha512-CuJvwUBfJCWcU6fc4xr3UwMF5vWnox4isXAixCwrPzCsPKOQjP9T+nTlYT2t+vOmQL8MOQ16eim99XhjQHAuiQ==
focus-trap@^7.2.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/focus-trap/-/focus-trap-7.2.0.tgz#25af61b5635d3c18cd2fd176087db7b60be72c6b"
integrity sha512-v4wY6HDDYvzkBy4735kW5BUEuw6Yz9ABqMYLuTNbzAFPcBOGiGHwwcNVMvUz4G0kgSYh13wa/7TG3XwTeT4O/A==
dependencies:
tabbable "^6.0.1"

Expand Down

0 comments on commit 0c98e74

Please sign in to comment.