@zeyolabs/ui 2026.11.46 → 2026.11.48

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeyolabs/ui",
3
- "version": "2026.11.46",
3
+ "version": "2026.11.48",
4
4
  "description": "Shared Svelte 5 components, form fields and design tokens for SvelteKit 3 apps.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -69,7 +69,8 @@
69
69
  "theme",
70
70
  "tokens.css",
71
71
  "turnstile",
72
- "typography.css"
72
+ "typography.css",
73
+ "update"
73
74
  ],
74
75
  "exports": {
75
76
  "./template.css": "./template.css",
@@ -131,7 +132,8 @@
131
132
  "./theme/theme.svelte": "./theme/theme.svelte.ts",
132
133
  "./theme/*": "./theme/*",
133
134
  "./turnstile/*": "./turnstile/*",
134
- "./head/*": "./head/*"
135
+ "./head/*": "./head/*",
136
+ "./update/*": "./update/*"
135
137
  },
136
138
  "peerDependencies": {
137
139
  "@zeyolabs/kit": ">=2026.11.44",
@@ -146,7 +148,7 @@
146
148
  "bits-ui": "2.21.0",
147
149
  "flickity": "3.0.0",
148
150
  "flickity-fullscreen": "2.0.0",
149
- "libphonenumber-js": "1.13.16",
151
+ "libphonenumber-js": "1.13.17",
150
152
  "quill": "2.0.3",
151
153
  "svelte-awesome-color-picker": "4.1.3",
152
154
  "svelte-sonner": "1.2.3",
@@ -0,0 +1,26 @@
1
+ <script lang="ts">
2
+ import { updated } from '$app/state';
3
+ import { Button } from '@zeyolabs/ui/form';
4
+ import Text from '@zeyolabs/ui/text/Text.svelte';
5
+
6
+ /** Once in the root layout: covers the page when a newer deploy is live, with a reload button. */
7
+ let {
8
+ label = 'Reload to update',
9
+ message = 'A new version is available.',
10
+ }: {
11
+ label?: string;
12
+ message?: string;
13
+ } = $props();
14
+ </script>
15
+
16
+ {#if updated.current}
17
+ <div
18
+ class="fixed inset-0 z-99999 flex flex-col items-center justify-center gap-4 bg-black/80 p-6 text-center"
19
+ aria-label={message}
20
+ aria-modal="true"
21
+ role="alertdialog"
22
+ >
23
+ <Text bold centered color="white">{message}</Text>
24
+ <Button onclick={() => location.reload()}>{label}</Button>
25
+ </div>
26
+ {/if}