@reach/portal
Advanced tools
Comparing version 0.7.2 to 0.7.3
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
@@ -6,0 +4,0 @@ |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("react"),t=(e=r)&&"object"==typeof e&&"default"in e?e.default:e,u=require("react-dom"),n=function(e){var n=e.children,c=e.type,o=void 0===c?"reach-portal":c,a=r.useRef(null),l=r.useRef(null),d=r.useState()[1];return r.useLayoutEffect((function(){var e,r=a.current.ownerDocument;return l.current=null===(e=r)||void 0===e?void 0:e.createElement(o),r.body.appendChild(l.current),d({}),function(){l.current&&l.current.ownerDocument&&l.current.ownerDocument.body.removeChild(l.current)}}),[o]),l.current?u.createPortal(n,l.current):t.createElement("div",{ref:a})};n.displayName="Portal",exports.default=n; | ||
"use strict";var e,r=require("react"),t=(e=r)&&"object"==typeof e&&"default"in e?e.default:e,n=require("react-dom"),u=function(e){var u=e.children,c=e.type,o=void 0===c?"reach-portal":c,a=r.useRef(null),l=r.useRef(null),d=r.useState()[1];return r.useLayoutEffect((function(){var e,r=a.current.ownerDocument;return l.current=null===(e=r)||void 0===e?void 0:e.createElement(o),r.body.appendChild(l.current),d({}),function(){l.current&&l.current.ownerDocument&&l.current.ownerDocument.body.removeChild(l.current)}}),[o]),l.current?n.createPortal(u,l.current):t.createElement("div",{ref:a})};u.displayName="Portal",exports.default=u; | ||
//# sourceMappingURL=portal.cjs.production.min.js.map |
{ | ||
"name": "@reach/portal", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "Declarative portals for React", | ||
@@ -25,5 +25,6 @@ "author": "React Training <hello@reacttraining.com>", | ||
"files": [ | ||
"README.md", | ||
"dist" | ||
], | ||
"gitHead": "96cf6c191cca0f2cbcb7ff578f15e289efeda1e2" | ||
"gitHead": "fe739beb1d94cc58c4e72f88ab58efa58e0de8c8" | ||
} |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
18287
11
0
20
144