Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@engine-web/website

Package Overview
Dependencies
Maintainers
4
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@engine-web/website - npm Package Compare versions

Comparing version
0.7.11
to
0.7.12
+1
dist/components/enginex-popup/index.js
"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",