@tanay-wispr/webflow-package 6.4.17 → 6.4.18

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.
Files changed (2) hide show
  1. package/dist/global.js +2 -1
  2. package/package.json +1 -1
package/dist/global.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";(()=>{function f(){try{let t=document.createElement("canvas"),r=t.getContext("webgl")||t.getContext("experimental-webgl");if(r){let a=r.getExtension("WEBGL_debug_renderer_info");if(!a)return"mac_unknown";let s=r.getParameter(a.UNMASKED_RENDERER_WEBGL);console.log(`WebGL Renderer: ${s}`);let c=String(s||"").toLowerCase();return c.includes("apple gpu")?"mac_unknown":c.includes("apple")?"mac_m1":c.includes("intel")||c.includes("amd")||c.includes("nvidia")?"mac_intel":"mac_unknown"}}catch{}return"mac_unknown"}var m=async()=>{if(navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)return"iOS";try{let t=await navigator.userAgentData.getHighEntropyValues(["architecture","platform"]);if(t.platform==="macOS")return t.architecture&&t.architecture.includes("arm")?"mac_m1":t.architecture&&t.architecture.includes("x86")?"mac_intel":"mac_unknown";if(t.platform==="Windows"){if(t.architecture&&t.architecture.includes("x86"))return"Windows";if(t.architecture&&t.architecture.includes("arm"))return"win_unknown";if(!t.architecture){let{userAgent:r}=navigator;return/ARM64/i.test(r)?"win_unknown":/(Win64;\s*x64|WOW64)/i.test(r)?"Windows":"win_unknown"}return"win_unknown"}return t.platform}catch{let{userAgent:t}=navigator;return t.includes("Macintosh")?f():t.includes("Windows")?/ARM64/i.test(t)?"win_unknown":"Windows":t.includes("Linux")?"Linux":/iPhone|iPad|iPod/.test(t)?"iOS":/Android/.test(t)?"Android":"Unknown"}};(async()=>{let t=await m();console.log("Platform: "+t),window.userPlatform=t})();document.addEventListener("DOMContentLoaded",async()=>{let t=(e,n,o=30)=>{let i="";if(o){let d=new Date;d.setTime(d.getTime()+o*24*60*60*1e3),i="; expires="+d.toUTCString()}let{hostname:u}=window.location,l;u.includes("wisprflow.ai")?l=".wisprflow.ai":l=u,document.cookie=e+"="+encodeURIComponent(n)+i+"; path=/; domain="+l+"; SameSite=Lax"},r=()=>{let n=document.cookie.split(";").find(i=>i.trim().startsWith("trial_promo=")),o=n&&n.trim().split("=")[1];return o==="3mo"||o==="2mo"},a=()=>new Promise(e=>{let n=0,o=50;function i(){if(n>=o){console.warn("PostHog not fully ready after max attempts, proceeding with limited functionality"),e(!1);return}if(n++,typeof posthog<"u"&&typeof posthog.getFeatureFlag=="function"&&posthog.get_distinct_id&&typeof posthog.get_distinct_id=="function")try{setTimeout(()=>e(!0),50)}catch(u){console.error("Error getting distinct ID:",u),setTimeout(i,100)}else setTimeout(i,100)}i()});window.wisprUtils={waitForPostHog:a,setCookie:t};let s=r();console.log("Next Play User:",s),document.querySelectorAll("[nav-link]").forEach(function(e){e.addEventListener("click",()=>(posthog.capture("nav_click",{nav_item:e.getAttribute("nav-link")}),!0))}),document.querySelectorAll("[cta]").forEach(function(e){e.addEventListener("click",()=>(posthog.capture("cta_click",{title:e.innerText,cta_location:e.getAttribute("cta_location"),cta_type:e.getAttribute("cta_type"),href:e.getAttribute("href")||"NO_HREF_FOUND",device_type:window.userPlatform}),!0))}),document.querySelectorAll("[web-demo-open]").forEach(function(e){e.addEventListener("click",()=>(posthog.capture("web_demo_open",{title:e.innerText,device_type:window.userPlatform,source:e.getAttribute("cta_location")}),!0))}),document.querySelectorAll("[web-demo-close]").forEach(function(e){e.addEventListener("click",()=>(posthog.capture("web_demo_close",{device_type:window.userPlatform}),!0))}),document.querySelectorAll("[app-download]").forEach(function(e){let n=e.id,o=n==="nav-download"?"nav":n==="footer-download"?"footer":e.getAttribute("cta_location")||"pricing";e.href="https://wisprflow.onelink.me/PguH/lw5h199m",e.addEventListener("click",()=>(posthog.capture("download_page_redirect",{source:o,device_type:window.userPlatform}),!0))})});})();
1
+ "use strict";(()=>{function p(){try{let t=document.createElement("canvas"),n=t.getContext("webgl")||t.getContext("experimental-webgl");if(n){let c=n.getExtension("WEBGL_debug_renderer_info");if(!c)return"mac_unknown";let s=n.getParameter(c.UNMASKED_RENDERER_WEBGL);console.log(`WebGL Renderer: ${s}`);let a=String(s||"").toLowerCase();return a.includes("apple gpu")?"mac_unknown":a.includes("apple")?"mac_m1":a.includes("intel")||a.includes("amd")||a.includes("nvidia")?"mac_intel":"mac_unknown"}}catch{}return"mac_unknown"}var f=async()=>{if(navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)return"iOS";try{let t=await navigator.userAgentData.getHighEntropyValues(["architecture","platform"]);if(t.platform==="macOS")return t.architecture&&t.architecture.includes("arm")?"mac_m1":t.architecture&&t.architecture.includes("x86")?"mac_intel":"mac_unknown";if(t.platform==="Windows"){if(t.architecture&&t.architecture.includes("x86"))return"Windows";if(t.architecture&&t.architecture.includes("arm"))return"win_unknown";if(!t.architecture){let{userAgent:n}=navigator;return/ARM64/i.test(n)?"win_unknown":/(Win64;\s*x64|WOW64)/i.test(n)?"Windows":"win_unknown"}return"win_unknown"}return t.platform}catch{let{userAgent:t}=navigator;return t.includes("Macintosh")?p():t.includes("Windows")?/ARM64/i.test(t)?"win_unknown":"Windows":t.includes("Linux")?"Linux":/iPhone|iPad|iPod/.test(t)?"iOS":/Android/.test(t)?"Android":"Unknown"}};var m=document.createElement("style");m.id="platform-switch";m.textContent=['[data-platform="android"] { display: none !important; }','html.is-android [data-platform="default"] { display: none !important; }','html.is-android [data-platform="android"] { display: block !important; }'].join(`
2
+ `);document.head.appendChild(m);(async()=>{let t=new URLSearchParams(window.location.search).get("preview_as"),n;t?(n={android:"Android",ios:"iOS",windows:"Windows",mac:"mac_unknown"}[t.toLowerCase()]||t,console.log(`Platform (preview): ${n}`)):(n=await f(),console.log(`Platform: ${n}`)),window.userPlatform=n,document.documentElement.classList.add(n==="Android"?"is-android":"is-default")})();document.addEventListener("DOMContentLoaded",async()=>{let t=(e,o,r=30)=>{let i="";if(r){let d=new Date;d.setTime(d.getTime()+r*24*60*60*1e3),i="; expires="+d.toUTCString()}let{hostname:u}=window.location,l;u.includes("wisprflow.ai")?l=".wisprflow.ai":l=u,document.cookie=e+"="+encodeURIComponent(o)+i+"; path=/; domain="+l+"; SameSite=Lax"},n=()=>{let o=document.cookie.split(";").find(i=>i.trim().startsWith("trial_promo=")),r=o&&o.trim().split("=")[1];return r==="3mo"||r==="2mo"},c=()=>new Promise(e=>{let o=0,r=50;function i(){if(o>=r){console.warn("PostHog not fully ready after max attempts, proceeding with limited functionality"),e(!1);return}if(o++,typeof posthog<"u"&&typeof posthog.getFeatureFlag=="function"&&posthog.get_distinct_id&&typeof posthog.get_distinct_id=="function")try{setTimeout(()=>e(!0),50)}catch(u){console.error("Error getting distinct ID:",u),setTimeout(i,100)}else setTimeout(i,100)}i()});window.wisprUtils={waitForPostHog:c,setCookie:t};let s=n();console.log("Next Play User:",s),document.querySelectorAll("[nav-link]").forEach(function(e){e.addEventListener("click",()=>(posthog.capture("nav_click",{nav_item:e.getAttribute("nav-link")}),!0))}),document.querySelectorAll("[cta]").forEach(function(e){e.addEventListener("click",()=>(posthog.capture("cta_click",{title:e.innerText,cta_location:e.getAttribute("cta_location"),cta_type:e.getAttribute("cta_type"),href:e.getAttribute("href")||"NO_HREF_FOUND",device_type:window.userPlatform}),!0))}),document.querySelectorAll("[web-demo-open]").forEach(function(e){e.addEventListener("click",()=>(posthog.capture("web_demo_open",{title:e.innerText,device_type:window.userPlatform,source:e.getAttribute("cta_location")}),!0))}),document.querySelectorAll("[web-demo-close]").forEach(function(e){e.addEventListener("click",()=>(posthog.capture("web_demo_close",{device_type:window.userPlatform}),!0))}),document.querySelectorAll("[app-download]").forEach(function(e){let o=e.id,r=o==="nav-download"?"nav":o==="footer-download"?"footer":e.getAttribute("cta_location")||"pricing";e.href="https://wisprflow.onelink.me/PguH/lw5h199m",e.addEventListener("click",()=>(posthog.capture("download_page_redirect",{source:r,device_type:window.userPlatform}),!0))})});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanay-wispr/webflow-package",
3
- "version": "6.4.17",
3
+ "version": "6.4.18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },