Socket
Socket
Sign inDemoInstall

@delangle/use-modal

Package Overview
Dependencies
3
Maintainers
1
Versions
383
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.9.2 to 1.9.3

1

dist/esm/index.js
import useModal from './useModal';
import './polyfill';
export { ModalState } from './useModal.interface';
export default useModal;
//# sourceMappingURL=index.js.map

1

dist/esm/useModal.js

@@ -13,2 +13,3 @@ var __assign = (this && this.__assign) || function () {

import * as React from 'react';
import './polyfill';
import { ModalState, } from './useModal.interface';

@@ -15,0 +16,0 @@ var ESCAPE_KEY = 'Escape';

@@ -8,2 +8,20 @@ 'use strict';

/*
* Node.isConnected polyfill for EdgeHTML
* 2021-04-12
*
* By Eli Grey, https://eligrey.com
* Public domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
if (typeof document === 'object' && !('isConnected' in Node.prototype)) {
Object.defineProperty(Node.prototype, 'isConnected', {
get: function () {
return (!this.ownerDocument ||
!(this.ownerDocument.compareDocumentPosition(this) &
this.DOCUMENT_POSITION_DISCONNECTED));
},
});
}
exports.ModalState = void 0;

@@ -132,20 +150,2 @@ (function (ModalState) {

/*
* Node.isConnected polyfill for EdgeHTML
* 2021-04-12
*
* By Eli Grey, https://eligrey.com
* Public domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
if (typeof document === 'object' && !('isConnected' in Node.prototype)) {
Object.defineProperty(Node.prototype, 'isConnected', {
get: function () {
return (!this.ownerDocument ||
!(this.ownerDocument.compareDocumentPosition(this) &
this.DOCUMENT_POSITION_DISCONNECTED));
},
});
}
exports.default = useModal;
import useModal from './useModal';
import './polyfill';
export { Modal, ModalConfig, ModalState } from './useModal.interface';
export default useModal;
//# sourceMappingURL=index.d.ts.map

@@ -0,1 +1,2 @@

import './polyfill';
import { Modal, ModalConfig, ModalFullConfig } from './useModal.interface';

@@ -2,0 +3,0 @@ declare const useModal: <ContainerElement extends HTMLElement = HTMLDivElement, Value = any>(baseConfig: Partial<ModalFullConfig<ContainerElement, any>>) => Modal<ContainerElement, Value>;

{
"name": "@delangle/use-modal",
"version": "1.9.2",
"version": "1.9.3",
"description": "React hook for modal management",

@@ -5,0 +5,0 @@ "private": false,

import useModal from './useModal'
import './polyfill'

@@ -4,0 +3,0 @@ export { Modal, ModalConfig, ModalState } from './useModal.interface'

import * as React from 'react'
import './polyfill'

@@ -3,0 +4,0 @@ import {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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