focus-trap-react
Advanced tools
Comparing version 3.1.0 to 3.1.1
# Changelog | ||
## 3.1.1 | ||
- Fix React import in TypeScript declarations. | ||
## 3.1.0 | ||
@@ -4,0 +8,0 @@ |
declare module "focus-trap-react" { | ||
import { Options as FocusTrapOptions } from "focus-trap"; | ||
import React from "react"; | ||
import * as React from "react"; | ||
// Extend AllHTMLAttributes to provide completions on DOM properties wherever | ||
// React does. | ||
export interface Props extends React.AllHTMLAttributes<any> { | ||
interface Props extends React.AllHTMLAttributes<any> { | ||
active?: boolean; | ||
@@ -16,3 +16,6 @@ paused?: boolean; | ||
export default class FocusTrap extends React.Component<Props> {} | ||
class FocusTrap extends React.Component<Props> {} | ||
namespace FocusTrap {} | ||
export = FocusTrap; | ||
} |
{ | ||
"name": "focus-trap-react", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "A React component that traps focus.", | ||
@@ -5,0 +5,0 @@ "main": "dist/focus-trap-react.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
205702
904