
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@kofile/react-child-window
Advanced tools
A React component for opening and managing child browser windows
import { ChildWindow } from '@kofile/react-child-window'
const App = () => (
<div>
<Content>
<ChildWindow
onLoad={(childComp, childWindow) => { /* ... */ }}
onUnload={(childComp, childWindow) => { /* ... */ }}
options={[
'url',
'title',
...attributes
]}
mountId='childCSSID'
open={true}
setRef={el => { /* ... */ }}
>
<User name='default' age='props' />
</ChildWindow>
</div>
)
onLoad
:
Function
(childComp, childWindow) => void
window
loadsonComponentDidMount
onUnload
:
Function
(childComp, childWindow) => void
window
unmounts/closescomponentWillUnmount
options
:
Array<String>
[url, title, 'toolbar=false', 'menu=false']
url
and title
are normal strings with the rest of the array are window featuresmountId
:
String
'mount'
#id
of the element to treat as the domEl
inside of ReactDOM.render(ReactEl, domEl)
open
:
Boolean
false
FAQs
A React component for opening and managing child browser windows
The npm package @kofile/react-child-window receives a total of 1 weekly downloads. As such, @kofile/react-child-window popularity was classified as not popular.
We found that @kofile/react-child-window demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 34 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.