@g9tm/aiassistant-svelte 1.11.0 → 1.13.0
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.
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<li class={cls(ui, "card.approval.step")}>
|
|
35
35
|
<label>
|
|
36
36
|
<input type="checkbox" checked={s.ticked} disabled={plan.answered !== null || plan.steps.length === 1} onchange={() => ui.assistant.tick(plan.id, s.index)} />
|
|
37
|
-
{s.text}{#if !s.undoable}<span class="g9a-irreversible"> ({t("card.irreversible")})</span>{/if}
|
|
37
|
+
{s.text}{#if !s.undoable && !s.undoOnDevice}<span class="g9a-irreversible"> ({t("card.irreversible")})</span>{/if}
|
|
38
38
|
</label>
|
|
39
39
|
{#each s.facts as f, i (i)}<div class={cls(ui, "card.approval.fact")}>{say(f.key, f.args)}</div>{/each}
|
|
40
40
|
{#each s.diff as d, i (i)}<div class={cls(ui, "card.approval.fact")}>{say(d.name, d.args)}: {d.before ?? "—"} ← {d.after ?? "—"}</div>{/each}
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
<ol>
|
|
155
155
|
{#each plan.steps as s (s.index)}
|
|
156
156
|
<li class={cls(ui, "card.approval.step")}>
|
|
157
|
-
{s.text}{#if !s.undoable}<span class="g9a-irreversible"> ({t("card.irreversible")})</span>{/if}
|
|
157
|
+
{s.text}{#if !s.undoable && !s.undoOnDevice}<span class="g9a-irreversible"> ({t("card.irreversible")})</span>{/if}
|
|
158
158
|
{#each s.facts as f, i (i)}<div class={cls(ui, "card.approval.fact")}>{say(f.key, f.args)}</div>{/each}
|
|
159
159
|
{#each s.diff as d, i (i)}<div class={cls(ui, "card.approval.fact")}>{say(d.name, d.args)}: {d.before ?? "—"} ← {d.after ?? "—"}</div>{/each}
|
|
160
160
|
</li>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
// Reveals an answer that arrived in front of the person over about 1.5 s; history and reduced motion show it whole.
|
|
3
3
|
import { onDestroy } from "svelte";
|
|
4
|
-
import {
|
|
4
|
+
import { REVEAL_MS } from "@g9tm/aiassistant";
|
|
5
|
+
import { visibleText } from "@g9tm/aiassistant/pages";
|
|
5
6
|
import { cls, useUi } from "../context.js";
|
|
6
7
|
import { Ticker } from "../store.svelte.js";
|
|
7
8
|
import TextView from "./TextView.svelte";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/aiassistant-svelte",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Svelte 5 components for the G9 AI assistant, fully customisable (layouts, tokens, per-part classes, overrides, parts).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@g9tm/aiassistant": "1.
|
|
34
|
+
"@g9tm/aiassistant": "1.13.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@sveltejs/package": "2.5.8",
|