@delangle/use-modal
Advanced tools
Comparing version 1.8.7 to 1.9.0
import useModal from './useModal'; | ||
import './polyfill'; | ||
export { ModalState } from './useModal.interface'; | ||
export default useModal; | ||
//# sourceMappingURL=index.js.map |
@@ -8,2 +8,3 @@ 'use strict'; | ||
exports.ModalState = void 0; | ||
(function (ModalState) { | ||
@@ -131,2 +132,20 @@ ModalState["opening"] = "opening"; | ||
/* | ||
* 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 (!('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 |
{ | ||
"name": "@delangle/use-modal", | ||
"version": "1.8.7", | ||
"version": "1.9.0", | ||
"description": "React hook for modal management", | ||
@@ -42,28 +42,25 @@ "private": false, | ||
"peerDependencies": { | ||
"react": ">=16.8.0" | ||
"react": ">=17.0.2" | ||
}, | ||
"devDependencies": { | ||
"@habx/eslint-config-client": "^5.3.1", | ||
"@habx/eslint-config-client": "^6.0.0", | ||
"@liftr/tscov": "^2.0.0", | ||
"@testing-library/dom": "^7.24.3", | ||
"@types/jest": "^26.0.0", | ||
"@types/react": "^17.0.0", | ||
"@types/sinon": "^9.0.4", | ||
"bili": "^5.0.2", | ||
"cross-env": "^7.0.0", | ||
"husky": "^4.0.10", | ||
"jest": "^26.4.2", | ||
"lint-staged": "^10.0.1", | ||
"@testing-library/dom": "^7.30.4", | ||
"@types/jest": "^26.0.23", | ||
"@types/react": "^17.0.3", | ||
"@types/sinon": "^10.0.0", | ||
"bili": "^5.0.5", | ||
"cross-env": "^7.0.3", | ||
"husky": "^4.3.8", | ||
"jest": "^26.6.3", | ||
"lint-staged": "^10.5.4", | ||
"react": "^17.0.1", | ||
"react-hooks-testing-library": "^0.6.0", | ||
"react-test-renderer": "^16.9.0", | ||
"rimraf": "^3.0.0", | ||
"rollup-plugin-typescript2": "^0.29.0", | ||
"sinon": "^9.0.0", | ||
"ts-jest": "^26.4.3", | ||
"typescript": "^4.0.3" | ||
}, | ||
"dependencies": { | ||
"test-jest": "^1.0.1" | ||
"react-test-renderer": "^17.0.1", | ||
"rimraf": "^3.0.2", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"sinon": "^10.0.0", | ||
"ts-jest": "^26.5.5", | ||
"typescript": "^4.2.4" | ||
} | ||
} |
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:base" | ||
], | ||
"rangeStrategy": "bump", | ||
"separateMinorPatch": true, | ||
"packageRules": [ | ||
{ | ||
"updateTypes": [ | ||
"minor", | ||
"patch" | ||
], | ||
"depTypeList": [ | ||
"devDependencies" | ||
], | ||
"automerge": true, | ||
"labels": [ | ||
"dependencies" | ||
] | ||
}, | ||
{ | ||
"updateTypes": [ | ||
"patch" | ||
], | ||
"depTypeList": [ | ||
"dependencies", | ||
"peerDependencies" | ||
], | ||
"automerge": true, | ||
"labels": [ | ||
"dependencies" | ||
] | ||
} | ||
] | ||
} |
import useModal from './useModal' | ||
import './polyfill' | ||
@@ -3,0 +4,0 @@ export { Modal, ModalConfig, ModalState } from './useModal.interface' |
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
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
44904
1
32
960
- Removedtest-jest@^1.0.1
- Removedtest-jest@1.0.1(transitive)