Skip to content

Commit

Permalink
Merge pull request #11532 from wellcomecollection/upgrade-focustrap
Browse files Browse the repository at this point in the history
Upgrade focus-trap-react
  • Loading branch information
rcantin-w authored Feb 4, 2025
2 parents c3e24f2 + cd1c7f2 commit 617094f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"babel-plugin-styled-components": "^2.1.4",
"cookies-next": "^4.1.1",
"elastic-apm-node": "^3.51.0",
"focus-trap-react": "^10.2.3",
"focus-trap-react": "^11.0.3",
"fontfaceobserver": "^2.0.13",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion common/views/components/Buttons/Buttons.Dropdown.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FocusTrap from 'focus-trap-react';
import { FocusTrap } from 'focus-trap-react';
import {
FunctionComponent,
PropsWithChildren,
Expand Down
2 changes: 1 addition & 1 deletion common/views/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FocusTrap from 'focus-trap-react';
import { FocusTrap } from 'focus-trap-react';
import NextLink from 'next/link';
import {
FunctionComponent,
Expand Down
2 changes: 1 addition & 1 deletion common/views/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FocusTrap from 'focus-trap-react';
import { FocusTrap } from 'focus-trap-react';
import {
FunctionComponent,
MutableRefObject,
Expand Down
30 changes: 15 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4347,9 +4347,9 @@
integrity sha512-pg9d0yC4rVNWQzX8U7xb4olIOFuuVL9za3bzMT2pu2SU0SNEi66i2qrvhE2qt0HvkhuCaWJu7pLNOt/Pj8BIrw==

"@types/node@^20.2.3":
version "20.17.6"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.17.6.tgz#6e4073230c180d3579e8c60141f99efdf5df0081"
integrity sha512-VEI7OdvK2wP7XHnsuXbAJnEpEkF6NjSN45QJlL4VGqZSXsnicpesdTWsg9RISeSdYd3yeRj/y3k5KGjUXYnFwQ==
version "20.17.16"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.17.16.tgz#b33b0edc1bf925b27349e494b871ca4451fabab4"
integrity sha512-vOTpLduLkZXePLxHiHsBLp98mHGnl8RptV4YAO3HfKO5UHjDvySGbxKtpYfy8Sx5+WKcgc45qNreJJRVM3L6mw==
dependencies:
undici-types "~6.19.2"

Expand Down Expand Up @@ -7868,18 +7868,18 @@ flow-parser@0.*:
resolved "https://registry.yarnpkg.com/flow-parser/-/flow-parser-0.252.0.tgz#8f9795cbd1b5108f1aec2602f951dcb97ffbd247"
integrity sha512-z8hKPUjZ33VLn4HVntifqmEhmolUMopysnMNzazoDqo1GLUkBsreLNsxETlKJMPotUWStQnen6SGvUNe1j4Hlg==

focus-trap-react@^10.2.3:
version "10.3.1"
resolved "https://registry.yarnpkg.com/focus-trap-react/-/focus-trap-react-10.3.1.tgz#55d8933fc7a2b124e92f233797f4d782214f56ae"
integrity sha512-PN4Ya9xf9nyj/Nd9VxBNMuD7IrlRbmaG6POAQ8VLqgtc6IY/Ln1tYakow+UIq4fihYYYFM70/2oyidE6bbiPgw==
focus-trap-react@^11.0.3:
version "11.0.3"
resolved "https://registry.yarnpkg.com/focus-trap-react/-/focus-trap-react-11.0.3.tgz#fe46bbe2a024379b3783cad73187197bafbadb88"
integrity sha512-tS1+enWS/gwCHk2WIF3KpM2oz7Y3HsnRImzHZNRgCBLWXzNG4XQVlJgbqdLr4lBKRXGdDBjQYitSh1bf2xe4Ag==
dependencies:
focus-trap "^7.6.1"
focus-trap "^7.6.4"
tabbable "^6.2.0"

focus-trap@^7.6.1:
version "7.6.1"
resolved "https://registry.yarnpkg.com/focus-trap/-/focus-trap-7.6.1.tgz#cdbcc7973fe135b2c739eabfebfa442351747361"
integrity sha512-nB8y4nQl8PshahLpGKZOq1sb0xrMVFSn6at7u/qOsBZTlZRzaapISGENcB6mOkoezbClZyiMwEF/dGY8AZ00rA==
focus-trap@^7.6.4:
version "7.6.4"
resolved "https://registry.yarnpkg.com/focus-trap/-/focus-trap-7.6.4.tgz#455ec5c51fee5ae99604ca15142409ffbbf84db9"
integrity sha512-xx560wGBk7seZ6y933idtjJQc1l+ck+pI3sKvhKozdBV1dRZoKhkW5xoCaFv9tQiX5RH1xfSxjuNu6g+lmN/gw==
dependencies:
tabbable "^6.2.0"

Expand Down Expand Up @@ -13039,9 +13039,9 @@ tr46@~0.0.3:
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==

ts-api-utils@^1.0.1:
version "1.4.0"
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.4.0.tgz#709c6f2076e511a81557f3d07a0cbd566ae8195c"
integrity sha512-032cPxaEKwM+GT3vA5JXNzIaizx388rhsSW79vGRNGXfRRAdEAn2mvk36PvK5HnOchyWZ7afLEXqYCvPCrzuzQ==
version "1.4.3"
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.4.3.tgz#bfc2215fe6528fecab2b0fba570a2e8a4263b064"
integrity sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==

ts-dedent@^2.0.0:
version "2.2.0"
Expand Down

0 comments on commit 617094f

Please sign in to comment.