@g9tm/aiassistant-lynx 1.12.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.
package/dist/pages.jsx CHANGED
@@ -311,7 +311,7 @@ function RoutineForm(props) {
311
311
  {p ? (<view className={cls(ui, "card.approval")} style={{ marginTop: "8px", padding: "12px", borderRadius: "10px", borderWidth: "1px", borderColor: tok(ui, "approval-card-border", "#8a4b2a") }}>
312
312
  <text style={{ fontWeight: "bold" }} text-maxline="2">{p.readOnly ? t("card.readonly_routine") : p.title}</text>
313
313
  {p.warning ? <text style={{ color: tok(ui, "warn", "#a35a00") }} text-maxline="2">{t("card.tainted")}</text> : null}
314
- {p.steps.map((s) => <text key={s.index} className={cls(ui, "card.approval.step")} text-maxline="2">{String(s.index) + ". " + s.text + (s.undoable ? "" : " (" + t("card.irreversible") + ")")}</text>)}
314
+ {p.steps.map((s) => <text key={s.index} className={cls(ui, "card.approval.step")} text-maxline="2">{String(s.index) + ". " + s.text + (s.undoable || s.undoOnDevice ? "" : " (" + t("card.irreversible") + ")")}</text>)}
315
315
  {p.answered === null ? (<view>
316
316
  {needsCode(p.method) ? <view className={cls(ui, "card.approval.code")}><PinPad key={epoch} label={t("card.code")} onInput={(v) => { code.current = v; }}/></view> : null}
317
317
  {p.failCode === "confirm.waiting" ? <text>{t("card.waiting")}</text> : p.failCode ? <text text-maxline="2">{t(p.failCode) + (p.triesLeft !== null ? " · " + t("card.tries_left", { count: p.triesLeft }) : "")}</text> : null}
package/dist/parts.jsx CHANGED
@@ -152,7 +152,7 @@ export function ApprovalCard(props) {
152
152
  <text style={{ ...inkOf(ui), fontWeight: "bold" }}>{p.readOnly ? t("card.readonly_routine") : p.title}</text>
153
153
  {p.warning ? <text style={{ color: tok(ui, "warn", "#a35a00") }}>{t("card.tainted")}</text> : null}
154
154
  {p.steps.map((s) => (<view key={s.index} className={cls(ui, "card.approval.step")} accessibility-element={true} accessibility-label={s.text} bindtap={() => ui.assistant.tick(p.id, s.index)}>
155
- <view style={rowOf(ui)}><text style={inkOf(ui)}>{s.ticked ? "☑ " : "☐ "}</text><text style={{ ...grow, ...inkOf(ui) }}>{s.text}{s.undoable ? "" : " (" + t("card.irreversible") + ")"}</text></view>
155
+ <view style={rowOf(ui)}><text style={inkOf(ui)}>{s.ticked ? "☑ " : "☐ "}</text><text style={{ ...grow, ...inkOf(ui) }}>{s.text}{s.undoable || s.undoOnDevice ? "" : " (" + t("card.irreversible") + ")"}</text></view>
156
156
  {s.facts.map((f, i) => <text key={i} className={cls(ui, "card.approval.fact")} style={{ ...inkOf(ui), fontSize: "12px" }}>{say(f.key, f.args)}</text>)}
157
157
  {s.diff.map((d, i) => <text key={"d" + String(i)} className={cls(ui, "card.approval.fact")} style={{ ...inkOf(ui), fontSize: "12px" }}>{say(d.name, d.args) + ": " + (d.before ?? "—") + " ← " + (d.after ?? "—")}</text>)}
158
158
  </view>))}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@g9tm/aiassistant-lynx",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "ReactLynx components for the G9 AI assistant, fully customisable (layouts, tokens, per-part classes, overrides, parts).",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -29,7 +29,7 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@g9tm/aiassistant": "1.12.0"
32
+ "@g9tm/aiassistant": "1.13.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@lynx-js/react": "0.129.2",