Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-new-window

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-new-window - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

2

package.json
{
"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
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc