@fynd-design-engineering/fynd-one-v2 3.3.45 → 3.3.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,10 @@
1
- "use strict";(()=>{document.addEventListener("DOMContentLoaded",()=>{let n=document.querySelector('[data-popup-contact="wrapper"]'),e=document.querySelector('[data-popup-contact="content"]'),t=document.querySelector('[data-popup-contact="overlay"]'),l=document.querySelectorAll('[data-popup-contact-trigger="open"]'),s=document.querySelectorAll('[data-popup-contact-trigger="close"]');n.style.display="none",t.style.opacity="0",e.style.opacity="0",e.style.transform="scale(0.95)";function r(){document.body.style.overflow="hidden"}function p(){document.body.style.overflow=""}function a(){n.style.display="flex",r(),requestAnimationFrame(()=>{t.style.transition="opacity 0.25s ease",e.style.transition="opacity 0.25s ease, transform 0.25s ease",t.style.opacity="1",e.style.opacity="1",e.style.transform="scale(1)"})}function c(){t.style.opacity="0",e.style.opacity="0",e.style.transform="scale(0.95)",setTimeout(()=>{n.style.display="none",p()},250)}l.forEach(o=>o.addEventListener("click",a)),s.forEach(o=>o.addEventListener("click",c)),t.addEventListener("click",o=>{o.target===t&&c()}),window.openContactPopup=a,window.closeContactPopup=c});})();
1
+ "use strict";(()=>{document.addEventListener("DOMContentLoaded",()=>{let n=document.querySelector('[data-popup-contact="wrapper"]'),e=document.querySelector('[data-popup-contact="content"]'),o=document.querySelector('[data-popup-contact="overlay"]'),p=document.querySelectorAll('[data-popup-contact-trigger="open"]'),i=document.querySelectorAll('[data-popup-contact-trigger="close"]');n.style.display="none",o.style.opacity="0",e.style.opacity="0",e.style.transform="scale(0.95)";let c=document.createElement("style");c.id="contact-popup-style",c.textContent=`
2
+ .iti.iti--container {
3
+ z-index: 100000000000 !important;
4
+ }
5
+ @media (max-width: 768px) {
6
+ .iti.iti--container {
7
+ width: 320px !important;
8
+ }
9
+ }
10
+ `;function s(){document.body.style.overflow="hidden"}function r(){document.body.style.overflow=""}function d(){document.getElementById("contact-popup-style")||document.head.appendChild(c)}function y(){let t=document.getElementById("contact-popup-style");t&&t.remove()}function l(){n.style.display="flex",s(),d(),requestAnimationFrame(()=>{o.style.transition="opacity 0.25s ease",e.style.transition="opacity 0.25s ease, transform 0.25s ease",o.style.opacity="1",e.style.opacity="1",e.style.transform="scale(1)"})}function a(){o.style.opacity="0",e.style.opacity="0",e.style.transform="scale(0.95)",setTimeout(()=>{n.style.display="none",r(),y()},250)}p.forEach(t=>t.addEventListener("click",l)),i.forEach(t=>t.addEventListener("click",a)),o.addEventListener("click",t=>{t.target===o&&a()}),window.openContactPopup=l,window.closeContactPopup=a});})();
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../bin/live-reload.js", "../../src/global/contact-popup.ts"],
4
- "sourcesContent": ["// Only enable live reload when running on localhost\nif (\n window.location.hostname === \"localhost\" ||\n window.location.hostname === \"127.0.0.1\"\n) {\n new EventSource(`${SERVE_ORIGIN}/esbuild`).addEventListener(\"change\", () =>\n location.reload()\n );\n} else {\n // console.log(\"Live reload disabled: not running on localhost\");\n}\n", "document.addEventListener(\"DOMContentLoaded\", () => {\n const wrapper = document.querySelector<HTMLElement>(\n '[data-popup-contact=\"wrapper\"]'\n )!;\n const content = document.querySelector<HTMLElement>(\n '[data-popup-contact=\"content\"]'\n )!;\n const overlay = document.querySelector<HTMLElement>(\n '[data-popup-contact=\"overlay\"]'\n )!;\n const openTriggers = document.querySelectorAll<HTMLElement>(\n '[data-popup-contact-trigger=\"open\"]'\n );\n const closeTriggers = document.querySelectorAll<HTMLElement>(\n '[data-popup-contact-trigger=\"close\"]'\n );\n\n // Initial state\n wrapper.style.display = \"none\";\n overlay.style.opacity = \"0\";\n content.style.opacity = \"0\";\n content.style.transform = \"scale(0.95)\";\n\n function lockScroll() {\n document.body.style.overflow = \"hidden\";\n }\n\n function unlockScroll() {\n document.body.style.overflow = \"\";\n }\n\n function openPopup() {\n wrapper.style.display = \"flex\";\n lockScroll();\n requestAnimationFrame(() => {\n overlay.style.transition = \"opacity 0.25s ease\";\n content.style.transition = \"opacity 0.25s ease, transform 0.25s ease\";\n overlay.style.opacity = \"1\";\n content.style.opacity = \"1\";\n content.style.transform = \"scale(1)\";\n });\n }\n\n function closePopup() {\n overlay.style.opacity = \"0\";\n content.style.opacity = \"0\";\n content.style.transform = \"scale(0.95)\";\n setTimeout(() => {\n wrapper.style.display = \"none\";\n unlockScroll();\n }, 250);\n }\n\n openTriggers.forEach((el) => el.addEventListener(\"click\", openPopup));\n closeTriggers.forEach((el) => el.addEventListener(\"click\", closePopup));\n overlay.addEventListener(\"click\", (e) => {\n if (e.target === overlay) closePopup();\n });\n\n (window as any).openContactPopup = openPopup;\n (window as any).closeContactPopup = closePopup;\n});\n"],
5
- "mappings": ";;;AACA,MACE,OAAO,SAAS,aAAa,eAC7B,OAAO,SAAS,aAAa,aAC7B;AACA,QAAI,YAAY,GAAG,uBAAY,UAAU,EAAE;AAAA,MAAiB;AAAA,MAAU,MACpE,SAAS,OAAO;AAAA,IAClB;AAAA,EACF,OAAO;AAAA,EAEP;;;ACVA,WAAS,iBAAiB,oBAAoB,MAAM;AAClD,UAAM,UAAU,SAAS;AAAA,MACvB;AAAA,IACF;AACA,UAAM,UAAU,SAAS;AAAA,MACvB;AAAA,IACF;AACA,UAAM,UAAU,SAAS;AAAA,MACvB;AAAA,IACF;AACA,UAAM,eAAe,SAAS;AAAA,MAC5B;AAAA,IACF;AACA,UAAM,gBAAgB,SAAS;AAAA,MAC7B;AAAA,IACF;AAGA,YAAQ,MAAM,UAAU;AACxB,YAAQ,MAAM,UAAU;AACxB,YAAQ,MAAM,UAAU;AACxB,YAAQ,MAAM,YAAY;AAE1B,aAAS,aAAa;AACpB,eAAS,KAAK,MAAM,WAAW;AAAA,IACjC;AAEA,aAAS,eAAe;AACtB,eAAS,KAAK,MAAM,WAAW;AAAA,IACjC;AAEA,aAAS,YAAY;AACnB,cAAQ,MAAM,UAAU;AACxB,iBAAW;AACX,4BAAsB,MAAM;AAC1B,gBAAQ,MAAM,aAAa;AAC3B,gBAAQ,MAAM,aAAa;AAC3B,gBAAQ,MAAM,UAAU;AACxB,gBAAQ,MAAM,UAAU;AACxB,gBAAQ,MAAM,YAAY;AAAA,MAC5B,CAAC;AAAA,IACH;AAEA,aAAS,aAAa;AACpB,cAAQ,MAAM,UAAU;AACxB,cAAQ,MAAM,UAAU;AACxB,cAAQ,MAAM,YAAY;AAC1B,iBAAW,MAAM;AACf,gBAAQ,MAAM,UAAU;AACxB,qBAAa;AAAA,MACf,GAAG,GAAG;AAAA,IACR;AAEA,iBAAa,QAAQ,CAAC,OAAO,GAAG,iBAAiB,SAAS,SAAS,CAAC;AACpE,kBAAc,QAAQ,CAAC,OAAO,GAAG,iBAAiB,SAAS,UAAU,CAAC;AACtE,YAAQ,iBAAiB,SAAS,CAAC,MAAM;AACvC,UAAI,EAAE,WAAW,QAAS,YAAW;AAAA,IACvC,CAAC;AAED,IAAC,OAAe,mBAAmB;AACnC,IAAC,OAAe,oBAAoB;AAAA,EACtC,CAAC;",
4
+ "sourcesContent": ["// Only enable live reload when running on localhost\nif (\n window.location.hostname === \"localhost\" ||\n window.location.hostname === \"127.0.0.1\"\n) {\n new EventSource(`${SERVE_ORIGIN}/esbuild`).addEventListener(\"change\", () =>\n location.reload()\n );\n} else {\n // console.log(\"Live reload disabled: not running on localhost\");\n}\n", "document.addEventListener(\"DOMContentLoaded\", () => {\n const wrapper = document.querySelector<HTMLElement>(\n '[data-popup-contact=\"wrapper\"]'\n )!;\n const content = document.querySelector<HTMLElement>(\n '[data-popup-contact=\"content\"]'\n )!;\n const overlay = document.querySelector<HTMLElement>(\n '[data-popup-contact=\"overlay\"]'\n )!;\n const openTriggers = document.querySelectorAll<HTMLElement>(\n '[data-popup-contact-trigger=\"open\"]'\n );\n const closeTriggers = document.querySelectorAll<HTMLElement>(\n '[data-popup-contact-trigger=\"close\"]'\n );\n\n // initial\n wrapper.style.display = \"none\";\n overlay.style.opacity = \"0\";\n content.style.opacity = \"0\";\n content.style.transform = \"scale(0.95)\";\n\n // add a dynamic style tag for .iti.iti--container when popup is open\n const popupStyle = document.createElement(\"style\");\n popupStyle.id = \"contact-popup-style\";\n popupStyle.textContent = `\n .iti.iti--container {\n z-index: 100000000000 !important;\n }\n @media (max-width: 768px) {\n .iti.iti--container {\n width: 320px !important;\n }\n }\n `;\n\n function lockScroll() {\n document.body.style.overflow = \"hidden\";\n }\n\n function unlockScroll() {\n document.body.style.overflow = \"\";\n }\n\n function addPopupStyle() {\n if (!document.getElementById(\"contact-popup-style\")) {\n document.head.appendChild(popupStyle);\n }\n }\n\n function removePopupStyle() {\n const existing = document.getElementById(\"contact-popup-style\");\n if (existing) existing.remove();\n }\n\n function openPopup() {\n wrapper.style.display = \"flex\";\n lockScroll();\n addPopupStyle();\n\n requestAnimationFrame(() => {\n overlay.style.transition = \"opacity 0.25s ease\";\n content.style.transition = \"opacity 0.25s ease, transform 0.25s ease\";\n overlay.style.opacity = \"1\";\n content.style.opacity = \"1\";\n content.style.transform = \"scale(1)\";\n });\n }\n\n function closePopup() {\n overlay.style.opacity = \"0\";\n content.style.opacity = \"0\";\n content.style.transform = \"scale(0.95)\";\n setTimeout(() => {\n wrapper.style.display = \"none\";\n unlockScroll();\n removePopupStyle();\n }, 250);\n }\n\n openTriggers.forEach((el) => el.addEventListener(\"click\", openPopup));\n closeTriggers.forEach((el) => el.addEventListener(\"click\", closePopup));\n overlay.addEventListener(\"click\", (e) => {\n if (e.target === overlay) closePopup();\n });\n\n (window as any).openContactPopup = openPopup;\n (window as any).closeContactPopup = closePopup;\n});\n"],
5
+ "mappings": ";;;AACA,MACE,OAAO,SAAS,aAAa,eAC7B,OAAO,SAAS,aAAa,aAC7B;AACA,QAAI,YAAY,GAAG,uBAAY,UAAU,EAAE;AAAA,MAAiB;AAAA,MAAU,MACpE,SAAS,OAAO;AAAA,IAClB;AAAA,EACF,OAAO;AAAA,EAEP;;;ACVA,WAAS,iBAAiB,oBAA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AAiB;AAAA,MACnB,GAAG,GAAG;AAAA,IACR;AAEA,iBAAa,QAAQ,CAAC,OAAO,GAAG,iBAAiB,SAAS,SAAS,CAAC;AACpE,kBAAc,QAAQ,CAAC,OAAO,GAAG,iBAAiB,SAAS,UAAU,CAAC;AACtE,YAAQ,iBAAiB,SAAS,CAAC,MAAM;AACvC,UAAI,EAAE,WAAW,QAAS,YAAW;AAAA,IACvC,CAAC;AAED,IAAC,OAAe,mBAAmB;AACnC,IAAC,OAAe,oBAAoB;AAAA,EACtC,CAAC;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fynd-design-engineering/fynd-one-v2",
3
- "version": "3.3.45",
3
+ "version": "3.3.46",
4
4
  "description": "Updated CDN for fynd.com",
5
5
  "homepage": "https://github.com/Fynd-Design-Engineering/Fynd-Utils/blob/main/README.md",
6
6
  "license": "ISC",