@contentful/f36-utils
Advanced tools
Comparing version 4.0.1-next-v4-8101.2339 to 4.0.1-next-v4-8125.2340
@@ -1,2 +0,2 @@ | ||
var e=require("react"),r=l(e),{useEffect:t,useRef:n}=e,{createPortal:u}=require("react-dom"),c=l(require("@babel/runtime/helpers/extends")),{css:a,cx:o}=require("emotion");function i(e,r,t,n){Object.defineProperty(e,r,{get:t,set:n,enumerable:!0,configurable:!0})}function l(e){return e&&e.__esModule?e.default:e}var s,d,f={};function m({children:e,container:r}){const c=n(r),a=n(document.createElement("div"));return t((()=>{c.current||(c.current=document.body);const e=a.current;return e.setAttribute("data-cf-ui-portal",""),c.current.appendChild(e),()=>{c.current&&c.current.removeChild(e)}}),[]),a.current?u(e,a.current):null}function b({className:e,children:t,...n}){return r.createElement("span",c({tabIndex:-1,className:o(a({name:"t8ljbi",styles:"display:inherit;outline:0;"}),e)},n),t)}i(f,"Portal",(()=>m)),i(f,"TabFocusTrap",(()=>b)),s=module.exports,d=f,Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(s,e,{enumerable:!0,get:function(){return d[e]}})})); | ||
var e=require("react"),r=l(e),{useEffect:t,useRef:n}=e,{createPortal:u}=require("react-dom"),c=l(require("@babel/runtime/helpers/extends")),{cx:a,css:o}=require("emotion");function i(e,r,t,n){Object.defineProperty(e,r,{get:t,set:n,enumerable:!0,configurable:!0})}function l(e){return e&&e.__esModule?e.default:e}var s,d,f={};function m({children:e,container:r}){const c=n(r),a=n(document.createElement("div"));return t((()=>{c.current||(c.current=document.body);const e=a.current;return e.setAttribute("data-cf-ui-portal",""),c.current.appendChild(e),()=>{c.current&&c.current.removeChild(e)}}),[]),a.current?u(e,a.current):null}function b({className:e,children:t,...n}){return r.createElement("span",c({tabIndex:-1,className:a(o({name:"t8ljbi",styles:"display:inherit;outline:0;"}),e)},n),t)}i(f,"Portal",(()=>m)),i(f,"TabFocusTrap",(()=>b)),s=module.exports,d=f,Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(s,e,{enumerable:!0,get:function(){return d[e]}})})); | ||
//# sourceMappingURL=main.js.map |
@@ -1,2 +0,2 @@ | ||
import e,{useRef as r,useEffect as t}from"react";import{createPortal as n}from"react-dom";import a from"@babel/runtime/helpers/esm/extends";import{cx as c,css as o}from"emotion";function s(e,r,t,n){Object.defineProperty(e,r,{get:t,set:n,enumerable:!0,configurable:!0})}var u={};function i({children:e,container:a}){const c=r(a),o=r(document.createElement("div"));return t((()=>{c.current||(c.current=document.body);const e=o.current;return e.setAttribute("data-cf-ui-portal",""),c.current.appendChild(e),()=>{c.current&&c.current.removeChild(e)}}),[]),o.current?n(e,o.current):null}function l({className:r,children:t,...n}){return e.createElement("span",a({tabIndex:-1,className:c(o({name:"t8ljbi",styles:"display:inherit;outline:0;"}),r)},n),t)}s(u,"Portal",(()=>i)),s(u,"TabFocusTrap",(()=>l));export{i as Portal,l as TabFocusTrap}; | ||
import e,{useEffect as r,useRef as t}from"react";import{createPortal as n}from"react-dom";import a from"@babel/runtime/helpers/esm/extends";import{css as c,cx as o}from"emotion";function s(e,r,t,n){Object.defineProperty(e,r,{get:t,set:n,enumerable:!0,configurable:!0})}var u={};function i({children:e,container:a}){const c=t(a),o=t(document.createElement("div"));return r((()=>{c.current||(c.current=document.body);const e=o.current;return e.setAttribute("data-cf-ui-portal",""),c.current.appendChild(e),()=>{c.current&&c.current.removeChild(e)}}),[]),o.current?n(e,o.current):null}function l({className:r,children:t,...n}){return e.createElement("span",a({tabIndex:-1,className:o(c({name:"t8ljbi",styles:"display:inherit;outline:0;"}),r)},n),t)}s(u,"Portal",(()=>i)),s(u,"TabFocusTrap",(()=>l));export{i as Portal,l as TabFocusTrap}; | ||
//# sourceMappingURL=module.js.map |
{ | ||
"name": "@contentful/f36-utils", | ||
"version": "4.0.1-next-v4-8101.2339+fc73436b", | ||
"version": "4.0.1-next-v4-8125.2340+450dfb35", | ||
"description": "Forma 36: utils React Component", | ||
@@ -34,3 +34,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "fc73436bf00bd5ee2522752d6af44a2e3aab807e" | ||
"gitHead": "450dfb35cbbe21cd28e4d11d4206aa2c2deb31c8" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package