@types/react-modal
Advanced tools
Comparing version 3.10.6 to 3.12.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for react-modal 3.10 | ||
// Type definitions for react-modal 3.12 | ||
// Project: https://github.com/reactjs/react-modal | ||
@@ -106,2 +106,5 @@ // Definitions by: Rajab Shakirov <https://github.com/radziksh>, | ||
/* Boolean indicating if the modal should use the preventScroll flag when restoring focus to the element that had focus prior to its display. */ | ||
preventScroll?: boolean; | ||
/* Function that will be called to get the parent element that the modal will be attached to. */ | ||
@@ -128,2 +131,7 @@ parentSelector?(): HTMLElement; | ||
/* Custom Overlay element. */ | ||
overlayElement?: (props: React.ComponentPropsWithRef<"div">, contentEl: React.ReactElement) => React.ReactElement; | ||
/* Custom Content element. */ | ||
contentElement?: (props: React.ComponentPropsWithRef<"div">, children: React.ReactNode) => React.ReactElement; | ||
/* String value of data-test-id attibute to be applied to to the modal content. */ | ||
@@ -130,0 +138,0 @@ testId?: string; |
{ | ||
"name": "@types/react-modal", | ||
"version": "3.10.6", | ||
"version": "3.12.0", | ||
"description": "TypeScript definitions for react-modal", | ||
@@ -64,4 +64,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "8e000d399afda11c1195d23d0ec09c7f9b740702e56a0ba2f7b73602bc0df309", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "0f8db1c6b52191299f1686abb0f3e3cec9084e24cb0ac662715ce73c936f4be8", | ||
"typeScriptVersion": "3.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 24 Jun 2020 09:45:42 GMT | ||
* Last updated: Thu, 04 Feb 2021 13:23:15 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: `ReactModal` |
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
10445
119