@fynd-design-engineering/fynd-one-v2 2.0.1 → 2.0.2
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 @@
|
|
|
1
|
-
"use strict";(()=>{document.addEventListener("DOMContentLoaded",function(){let e=document.
|
|
1
|
+
"use strict";(()=>{document.addEventListener("DOMContentLoaded",function(){let e=document.querySelector("#wf-form-Event-Download input[type='submit']");if(!e){console.error("Submit button not found");return}e.addEventListener("click",function(){setTimeout(()=>{let n=document.getElementById("ebook-success");if(n&&n.style.display!=="none"){let t=document.getElementById("ebook-download");t&&t.click()}},2500)})});})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../bin/live-reload.js", "../../src/form/download-file.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\", function (): void {\n const
|
|
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;AACL,YAAQ,IAAI,gDAAgD;AAAA,EAC9D;;;ACVA,WAAS,iBAAiB,oBAAoB,WAAkB;AAC9D,UAAM,
|
|
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\", function (): void {\n const submitButton = document.querySelector(\"#wf-form-Event-Download input[type='submit']\") as HTMLInputElement;\n\n if (!submitButton) {\n console.error(\"Submit button not found\");\n return;\n }\n\n submitButton.addEventListener(\"click\", function (): void {\n // Wait 1000ms then check for success div\n setTimeout((): void => {\n const successEl = document.getElementById(\"ebook-success\") as HTMLElement | null;\n if (successEl && successEl.style.display !== \"none\") {\n const downloadLink = document.getElementById(\"ebook-download\") as HTMLAnchorElement | null;\n if (downloadLink) {\n downloadLink.click();\n }\n }\n }, 2500);\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;AACL,YAAQ,IAAI,gDAAgD;AAAA,EAC9D;;;ACVA,WAAS,iBAAiB,oBAAoB,WAAkB;AAC9D,UAAM,eAAe,SAAS,cAAc,8CAA8C;AAE1F,QAAI,CAAC,cAAc;AACjB,cAAQ,MAAM,yBAAyB;AACvC;AAAA,IACF;AAEA,iBAAa,iBAAiB,SAAS,WAAkB;AAEvD,iBAAW,MAAY;AACrB,cAAM,YAAY,SAAS,eAAe,eAAe;AACzD,YAAI,aAAa,UAAU,MAAM,YAAY,QAAQ;AACnD,gBAAM,eAAe,SAAS,eAAe,gBAAgB;AAC7D,cAAI,cAAc;AAChB,yBAAa,MAAM;AAAA,UACrB;AAAA,QACF;AAAA,MACF,GAAG,IAAI;AAAA,IACT,CAAC;AAAA,EACH,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED