Socket
Socket
Sign inDemoInstall

react-useportal

Package Overview
Dependencies
9
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.13 to 1.0.14

2

dist/usePortal.d.ts

@@ -12,3 +12,3 @@ import { DOMAttributes, SyntheticEvent, MutableRefObject } from 'react';

};
declare type UsePortalOptions = {
export declare type UsePortalOptions = {
closeOnOutsideClick?: boolean;

@@ -15,0 +15,0 @@ closeOnEsc?: boolean;

{
"name": "react-useportal",
"version": "1.0.13",
"version": "1.0.14",
"homepage": "https://codesandbox.io/s/w6jp7z4pkk",

@@ -35,3 +35,3 @@ "main": "dist/usePortal.js",

"dependencies": {
"use-ssr": "^1.0.19"
"use-ssr": "^1.0.22"
},

@@ -46,3 +46,3 @@ "devDependencies": {

"eslint": "^6.3.0",
"eslint-plugin-jest": "^22.17.0",
"eslint-plugin-jest": "^23.0.0",
"eslint-plugin-prettier": "^3.1.0",

@@ -49,0 +49,0 @@ "eslint-plugin-react": "^7.14.3",

@@ -155,3 +155,3 @@ <p style="text-align: center;" align="center">

const useModal = () => {
const { isOpen, togglePortal, closePortal, Portal } = usePortal({
const { isOpen, openPortal, togglePortal, closePortal, Portal } = usePortal({
onOpen({ portal }) {

@@ -171,2 +171,3 @@ portal.current.style.cssText = `

Modal: Portal,
openModal: openPortal,
toggleModal: togglePortal,

@@ -173,0 +174,0 @@ closeModal: closePortal,

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc