diff --git a/apps/mana/apps/web/src/app.d.ts b/apps/mana/apps/web/src/app.d.ts index b6f0df82a..deac78a15 100644 --- a/apps/mana/apps/web/src/app.d.ts +++ b/apps/mana/apps/web/src/app.d.ts @@ -4,6 +4,13 @@ * Authentication is handled entirely by Mana Core Auth (@mana/shared-auth). * No Supabase is needed - all data comes from mana-auth APIs. */ + +// Virtual modules provided by vite-plugin-pwa (wrapped by @vite-pwa/sveltekit): +// - virtual:pwa-info → pwaInfo.webManifest.linkTag for +// - virtual:pwa-register/svelte → useRegisterSW() Svelte-store hook +/// +/// + declare global { const __BUILD_HASH__: string; const __BUILD_TIME__: string; diff --git a/apps/mana/apps/web/src/lib/components/PwaUpdatePrompt.svelte b/apps/mana/apps/web/src/lib/components/PwaUpdatePrompt.svelte index 72e0c2e87..1060a153a 100644 --- a/apps/mana/apps/web/src/lib/components/PwaUpdatePrompt.svelte +++ b/apps/mana/apps/web/src/lib/components/PwaUpdatePrompt.svelte @@ -1,64 +1,34 @@ -{#if showPrompt} +{#if $needRefresh}