@danxbot/ui 4.1.11 → 4.1.12
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
|
@@ -45755,18 +45755,19 @@ function l4({
|
|
|
45755
45755
|
redactedLabel: r = "Redacted",
|
|
45756
45756
|
ratingLabel: o,
|
|
45757
45757
|
valueContent: s,
|
|
45758
|
-
|
|
45759
|
-
|
|
45760
|
-
|
|
45758
|
+
stateContent: i,
|
|
45759
|
+
titleId: a,
|
|
45760
|
+
titleAs: l = "h2",
|
|
45761
|
+
className: c
|
|
45761
45762
|
}) {
|
|
45762
|
-
const
|
|
45763
|
-
return /* @__PURE__ */ T("div", { className: W("flex flex-col",
|
|
45763
|
+
const u = `provenance-detail-${Ut()}`, m = a ?? u, d = Ag(e), p = ck(e), h = d && e.source ? { ...e.source, quote: null } : e.source, g = d ? null : e.reasoning, x = d && e.signoff ? { ...e.signoff, note: null, replaced: null } : e.signoff, y = uk(e, { emptyLabel: n, redactedLabel: r });
|
|
45764
|
+
return /* @__PURE__ */ T("div", { className: W("flex flex-col", c), children: [
|
|
45764
45765
|
/* @__PURE__ */ T("header", { className: "flex flex-col gap-2 p-4 pb-3", children: [
|
|
45765
45766
|
/* @__PURE__ */ T("div", { className: "flex items-start justify-between gap-3", children: [
|
|
45766
|
-
/* @__PURE__ */ f(
|
|
45767
|
-
/* @__PURE__ */ f(lk, { state: e.state, alwaysShow: !0 })
|
|
45767
|
+
/* @__PURE__ */ f(l, { id: m, className: "text-2xs font-semibold uppercase tracking-widest text-tertiary", children: e.label }),
|
|
45768
|
+
i ?? /* @__PURE__ */ f(lk, { state: e.state, alwaysShow: !0 })
|
|
45768
45769
|
] }),
|
|
45769
|
-
s ?? /* @__PURE__ */ f("p", { className: W("text-md text-primary",
|
|
45770
|
+
s ?? /* @__PURE__ */ f("p", { className: W("text-md text-primary", p && "text-danger-text"), children: y }),
|
|
45770
45771
|
/* @__PURE__ */ f(i4, { confidence: e.confidence, ratingLabel: o })
|
|
45771
45772
|
] }),
|
|
45772
45773
|
/* @__PURE__ */ f(Px, {}),
|
|
@@ -45788,37 +45789,37 @@ function l4({
|
|
|
45788
45789
|
)
|
|
45789
45790
|
}
|
|
45790
45791
|
),
|
|
45791
|
-
|
|
45792
|
+
h && /* @__PURE__ */ T(bi, { icon: "file-text", label: "Source", children: [
|
|
45792
45793
|
/* @__PURE__ */ T("p", { className: "text-primary", children: [
|
|
45793
|
-
|
|
45794
|
-
|
|
45794
|
+
h.label,
|
|
45795
|
+
h.locus && /* @__PURE__ */ T("span", { className: "text-tertiary", children: [
|
|
45795
45796
|
" · ",
|
|
45796
|
-
|
|
45797
|
+
h.locus
|
|
45797
45798
|
] })
|
|
45798
45799
|
] }),
|
|
45799
|
-
|
|
45800
|
+
h.quote && /* The quote is the evidence, so it is set apart rather than run
|
|
45800
45801
|
into the sentence above it — and it is never truncated: a
|
|
45801
45802
|
half-shown quotation is a misquotation. */
|
|
45802
|
-
/* @__PURE__ */ f("blockquote", { className: "mt-2 border-l-2 border-accent-border bg-surface-sunken py-2 pl-3 text-sm text-secondary", children:
|
|
45803
|
+
/* @__PURE__ */ f("blockquote", { className: "mt-2 border-l-2 border-accent-border bg-surface-sunken py-2 pl-3 text-sm text-secondary", children: h.quote })
|
|
45803
45804
|
] }),
|
|
45804
|
-
|
|
45805
|
-
|
|
45805
|
+
g && /* @__PURE__ */ f(bi, { icon: "brain", label: "Reasoning", children: g }),
|
|
45806
|
+
x && /* @__PURE__ */ T(bi, { icon: "shield-check", label: "Signed", children: [
|
|
45806
45807
|
/* @__PURE__ */ T("p", { className: "text-primary", children: [
|
|
45807
|
-
|
|
45808
|
+
x.by,
|
|
45808
45809
|
" ",
|
|
45809
45810
|
/* @__PURE__ */ T("span", { className: "text-tertiary", children: [
|
|
45810
45811
|
"· ",
|
|
45811
|
-
|
|
45812
|
+
x.at
|
|
45812
45813
|
] })
|
|
45813
45814
|
] }),
|
|
45814
|
-
|
|
45815
|
-
|
|
45815
|
+
x.note && /* @__PURE__ */ f("p", { className: "mt-1", children: x.note }),
|
|
45816
|
+
x.replaced !== null && /* The original, kept. A correction whose previous value is gone is
|
|
45816
45817
|
an assertion rather than a record — this line is the difference
|
|
45817
45818
|
between the two. */
|
|
45818
45819
|
/* @__PURE__ */ T("p", { className: "mt-2 text-xs text-tertiary", children: [
|
|
45819
45820
|
"Corrected from",
|
|
45820
45821
|
" ",
|
|
45821
|
-
/* @__PURE__ */ f("span", { className: "line-through decoration-danger-border", children:
|
|
45822
|
+
/* @__PURE__ */ f("span", { className: "line-through decoration-danger-border", children: x.replaced })
|
|
45822
45823
|
] })
|
|
45823
45824
|
] }),
|
|
45824
45825
|
e.call && /* @__PURE__ */ f(bi, { icon: "cpu", label: "Model call", children: /* @__PURE__ */ T("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
@@ -45836,7 +45837,7 @@ function l4({
|
|
|
45836
45837
|
" ms"
|
|
45837
45838
|
] })
|
|
45838
45839
|
] }) }),
|
|
45839
|
-
!
|
|
45840
|
+
!h && !g && !e.call && !e.check && /* Says so, rather than rendering an empty panel that reads as a
|
|
45840
45841
|
loading state or a bug. */
|
|
45841
45842
|
/* @__PURE__ */ f("p", { className: "text-sm text-tertiary", children: "Nothing was recorded about where this value came from." })
|
|
45842
45843
|
] }),
|
|
@@ -45856,11 +45857,12 @@ function IU({
|
|
|
45856
45857
|
valueWrap: i = !1,
|
|
45857
45858
|
triggerContent: a,
|
|
45858
45859
|
valueContent: l,
|
|
45859
|
-
|
|
45860
|
-
|
|
45861
|
-
|
|
45860
|
+
stateContent: c,
|
|
45861
|
+
onOpenChange: u,
|
|
45862
|
+
className: m,
|
|
45863
|
+
width: d = "30rem"
|
|
45862
45864
|
}) {
|
|
45863
|
-
const
|
|
45865
|
+
const p = uk(e, { emptyLabel: n, redactedLabel: r }), h = `provenance-${Ut()}`, g = /* @__PURE__ */ T(
|
|
45864
45866
|
"button",
|
|
45865
45867
|
{
|
|
45866
45868
|
type: "button",
|
|
@@ -45876,7 +45878,7 @@ function IU({
|
|
|
45876
45878
|
!a && "underline decoration-border-subtle decoration-dotted underline-offset-4 hover:decoration-accent-border",
|
|
45877
45879
|
"transition-colors duration-(--dur-fast)",
|
|
45878
45880
|
"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent-border",
|
|
45879
|
-
|
|
45881
|
+
m
|
|
45880
45882
|
),
|
|
45881
45883
|
children: [
|
|
45882
45884
|
/* @__PURE__ */ T("span", { className: "sr-only", children: [
|
|
@@ -45894,7 +45896,7 @@ function IU({
|
|
|
45894
45896
|
single unbroken token that would otherwise push the column. */
|
|
45895
45897
|
i ? "whitespace-normal break-words" : "truncate"
|
|
45896
45898
|
),
|
|
45897
|
-
children:
|
|
45899
|
+
children: p
|
|
45898
45900
|
}
|
|
45899
45901
|
),
|
|
45900
45902
|
s !== "none" && /* @__PURE__ */ f(
|
|
@@ -45920,13 +45922,13 @@ function IU({
|
|
|
45920
45922
|
return /* @__PURE__ */ f(
|
|
45921
45923
|
nr,
|
|
45922
45924
|
{
|
|
45923
|
-
trigger:
|
|
45925
|
+
trigger: g,
|
|
45924
45926
|
side: "bottom",
|
|
45925
45927
|
align: "start",
|
|
45926
|
-
width:
|
|
45928
|
+
width: d,
|
|
45927
45929
|
className: "p-0",
|
|
45928
|
-
onOpenChange:
|
|
45929
|
-
"aria-labelledby":
|
|
45930
|
+
onOpenChange: u,
|
|
45931
|
+
"aria-labelledby": h,
|
|
45930
45932
|
children: /* @__PURE__ */ f(
|
|
45931
45933
|
l4,
|
|
45932
45934
|
{
|
|
@@ -45936,7 +45938,8 @@ function IU({
|
|
|
45936
45938
|
redactedLabel: r,
|
|
45937
45939
|
ratingLabel: o,
|
|
45938
45940
|
valueContent: l,
|
|
45939
|
-
|
|
45941
|
+
stateContent: c,
|
|
45942
|
+
titleId: h
|
|
45940
45943
|
}
|
|
45941
45944
|
)
|
|
45942
45945
|
}
|