react-new-window
Advanced tools
Comparing version 0.0.11 to 0.0.12
{ | ||
"name": "react-new-window", | ||
"description": "🔲 Pop a new window React using window.open", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "react", |
import React from 'react' | ||
import ReactDOM from 'react-dom' | ||
/** | ||
* Base features common to all window features. | ||
* | ||
* @remarks These will be concatenated into a string for window.open. | ||
*/ | ||
export interface IWindowFeatures { | ||
declare module 'react-new-window' { | ||
type EventHandler = () => void | ||
/** | ||
* Base features common to all window features. | ||
* | ||
* @remarks These will be concatenated into a string for window.open. | ||
*/ | ||
export interface IWindowFeatures { | ||
height: number | ||
width: number | ||
[i: string]: boolean | number | string | ||
} | ||
} | ||
/** | ||
* Props for opening a new window. | ||
* | ||
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/open | ||
*/ | ||
declare export interface INewWindowProps { | ||
/** | ||
* Props for opening a new window. | ||
* | ||
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/open | ||
*/ | ||
export interface INewWindowProps { | ||
/** | ||
@@ -44,3 +47,3 @@ * The URL to open, if specified any children will be overriden. | ||
*/ | ||
onBlock?: IOnBlock | null | ||
onBlock?: EventHandler | null | ||
@@ -50,3 +53,3 @@ /** | ||
*/ | ||
onUnload?: IOnUnload | null | ||
onUnload?: EventHandler | null | ||
@@ -62,5 +65,5 @@ /** | ||
copyStyles?: boolean | ||
} | ||
} | ||
declare export default class NewWindow extends React.PureComponent<INewWindowProps> { | ||
export default class NewWindow extends React.PureComponent<INewWindowProps> { | ||
private readonly container: HTMLDivElement | ||
@@ -75,2 +78,3 @@ private window: Window | null | ||
public release(): void | ||
} | ||
} |
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
62138
339