@adea-ai/ui 0.26.2 → 0.26.3

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.
@@ -3,7 +3,7 @@ import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, Di
3
3
  import { formatReleaseDate, plainTextFromMarkdown } from "../lib/version-notes.js";
4
4
  import { createComponent, insert, memo, template } from "solid-js/web";
5
5
  import { Check, Download, ExternalLink, FileText, LoaderCircle, RefreshCw, Sparkles } from "lucide-solid";
6
- import { Show, createEffect, createMemo, createSignal } from "solid-js";
6
+ import { Show, createEffect, createMemo, createSignal, onMount } from "solid-js";
7
7
  //#region src/components/version-dialog.tsx
8
8
  var _tmpl$ = /*#__PURE__*/ template(`<div class="flex items-center gap-3"><span class="flex size-10 items-center justify-center rounded-xl bg-primary text-primary-foreground"></span><div>`);
9
9
  var _tmpl$2 = /*#__PURE__*/ template(`<section class="rounded-xl border border-primary/35 bg-primary/8 p-4"aria-label="Available update"><div class="flex flex-wrap items-start justify-between gap-4"><div class="flex flex-col gap-1"><p class="flex items-center gap-2 text-sm font-semibold">Version <!> is ready</p><p class="text-sm text-muted-foreground">The signed installer will be verified before Adea restarts.`);
@@ -35,7 +35,7 @@ function VersionDialog(props) {
35
35
  if (props.open === void 0) setUncontrolledOpen(nextOpen);
36
36
  props.onOpenChange?.(nextOpen);
37
37
  };
38
- const [desktopRuntime, setDesktopRuntime] = createSignal(false);
38
+ const desktopRuntime = () => props.adapter.isDesktopRuntime();
39
39
  const [update, setUpdate] = createSignal(null);
40
40
  const [busy, setBusy] = createSignal(false);
41
41
  const [error, setError] = createSignal("");
@@ -47,8 +47,7 @@ function VersionDialog(props) {
47
47
  setError(errorMessage(caught, "Version status is unavailable"));
48
48
  }
49
49
  };
50
- createEffect(() => setDesktopRuntime(props.adapter.isDesktopRuntime()));
51
- createEffect(() => {
50
+ onMount(() => {
52
51
  if (desktopRuntime()) loadCurrentStatus();
53
52
  });
54
53
  const checkForUpdates = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/ui",
3
- "version": "0.26.2",
3
+ "version": "0.26.3",
4
4
  "description": "Shared UI kit for Adea: Kobalte/corvu-backed Solid primitives, workspace shells, and theme styles.",
5
5
  "keywords": [
6
6
  "components",
@@ -7,7 +7,7 @@ import {
7
7
  RefreshCw,
8
8
  Sparkles,
9
9
  } from 'lucide-solid'
10
- import { createEffect, createMemo, createSignal, Show } from 'solid-js'
10
+ import { createEffect, createMemo, createSignal, onMount, Show } from 'solid-js'
11
11
 
12
12
  import { formatReleaseDate, plainTextFromMarkdown } from '#lib/version-notes'
13
13
  import { Button, buttonVariants } from '#components/ui/button'
@@ -91,7 +91,7 @@ export function VersionDialog(props: {
91
91
  props.onOpenChange?.(nextOpen)
92
92
  }
93
93
 
94
- const [desktopRuntime, setDesktopRuntime] = createSignal(false)
94
+ const desktopRuntime = () => props.adapter.isDesktopRuntime()
95
95
  const [update, setUpdate] = createSignal<SharedDesktopUpdate | null>(null)
96
96
  const [busy, setBusy] = createSignal(false)
97
97
  const [error, setError] = createSignal('')
@@ -105,9 +105,7 @@ export function VersionDialog(props: {
105
105
  }
106
106
  }
107
107
 
108
- createEffect(() => setDesktopRuntime(props.adapter.isDesktopRuntime()))
109
-
110
- createEffect(() => {
108
+ onMount(() => {
111
109
  if (desktopRuntime()) void loadCurrentStatus()
112
110
  })
113
111