Socket
Socket
Sign inDemoInstall

focus-trap-react

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focus-trap-react - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

4

CHANGELOG.md
# Changelog
## 3.1.2
- Fix TypeScript declarations so props are available on the imported namespace.
## 3.1.1

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

21

index.d.ts

@@ -1,8 +0,8 @@

declare module "focus-trap-react" {
import { Options as FocusTrapOptions } from "focus-trap";
import * as React from "react";
import { Options as FocusTrapOptions } from 'focus-trap';
import * as React from 'react';
// Extend AllHTMLAttributes to provide completions on DOM properties wherever
// React does.
interface Props extends React.AllHTMLAttributes<any> {
export = FocusTrap;
declare namespace FocusTrap {
export interface Props extends React.AllHTMLAttributes<any> {
active?: boolean;

@@ -13,9 +13,6 @@ paused?: boolean;

// Allow through any properties that weren't picked up
[x: string]: any;
[prop: string]: any;
}
}
class FocusTrap extends React.Component<Props> {}
namespace FocusTrap {}
export = FocusTrap;
}
declare class FocusTrap extends React.Component<FocusTrap.Props> {}
{
"name": "focus-trap-react",
"version": "3.1.1",
"version": "3.1.2",
"description": "A React component that traps focus.",

@@ -5,0 +5,0 @@ "main": "dist/focus-trap-react.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc