@types/react-modal
Advanced tools
Comparing version 2.2.2 to 3.1.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for react-modal 2.2 | ||
// Type definitions for react-modal 3.1 | ||
// Project: https://github.com/reactjs/react-modal | ||
@@ -27,5 +27,5 @@ // Definitions by: Rajab Shakirov <https://github.com/radziksh>, | ||
interface Classes { | ||
base?: string; | ||
afterOpen?: string; | ||
beforeClose?: string; | ||
base: string; | ||
afterOpen: string; | ||
beforeClose: string; | ||
} | ||
@@ -72,5 +72,14 @@ | ||
/* Boolean indicating if the modal should be focused after render */ | ||
shouldFocusAfterRender?: boolean; | ||
/* Boolean indicating if the overlay should close the modal. Defaults to true. */ | ||
shouldCloseOnOverlayClick?: boolean; | ||
/* Boolean indicating if pressing the esc key should close the modal */ | ||
shouldCloseOnEsc?: boolean; | ||
/* Boolean indicating if the modal should restore focus to the element that had focus prior to its display. */ | ||
shouldReturnFocusAfterClose?: boolean; | ||
/* Function that will be called to get the parent element that the modal will be attached to. */ | ||
@@ -86,3 +95,3 @@ parentSelector?(): HTMLElement; | ||
/* String indicating how the content container should be announced to screenreaders. */ | ||
contentLabel: string; | ||
contentLabel?: string; | ||
} | ||
@@ -89,0 +98,0 @@ } |
{ | ||
"name": "@types/react-modal", | ||
"version": "2.2.2", | ||
"version": "3.1.0", | ||
"description": "TypeScript definitions for react-modal", | ||
@@ -42,4 +42,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "e3f95cb76dd0ee4fe9279f7f7f4eae47b64cd2f49889ef846f974c53c6d54af1", | ||
"typesPublisherContentHash": "549b757718c66ef00db9fb17279b59de83d364bbdd1d88970640dc5e79ab3913", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 06 Oct 2017 20:55:55 GMT | ||
* Last updated: Sun, 03 Dec 2017 16:31:01 GMT | ||
* Dependencies: react | ||
@@ -14,0 +14,0 @@ * Global values: ReactModal |
Sorry, the diff of this file is not supported yet
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
6976
77