@engine-web/website
Advanced tools
| "use strict";(()=>{var p=Object.defineProperty;var l=(n,e,t)=>e in n?p(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var o=(n,e,t)=>l(n,typeof e!="symbol"?e+"":e,t);var r="enginex-popup-shown";var i=class{constructor(){o(this,"elements",null);o(this,"isAnimating",!1);this.init()}init(){this.hasBeenShown()||(this.elements=this.getElements(),this.elements&&(this.setupEventListeners(),this.scheduleShow()))}getElements(){let e=document.querySelector(".engine-x-popup_component"),t=document.querySelector(".engine-x-popup"),s=document.querySelector(".engine-x-popup_close-button");return!e||!t||!s?(console.warn("EngineX Popup: Required elements not found"),null):{component:e,popup:t,closeButton:s}}hasBeenShown(){return sessionStorage.getItem(r)==="true"}markAsShown(){sessionStorage.setItem(r,"true")}shouldShowForExperiment(){let e=document.querySelector(".engine-x-popup_wrapper");if(!e)return!1;let t=e.parentElement;if(!t)return!1;let s=t.hasAttribute("data-experiment-treatment"),a=t.hasAttribute("data-experiment-control");return!s&&!a?!0:t.getAttribute("data-amp-visible")==="true"}setupEventListeners(){this.elements&&(this.elements.closeButton.addEventListener("click",e=>{e.preventDefault(),this.close()}),document.addEventListener("keydown",e=>{e.key==="Escape"&&this.close()}))}scheduleShow(){setTimeout(()=>{this.show()},5e3)}show(){if(!this.elements||this.isAnimating||!this.shouldShowForExperiment())return;this.isAnimating=!0;let{component:e,popup:t}=this.elements;t.style.opacity="0",t.style.transition="none",e.style.display="contents",e.offsetHeight,t.style.transition="opacity 1000ms ease-out",t.style.opacity="1",this.markAsShown(),setTimeout(()=>{this.isAnimating=!1},1e3)}close(){if(!this.elements||this.isAnimating)return;this.isAnimating=!0;let{component:e,popup:t}=this.elements;t.style.transition="opacity 300ms ease-in",t.style.opacity="0",setTimeout(()=>{e.offsetHeight,e.style.display="none",this.isAnimating=!1},300)}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{new i}):new i;})(); |
| .engine-x-popup_component{display:none}.engine-x-popup{opacity:0} |
| "use strict";(()=>{(function(){let t="data-event-planner-location";function i(r){let e=r.target.closest(`[${t}]`);if(!e)return;let n=e.getAttribute(t);if(!n)return;let o=window.__engineGroupsFormStore__;o&&o.getState().setField("description",n)}document.addEventListener("click",i)})();})(); |
+1
-1
| { | ||
| "name": "@engine-web/website", | ||
| "version": "0.7.11", | ||
| "version": "0.7.12", | ||
| "description": "Developer starter template for the Engine Website.", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
6003295
0.04%37
8.82%19187
0.06%3
-25%16
6.67%