Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

focus-trap

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focus-trap - npm Package Compare versions

Comparing version 2.4.2 to 2.4.3

4

CHANGELOG.md
# Changelog
## 2.4.3
- Fixed: TypeScript signature for `activate` function.
## 2.4.2

@@ -4,0 +8,0 @@

4

index.d.ts

@@ -66,4 +66,4 @@ declare module "focus-trap" {

export interface FocusTrap {
activate(activateOptions: ActivateOptions): void;
deactivate(deactivateOptions: DeactivateOptions): void;
activate(activateOptions?: ActivateOptions): void;
deactivate(deactivateOptions?: DeactivateOptions): void;
pause(): void;

@@ -70,0 +70,0 @@ unpause(): void;

{
"name": "focus-trap",
"version": "2.4.2",
"version": "2.4.3",
"description": "Trap focus within a DOM node.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -65,3 +65,3 @@ # focus-trap

### focusTrap.activate()
### focusTrap.activate([activateOptions])

@@ -80,2 +80,8 @@ Activates the focus trap, adding various event listeners to the document.

`activateOptions`:
These options are used to override the focus trap's default behavior for this particular activation.
- **onActivate** {function | null | false}: Default: whatever you chose for `createOptions.onActivate`. `null` or `false` are the equivalent of a `noop`.
### focusTrap.deactivate([deactivateOptions])

@@ -82,0 +88,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc