react-new-window
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "react-new-window", | ||
"description": "Pop a new window in React, using window.open API", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "react", |
@@ -48,3 +48,3 @@ [![React New Window - Pop new windows in React, using window.open API.](.github/banner.svg)](#features) | ||
| `onBlock` | `Function` | `undefined` | A function to be triggered when the new window could not be opened. | | ||
| `onOpen` | `Function` | `undefined` | A function to be triggered when window open by library. | | ||
| `onOpen` | `Function(w: Window)` | `undefined` | A function to be triggered when window open by library. | | ||
| `center` | `String` | `parent` | Indicate how to center the new window. Valid values are: `parent` or `screen`. `parent` will center the new window according to its _parent_ window. `screen` will center the new window according to the _screen_. | | ||
@@ -51,0 +51,0 @@ | `copyStyles` | `Boolean` | `true` | If specified, copy styles from parent window's document. | |
@@ -26,2 +26,7 @@ import React from 'react' | ||
/** | ||
* Children to render in the new window. | ||
*/ | ||
children?: React.ReactNode | ||
/** | ||
* The URL to open, if specified any children will be overriden. | ||
@@ -28,0 +33,0 @@ */ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
198052
229
0