stipsan / react-spring-bottom-sheet

Accessible ♿️, Delightful ✨, & Fast 🚀
https://react-spring.bottom-sheet.dev/
MIT License
967 stars 133 forks source link

fix(deps): Update dependency focus-trap to v7 #266

Open renovate[bot] opened 1 year ago

renovate[bot] commented 1 year ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
focus-trap ^6.2.2 -> ^7.0.0 age adoption passing confidence

Release Notes

focus-trap/focus-trap (focus-trap) ### [`v7.6.0`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#760) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.5.4...v7.6.0) ##### Minor Changes - [`8aeacee`](https://redirect.github.com/focus-trap/focus-trap/commit/8aeacee): Move `Escape` key handler to target phase to allow more control in `escapeDeactivates` ([#​1247](https://redirect.github.com/focus-trap/focus-trap/issues/1247)) ### [`v7.5.4`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#754) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.5.3...v7.5.4) ##### Patch Changes - [`680f6e8`](https://redirect.github.com/focus-trap/focus-trap/commit/680f6e8): Fix issue with not being able to cycle back to the start from the last element if there is a focusable web component inside the focus-trap (([#​1068](https://redirect.github.com/focus-trap/focus-trap/issues/1068))\[https://github.com/focus-trap/focus-trap/issues/1068](https://redirect.github.com/focus-trap/focus-trap/issues/1068)8]) ### [`v7.5.3`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#753) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.5.2...v7.5.3) ##### Patch Changes - [`203b322`](https://redirect.github.com/focus-trap/focus-trap/commit/203b322): Fix missing typings for initialFocus option ([#​1060](https://redirect.github.com/focus-trap/focus-trap/issues/1060)) ### [`v7.5.2`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#752) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.5.1...v7.5.2) ##### Patch Changes - [`b73eb02`](https://redirect.github.com/focus-trap/focus-trap/commit/b73eb02): Remove references to `Array.prototype.findLast()` not well supported in Safari ([#​996](https://redirect.github.com/focus-trap/focus-trap/issues/996)) ### [`v7.5.1`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#751) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.5.0...v7.5.1) ##### Patch Changes - [`d9e2546`](https://redirect.github.com/focus-trap/focus-trap/commit/d9e2546): Fix possible exception in new `Tabbable.getTabIndex()` when initializing trap ### [`v7.5.0`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#750) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.4.3...v7.5.0) ##### Minor Changes - [`5e2f913`](https://redirect.github.com/focus-trap/focus-trap/commit/5e2f913): Adds support for nodes with a positive tabindex in single-container traps only ([#​375](https://redirect.github.com/focus-trap/focus-trap/issues/375)) ### [`v7.4.3`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#743) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.4.2...v7.4.3) ##### Patch Changes - [`134678b`](https://redirect.github.com/focus-trap/focus-trap/commit/134678b): Ensure focus is kept inside the trap when focused element is removed from the DOM ([focus-trap/focus-trap-react#962](https://redirect.github.com/focus-trap/focus-trap-react/issues/962)) ### [`v7.4.2`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#742) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.4.1...v7.4.2) ##### Patch Changes - [`db62ce3`](https://redirect.github.com/focus-trap/focus-trap/commit/db62ce3): Clicking on open shadowDOM components within a focus trap's container when `clickOutsideDeactivates=true` should not deactivate the focus trap. ([#​959](https://redirect.github.com/focus-trap/focus-trap/issues/959)) ### [`v7.4.1`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#741) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.4.0...v7.4.1) ##### Patch Changes - [`4f720ff`](https://redirect.github.com/focus-trap/focus-trap/commit/4f720ff): Bump tabbable to v6.1.2 for nwsapi patch ### [`v7.4.0`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#740) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.3.1...v7.4.0) ##### Minor Changes - [`da97007`](https://redirect.github.com/focus-trap/focus-trap/commit/da97007): Added new onPost/Pause and onPost/Unpause hooks when un/pausing a trap (also called when auto-un/paused as a result of de/activating a second trap while another is currently active). ([focus-trap-react#948](https://redirect.github.com/focus-trap/focus-trap-react/issues/948)) ### [`v7.3.1`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#731) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.3.0...v7.3.1) ##### Patch Changes - [`a00cfa5`](https://redirect.github.com/focus-trap/focus-trap/commit/a00cfa5): Bump tabbable to v6.1.1 for JSDom fixes ### [`v7.3.0`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#730) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.2.0...v7.3.0) ##### Minor Changes - [`ae7129d`](https://redirect.github.com/focus-trap/focus-trap/commit/ae7129d): Bump tabbable to v6.1.0 adding support for the new HTML `inert` attribute in browsers that support it (NOTE: FireFox does not support it at this time). Also fixes a bug. See tabbable CHANGELOG for more info. ##### Patch Changes - [`a27ad58`](https://redirect.github.com/focus-trap/focus-trap/commit/a27ad58): Fix incorrect behavior of `returnFocusOnDeactivate` option when set to true (or defaulted to true) along with `clickOutsideDeactivates=true` and the outside click that deactivates is on a focusable node. Focus was remaining on that node instead of returning to the node focused just prior to activation. ([#​893](https://redirect.github.com/focus-trap/focus-trap/issues/893)) ### [`v7.2.0`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#720) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.1.0...v7.2.0) ##### Minor Changes - [`b0482af`](https://redirect.github.com/focus-trap/focus-trap/commit/b0482af): Add new `isKeyForward()` and `isKeyBackward()` options ([#​612](https://redirect.github.com/focus-trap/focus-trap/issues/612)) ### [`v7.1.0`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#710) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v7.0.0...v7.1.0) ##### Minor Changes - [`88cc9bc`](https://redirect.github.com/focus-trap/focus-trap/commit/88cc9bc): Provide new `trapStack` option to make it possible to coordinate auto-activation/pausing between multiple `focus-trap` instances on the same page. ##### Patch Changes - [`4f97b38`](https://redirect.github.com/focus-trap/focus-trap/commit/4f97b38): Bump tabbable to v6.0.1 for a bug fix. See tabbable's changelog for more details. - [`f13de76`](https://redirect.github.com/focus-trap/focus-trap/commit/f13de76): Mention special Safari setting to enable normal DOM-based tab order in README. [#​783](https://redirect.github.com/focus-trap/focus-trap/issues/783) ### [`v7.0.0`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#700) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v6.9.4...v7.0.0) ##### Major Changes - [`5b64423`](https://redirect.github.com/focus-trap/focus-trap/commit/5b64423): Revised and clarified official browser support (still as broad and deep as *reasonably* possible). - [`47f62ac`](https://redirect.github.com/focus-trap/focus-trap/commit/47f62ac): 🚨 **Breaking:** Tabbable dependency has been updated to v6.0.0 and contains a breaking change related to detached nodes with its default `displayCheck` setting. See tabbable's [changelog](https://redirect.github.com/focus-trap/tabbable/blob/master/CHANGELOG.md#600) for more information. - [`5b64423`](https://redirect.github.com/focus-trap/focus-trap/commit/5b64423): 🚨 **Breaking:** Dropped support of IE browsers, all versions. - IE11 was [officially retired](https://blogs.windows.com/windowsexperience/2022/06/15/internet-explorer-11-has-retired-and-is-officially-out-of-support-what-you-need-to-know/) on June 15, 2022 (6 weeks ago). There are no longer any versions of IE that are still maintained or even supported by Microsoft. ### [`v6.9.4`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#694) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v6.9.3...v6.9.4) ##### Patch Changes - [`f68882e`](https://redirect.github.com/focus-trap/focus-trap/commit/f68882e): Fix docs and typings to clarify that initialFocus, fallbackFocus, and setReturnFocus options can be functions that also return selector strings. ### [`v6.9.3`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#693) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v6.9.2...v6.9.3) ##### Patch Changes - [`8a8b1f1`](https://redirect.github.com/focus-trap/focus-trap/commit/8a8b1f1): Bump tabbable to v5.3.3 to pick up a small bug fix to web component (shadow DOM) support. ### [`v6.9.2`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#692) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v6.9.1...v6.9.2) ##### Patch Changes - [`ef0ce48`](https://redirect.github.com/focus-trap/focus-trap/commit/ef0ce48): Handle unexpected param (true) passed as the value for the `initialFocus`, `fallbackFocus`, and `setReturnFocus` options: Ignore and perform default behavior. ### [`v6.9.1`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#691) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v6.9.0...v6.9.1) ##### Patch Changes - [`83262a7`](https://redirect.github.com/focus-trap/focus-trap/commit/83262a7): Bumps tabbable to v5.3.2 to pick-up a fix to `displayCheck=full` (default) option behavior that caused issues with detached nodes. ### [`v6.9.0`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#690) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v6.8.1...v6.9.0) ##### Minor Changes - [`2a57e4b`](https://redirect.github.com/focus-trap/focus-trap/commit/2a57e4b): Add new `trap.active` and `trap.paused` readonly state properties on the trap so that the trap's active/paused state can be queried. ##### Patch Changes - [`8fd49df`](https://redirect.github.com/focus-trap/focus-trap/commit/8fd49df): Fixed bug where `clickOutsideDeactivate` handler would get called on the 'click' event even if the node clicked was in the trap. As with 'mousedown' and 'touchstart' events where this option is also used, the handler should only get called if the target node is *outside* the trap. - [`c32c60a`](https://redirect.github.com/focus-trap/focus-trap/commit/c32c60a): Fixed: onDeactivate, onPostDeactivate, and checkCanReturnFocus options originally given to createFocusTrap() were not being used by default when calling `trap.deactivate({...})` with an option set even if that option set didn't specify any overrides of these options. ### [`v6.8.1`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#681) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v6.8.0...v6.8.1) ##### Patch Changes - [`7c86111`](https://redirect.github.com/focus-trap/focus-trap/commit/7c86111): - Bump tabbable to `^5.3.1` (fixing previous update which was incorrectly set to `5.3.0`). - Fix `tabbableOptions` not being used in all internal uses of tabbable APIs. - Expose `displayCheck` option in `tabbableOptions` typings and pass it through to tabbable APIs. - Add info to README about testing traps in JSDom (which is not officially supported). ### [`v6.8.0`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#680) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v6.7.3...v6.8.0) ##### Minor Changes - [`21458c9`](https://redirect.github.com/focus-trap/focus-trap/commit/21458c9): Bumps tabbable to v5.3.0 and includes all changes from the past v6.8.0 beta releases. The big new feature is opt-in Shadow DOM support in tabbable, and a new `getShadowRoot` tabbable option exposed in a new `tabbableOptions` focus-trap config option. - ⚠️ This will likely break your tests **if you're using JSDom** (e.g. with Jest). See [testing in JSDom](./README.md#testing-in-jsdom) for more info. ### [`v6.7.3`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#673) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v6.7.2...v6.7.3) ##### Patch Changes - [`ab20d3d`](https://redirect.github.com/focus-trap/focus-trap/commit/ab20d3d): Fix issue with focusing negative tabindex node and then tabbing away when this node is *not* the last node in the trap's container (([#​611](https://redirect.github.com/focus-trap/focus-trap/issues/611))\[https://github.com/focus-trap/focus-trap/issues/611](https://redirect.github.com/focus-trap/focus-trap/issues/611)1]) ### [`v6.7.2`](https://redirect.github.com/focus-trap/focus-trap/blob/HEAD/CHANGELOG.md#672) [Compare Source](https://redirect.github.com/focus-trap/focus-trap/compare/v6.7.1...v6.7.2) ##### Patch Changes - [`c932330`](https://redirect.github.com/focus-trap/focus-trap/commit/c932330): Fixed bug where tabbing forward from an element with negative tabindex that is last in the trap would result in focus remaining on that element ([565](https://redirect.github.com/focus-trap/focus-trap/issues/565))

Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here

socket-security[bot] commented 1 year ago

New dependency changes detected. Learn more about Socket for GitHub ↗︎


👍 No new dependency issues detected in pull request

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

Pull request alert summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues

📊 Modified Dependency Overview:

⬆️ Updated Package Version Diff Added Capability Access +/- Transitive Count Publisher
focus-trap@7.4.3 6.7.1...7.4.3 None +1/-1 stefcameron