@danxbot/ui 3.12.0 → 3.12.1
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/index.js
CHANGED
|
@@ -45609,15 +45609,16 @@ function dU({
|
|
|
45609
45609
|
triggerBadge: o = "word",
|
|
45610
45610
|
valueWrap: s = !1,
|
|
45611
45611
|
triggerContent: i,
|
|
45612
|
-
|
|
45613
|
-
|
|
45612
|
+
valueContent: a,
|
|
45613
|
+
onOpenChange: l,
|
|
45614
|
+
className: c
|
|
45614
45615
|
}) {
|
|
45615
|
-
const
|
|
45616
|
+
const u = e.redacted === !0, m = !u && e.state === "failed", d = u && e.source ? { ...e.source, quote: null } : e.source, p = u ? null : e.reasoning, h = u && e.signoff ? { ...e.signoff, note: null, replaced: null } : e.signoff, g = u ? /* @__PURE__ */ f(Zd, { kind: "redacted", children: r }) : m ? /* @__PURE__ */ f(Zd, { kind: "failed", children: "Held null — check failed" }) : e.value === null ? (
|
|
45616
45617
|
/* Only null. An extracted empty string IS a value — coercing it to "No
|
|
45617
45618
|
value" is the component collapsing an absence it was built to keep
|
|
45618
45619
|
apart, one level down. */
|
|
45619
45620
|
/* @__PURE__ */ f(Zd, { kind: "empty", children: n })
|
|
45620
|
-
) : e.value,
|
|
45621
|
+
) : e.value, x = `provenance-${Gt()}`, y = /* @__PURE__ */ T(
|
|
45621
45622
|
"button",
|
|
45622
45623
|
{
|
|
45623
45624
|
type: "button",
|
|
@@ -45633,7 +45634,7 @@ function dU({
|
|
|
45633
45634
|
!i && "underline decoration-border-subtle decoration-dotted underline-offset-4 hover:decoration-accent-border",
|
|
45634
45635
|
"transition-colors duration-(--dur-fast)",
|
|
45635
45636
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-border",
|
|
45636
|
-
|
|
45637
|
+
c
|
|
45637
45638
|
),
|
|
45638
45639
|
children: [
|
|
45639
45640
|
/* @__PURE__ */ T("span", { className: "sr-only", children: [
|
|
@@ -45651,7 +45652,7 @@ function dU({
|
|
|
45651
45652
|
single unbroken token that would otherwise push the column. */
|
|
45652
45653
|
s ? "whitespace-normal break-words" : "truncate"
|
|
45653
45654
|
),
|
|
45654
|
-
children:
|
|
45655
|
+
children: g
|
|
45655
45656
|
}
|
|
45656
45657
|
),
|
|
45657
45658
|
o !== "none" && /* @__PURE__ */ f(
|
|
@@ -45677,26 +45678,26 @@ function dU({
|
|
|
45677
45678
|
return /* @__PURE__ */ f(
|
|
45678
45679
|
tr,
|
|
45679
45680
|
{
|
|
45680
|
-
trigger:
|
|
45681
|
+
trigger: y,
|
|
45681
45682
|
side: "bottom",
|
|
45682
45683
|
align: "start",
|
|
45683
|
-
className: "w-
|
|
45684
|
-
onOpenChange:
|
|
45685
|
-
"aria-labelledby":
|
|
45686
|
-
children: /* @__PURE__ */ T("div", { className: "flex max-h-[
|
|
45684
|
+
className: "w-[30rem] max-w-[92vw] p-0",
|
|
45685
|
+
onOpenChange: l,
|
|
45686
|
+
"aria-labelledby": x,
|
|
45687
|
+
children: /* @__PURE__ */ T("div", { className: "flex max-h-[80vh] flex-col overflow-y-auto", children: [
|
|
45687
45688
|
/* @__PURE__ */ T("header", { className: "flex flex-col gap-2 p-4 pb-3", children: [
|
|
45688
45689
|
/* @__PURE__ */ T("div", { className: "flex items-start justify-between gap-3", children: [
|
|
45689
45690
|
/* @__PURE__ */ f(
|
|
45690
45691
|
"h2",
|
|
45691
45692
|
{
|
|
45692
|
-
id:
|
|
45693
|
+
id: x,
|
|
45693
45694
|
className: "text-2xs font-semibold uppercase tracking-widest text-tertiary",
|
|
45694
45695
|
children: e.label
|
|
45695
45696
|
}
|
|
45696
45697
|
),
|
|
45697
45698
|
/* @__PURE__ */ f(uv, { state: e.state, alwaysShow: !0 })
|
|
45698
45699
|
] }),
|
|
45699
|
-
/* @__PURE__ */ f("p", { className: W("text-md text-primary",
|
|
45700
|
+
a ?? /* @__PURE__ */ f("p", { className: W("text-md text-primary", m && "text-danger-text"), children: g }),
|
|
45700
45701
|
/* @__PURE__ */ f(KB, { confidence: e.confidence })
|
|
45701
45702
|
] }),
|
|
45702
45703
|
/* @__PURE__ */ f(Ix, {}),
|
|
@@ -45718,37 +45719,37 @@ function dU({
|
|
|
45718
45719
|
)
|
|
45719
45720
|
}
|
|
45720
45721
|
),
|
|
45721
|
-
|
|
45722
|
+
d && /* @__PURE__ */ T(bi, { icon: "file-text", label: "Source", children: [
|
|
45722
45723
|
/* @__PURE__ */ T("p", { className: "text-primary", children: [
|
|
45723
|
-
|
|
45724
|
-
|
|
45724
|
+
d.label,
|
|
45725
|
+
d.locus && /* @__PURE__ */ T("span", { className: "text-tertiary", children: [
|
|
45725
45726
|
" · ",
|
|
45726
|
-
|
|
45727
|
+
d.locus
|
|
45727
45728
|
] })
|
|
45728
45729
|
] }),
|
|
45729
|
-
|
|
45730
|
+
d.quote && /* The quote is the evidence, so it is set apart rather than run
|
|
45730
45731
|
into the sentence above it — and it is never truncated: a
|
|
45731
45732
|
half-shown quotation is a misquotation. */
|
|
45732
|
-
/* @__PURE__ */ f("blockquote", { className: "mt-2 border-l-2 border-accent-border bg-surface-sunken py-2 pl-3 text-sm text-secondary", children:
|
|
45733
|
+
/* @__PURE__ */ f("blockquote", { className: "mt-2 border-l-2 border-accent-border bg-surface-sunken py-2 pl-3 text-sm text-secondary", children: d.quote })
|
|
45733
45734
|
] }),
|
|
45734
|
-
|
|
45735
|
-
|
|
45735
|
+
p && /* @__PURE__ */ f(bi, { icon: "brain", label: "Reasoning", children: p }),
|
|
45736
|
+
h && /* @__PURE__ */ T(bi, { icon: "shield-check", label: "Signed", children: [
|
|
45736
45737
|
/* @__PURE__ */ T("p", { className: "text-primary", children: [
|
|
45737
|
-
|
|
45738
|
+
h.by,
|
|
45738
45739
|
" ",
|
|
45739
45740
|
/* @__PURE__ */ T("span", { className: "text-tertiary", children: [
|
|
45740
45741
|
"· ",
|
|
45741
|
-
|
|
45742
|
+
h.at
|
|
45742
45743
|
] })
|
|
45743
45744
|
] }),
|
|
45744
|
-
|
|
45745
|
-
|
|
45745
|
+
h.note && /* @__PURE__ */ f("p", { className: "mt-1", children: h.note }),
|
|
45746
|
+
h.replaced !== null && /* The original, kept. A correction whose previous value is gone
|
|
45746
45747
|
is an assertion rather than a record — this line is the
|
|
45747
45748
|
difference between the two. */
|
|
45748
45749
|
/* @__PURE__ */ T("p", { className: "mt-2 text-xs text-tertiary", children: [
|
|
45749
45750
|
"Corrected from",
|
|
45750
45751
|
" ",
|
|
45751
|
-
/* @__PURE__ */ f("span", { className: "line-through decoration-danger-border", children:
|
|
45752
|
+
/* @__PURE__ */ f("span", { className: "line-through decoration-danger-border", children: h.replaced })
|
|
45752
45753
|
] })
|
|
45753
45754
|
] }),
|
|
45754
45755
|
e.call && /* @__PURE__ */ f(bi, { icon: "cpu", label: "Model call", children: /* @__PURE__ */ T("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
@@ -45766,7 +45767,7 @@ function dU({
|
|
|
45766
45767
|
" ms"
|
|
45767
45768
|
] })
|
|
45768
45769
|
] }) }),
|
|
45769
|
-
!
|
|
45770
|
+
!d && !p && !e.call && !e.check && /* Says so, rather than rendering an empty panel that reads as a
|
|
45770
45771
|
loading state or a bug. */
|
|
45771
45772
|
/* @__PURE__ */ f("p", { className: "text-sm text-tertiary", children: "Nothing was recorded about where this value came from." })
|
|
45772
45773
|
] }),
|