@tanay-wispr/webflow-package 6.4.24 → 6.4.25

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