@webmcp-auto-ui/ui 2.5.9 → 2.5.11
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/README.md
CHANGED
|
@@ -66,7 +66,7 @@ Requires Svelte 5 and Tailwind CSS.
|
|
|
66
66
|
<StatCard spec={{ label: 'Users', value: '8 204', variant: 'success', delta: '+3.2%' }} />
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
Each component accepts a `spec` prop (rich widgets) or `data` prop (simple blocks). See the
|
|
69
|
+
Each component accepts a `spec` prop (rich widgets) or `data` prop (simple blocks). See the showcase app at `:3010` for all components with live data.
|
|
70
70
|
|
|
71
71
|
## License
|
|
72
72
|
|
package/package.json
CHANGED
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
{/if}
|
|
237
237
|
</section>
|
|
238
238
|
|
|
239
|
-
<!-- Cache (disabled for WASM/Gemma — prompt caching is
|
|
239
|
+
<!-- Cache (disabled for WASM/Gemma — prompt caching is provider-dependent) -->
|
|
240
240
|
<label class="flex items-center gap-2.5 select-none" class:cursor-pointer={modelType !== 'wasm'} class:opacity-40={modelType === 'wasm'}>
|
|
241
241
|
<input
|
|
242
242
|
type="checkbox"
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
/>
|
|
247
247
|
<span class="text-xs font-mono text-text1">Prompt caching</span>
|
|
248
248
|
{#if modelType === 'wasm'}
|
|
249
|
-
<span class="text-[10px] font-mono text-text2/50 ml-auto">
|
|
249
|
+
<span class="text-[10px] font-mono text-text2/50 ml-auto">remote API only</span>
|
|
250
250
|
{:else}
|
|
251
251
|
<span class="text-[10px] font-mono text-text2 ml-auto">saves ~80% tokens</span>
|
|
252
252
|
{/if}
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
let current = $state(0);
|
|
15
15
|
let timer: ReturnType<typeof setInterval> | null = null;
|
|
16
16
|
|
|
17
|
-
function goTo(i: number) {
|
|
17
|
+
function goTo(i: number, userInitiated = false) {
|
|
18
18
|
current = Math.max(0, Math.min(i, slides.length - 1));
|
|
19
|
-
onslidechange?.(slides[current], current);
|
|
19
|
+
if (userInitiated) onslidechange?.(slides[current], current);
|
|
20
20
|
resetAuto();
|
|
21
21
|
}
|
|
22
|
-
function prev() { goTo(current > 0 ? current - 1 : slides.length - 1); }
|
|
22
|
+
function prev() { goTo(current > 0 ? current - 1 : slides.length - 1, true); }
|
|
23
23
|
function next() { goTo(current < slides.length - 1 ? current + 1 : 0); }
|
|
24
24
|
|
|
25
25
|
function resetAuto() {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
{#if slides.length > 1}
|
|
74
74
|
<button class="absolute left-2 top-1/2 -translate-y-1/2 w-7 h-7 rounded-full bg-black/40 text-white flex items-center justify-center hover:bg-black/60 text-sm" onclick={prev}>‹</button>
|
|
75
|
-
<button class="absolute right-2 top-1/2 -translate-y-1/2 w-7 h-7 rounded-full bg-black/40 text-white flex items-center justify-center hover:bg-black/60 text-sm" onclick={
|
|
75
|
+
<button class="absolute right-2 top-1/2 -translate-y-1/2 w-7 h-7 rounded-full bg-black/40 text-white flex items-center justify-center hover:bg-black/60 text-sm" onclick={() => goTo(current < slides.length - 1 ? current + 1 : 0, true)}>›</button>
|
|
76
76
|
{/if}
|
|
77
77
|
</div>
|
|
78
78
|
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
<div class="flex justify-center gap-1.5 mt-2">
|
|
81
81
|
{#each slides as _, i}
|
|
82
82
|
<button class="w-2 h-2 rounded-full transition-colors {i === current ? 'bg-accent' : 'bg-border2'}"
|
|
83
|
-
onclick={() => goTo(i)}></button>
|
|
83
|
+
onclick={() => goTo(i, true)}></button>
|
|
84
84
|
{/each}
|
|
85
85
|
</div>
|
|
86
86
|
{/if}
|