@nivaro/react 0.3.116 → 0.3.118
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +140 -14
- package/dist/index.js +488 -485
- package/dist/shared/components/ActivityEntry.js +130 -125
- package/dist/shared/components/AgentPresenceChip.js +36 -26
- package/dist/shared/components/CellCopyLayer.js +50 -45
- package/dist/shared/components/CollectionBrowserView.js +3855 -3785
- package/dist/shared/components/FilePreviewLightbox.js +96 -58
- package/dist/shared/components/InStep.js +18 -17
- package/dist/shared/components/ItemEditForm.js +4220 -4175
- package/dist/shared/components/JobsTray.js +8 -8
- package/dist/shared/components/LiveNewMatchesPill.js +21 -14
- package/dist/shared/components/LiveOffNote.js +3 -2
- package/dist/shared/components/LiveRowMark.js +53 -23
- package/dist/shared/components/LiveTraceView.js +162 -123
- package/dist/shared/components/MyWorkView.js +320 -299
- package/dist/shared/components/NotificationBell.js +14 -14
- package/dist/shared/components/OverflowRail.js +1 -1
- package/dist/shared/components/PageRenderer.js +120 -116
- package/dist/shared/components/ProfileView.js +203 -202
- package/dist/shared/components/RealtimeStatusBanner.js +31 -29
- package/dist/shared/components/RecordDrilldownSheet.js +7 -7
- package/dist/shared/components/RecordHoverCard.js +102 -84
- package/dist/shared/components/RecordReadView.js +146 -146
- package/dist/shared/components/ReportView.js +1086 -1091
- package/dist/shared/components/ScreenRefreshButton.js +34 -32
- package/dist/shared/components/TipLayer.js +65 -58
- package/dist/shared/components/WidgetImageMenu.js +83 -43
- package/dist/shared/components/activity/RecordActivityStream.js +175 -173
- package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
- package/dist/shared/components/cbv/column-totals.js +62 -57
- package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
- package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
- package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
- package/dist/shared/components/charts/category-axis.js +93 -0
- package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
- package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
- package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
- package/dist/shared/components/collections-directory/page-model.js +72 -67
- package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
- package/dist/shared/components/integrations/SendStatus.js +65 -59
- package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
- package/dist/shared/components/integrations/console/SignalCard.js +237 -230
- package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
- package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +131 -92
- package/dist/shared/components/item-edit/CloneDialog.js +191 -161
- package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
- package/dist/shared/components/item-edit/FieldComments.js +54 -53
- package/dist/shared/components/item-edit/FieldPointer.js +82 -67
- package/dist/shared/components/item-edit/FieldRow.js +106 -100
- package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
- package/dist/shared/components/item-edit/FilePickerField.js +452 -387
- package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
- package/dist/shared/components/item-edit/HeaderTools.js +94 -85
- package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
- package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
- package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
- package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
- package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
- package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
- package/dist/shared/components/item-edit/RecalcValue.js +57 -32
- package/dist/shared/components/item-edit/RecordHelpChip.js +21 -22
- package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
- package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
- package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
- package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
- package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
- package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
- package/dist/shared/components/item-edit/SectionPresence.js +18 -10
- package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
- package/dist/shared/components/item-edit/UserChip.js +1 -1
- package/dist/shared/components/item-edit/file-live.js +69 -54
- package/dist/shared/components/item-edit/layout-switch.js +98 -89
- package/dist/shared/components/item-edit/partner-needs.js +12 -12
- package/dist/shared/components/item-edit/removed-line.js +31 -25
- package/dist/shared/components/layout-editor/pickers/field-picker.js +112 -104
- package/dist/shared/components/list/ListViewers.js +46 -35
- package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
- package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
- package/dist/shared/components/panels/AlertBanners.js +82 -72
- package/dist/shared/components/panels/BranchLanes.js +22 -22
- package/dist/shared/components/panels/CommentImages.js +123 -102
- package/dist/shared/components/panels/CommentPanel.js +186 -185
- package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
- package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
- package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
- package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
- package/dist/shared/components/pipeline/BindingStartStateSettings.js +163 -0
- package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
- package/dist/shared/components/pipeline/PipelineEditorView.js +320 -299
- package/dist/shared/components/profile/AgentNameField.js +107 -81
- package/dist/shared/components/profile/AgentsPanel.js +184 -184
- package/dist/shared/components/profile/PersonAccess.js +599 -495
- package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
- package/dist/shared/components/profile/SignedInDevices.js +17 -17
- package/dist/shared/components/profile/primitives.js +1 -1
- package/dist/shared/components/queue/OwnerAvatars.js +91 -54
- package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
- package/dist/shared/components/queue/QueueWorklist.js +1002 -983
- package/dist/shared/components/support/AssignRules.js +1733 -0
- package/dist/shared/components/support/PersonPick.js +88 -0
- package/dist/shared/components/support/RequestList.js +790 -0
- package/dist/shared/components/support/ScreenShare.js +158 -152
- package/dist/shared/components/support/SupportRequestDialog.js +50 -48
- package/dist/shared/components/support/SupportView.js +140 -246
- package/dist/shared/components/support/TicketDetailSheet.js +82 -75
- package/dist/shared/components/support/TicketSlowScreens.js +9 -9
- package/dist/shared/components/support/assign-rules-text.js +171 -0
- package/dist/shared/components/support/support-list.js +125 -0
- package/dist/shared/components/ui/SimpleSelect.js +28 -20
- package/dist/shared/components/ui/checkbox.js +6 -6
- package/dist/shared/components/ui/select.js +43 -39
- package/dist/shared/components/ui/sheet.js +9 -9
- package/dist/shared/components/ui/switch.js +12 -11
- package/dist/shared/components/watch-list/WatchDock.js +532 -459
- package/dist/shared/components/watch-list/WatchExtras.js +332 -286
- package/dist/shared/components/watch-list/WatchRows.js +164 -140
- package/dist/shared/lib/activity-sentence.js +103 -91
- package/dist/shared/lib/agent-presence.js +27 -21
- package/dist/shared/lib/approval-progress.js +2 -2
- package/dist/shared/lib/copy-rules.js +31 -24
- package/dist/shared/lib/derived-causes.js +113 -78
- package/dist/shared/lib/grid-cursors.js +26 -26
- package/dist/shared/lib/label-flash.js +27 -0
- package/dist/shared/lib/list-return.js +137 -125
- package/dist/shared/lib/live-deltas.js +40 -34
- package/dist/shared/lib/live-groups.js +56 -52
- package/dist/shared/lib/live-preference.js +64 -59
- package/dist/shared/lib/live-screen.js +223 -192
- package/dist/shared/lib/partner-failure.js +11 -11
- package/dist/shared/lib/rollup-recalc.js +68 -64
- package/dist/shared/lib/screen-refresh.js +74 -68
- package/dist/shared/lib/screen-share.js +108 -104
- package/dist/shared/lib/send-status.js +77 -61
- package/dist/shared/lib/text-diff-window.js +29 -0
- package/dist/shared/lib/use-query-entry.js +17 -0
- package/dist/shared/lib/watch-list.js +210 -209
- package/dist/shared/lib/widget-image-render.js +72 -49
- package/package.json +1 -1
|
@@ -1,153 +1,161 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useQueryClient as
|
|
3
|
-
import { FileDiff as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useNivaroClient as
|
|
6
|
-
import { get as
|
|
7
|
-
import { useLiveRecordQueries as
|
|
8
|
-
import { cn as
|
|
9
|
-
import { Popover as F, PopoverTrigger as
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
import { jsxs as o, jsx as i, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import { useQueryClient as S, useQuery as $ } from "@tanstack/react-query";
|
|
3
|
+
import { FileDiff as A, ArrowRight as L } from "lucide-react";
|
|
4
|
+
import { useState as w, useRef as R, useCallback as j, useEffect as D } from "react";
|
|
5
|
+
import { useNivaroClient as O } from "../../context.js";
|
|
6
|
+
import { get as E } from "../../lib/commands.js";
|
|
7
|
+
import { useLiveRecordQueries as P } from "../../lib/live.js";
|
|
8
|
+
import { cn as v, formatDateTime as m, formatRelative as N, toLocalDateString as _ } from "../../lib/utils.js";
|
|
9
|
+
import { Popover as F, PopoverTrigger as q, PopoverContent as M } from "../ui/popover.js";
|
|
10
|
+
import { richTextToPlain as Q } from "./helpers.js";
|
|
11
|
+
import { useLivePreference as U } from "../../lib/live-preference.js";
|
|
12
|
+
const Y = (e, l) => [
|
|
12
13
|
"approval-changes",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
],
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
if (
|
|
19
|
-
if (typeof
|
|
20
|
-
if (typeof
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
e,
|
|
15
|
+
l
|
|
16
|
+
], z = /^\d{4}-\d{2}-\d{2}(T00:00:00(\.0+)?Z)?$/, B = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/;
|
|
17
|
+
function y(e, l, s) {
|
|
18
|
+
if (l) return l;
|
|
19
|
+
if (e == null || e === "") return "Empty";
|
|
20
|
+
if (typeof e == "boolean") return e ? "Yes" : "No";
|
|
21
|
+
if (typeof e == "number") return e.toLocaleString("en-US", { maximumFractionDigits: 4 });
|
|
22
|
+
const d = Q(
|
|
23
|
+
typeof e == "object" && e !== null && !Array.isArray(e) ? JSON.stringify(e) : e
|
|
24
|
+
);
|
|
25
|
+
if (d !== null) return d === "" ? "Empty" : k(d);
|
|
26
|
+
if (typeof e == "object") return Array.isArray(e) ? `${e.length} items` : "Changed";
|
|
27
|
+
const a = String(e), n = String(s ?? "").toLowerCase();
|
|
28
|
+
return n === "date" || z.test(a) ? _(a) : B.test(a) ? m(a) : n === "boolean" && (a === "1" || a === "0") ? a === "1" ? "Yes" : "No" : /^-?\d+(\.\d+)?$/.test(a) && (n === "decimal" || n === "float" || n === "integer") ? Number(a).toLocaleString("en-US", { maximumFractionDigits: 4 }) : k(a);
|
|
24
29
|
}
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
const k = (e) => e.length > 80 ? `${e.slice(0, 77)}…` : e;
|
|
31
|
+
function H(e) {
|
|
32
|
+
return e.by.via === "outside" ? "Changed outside the app" : e.at ? `${e.by.name} · ${N(e.at)}` : e.by.name;
|
|
27
33
|
}
|
|
28
|
-
function
|
|
29
|
-
collection:
|
|
30
|
-
itemId:
|
|
31
|
-
enabled:
|
|
34
|
+
function ne({
|
|
35
|
+
collection: e,
|
|
36
|
+
itemId: l,
|
|
37
|
+
enabled: s
|
|
32
38
|
}) {
|
|
33
|
-
var
|
|
34
|
-
const
|
|
35
|
-
queryKey:
|
|
36
|
-
queryFn: () =>
|
|
37
|
-
|
|
38
|
-
).then((
|
|
39
|
-
enabled:
|
|
39
|
+
var b;
|
|
40
|
+
const d = O(), a = S(), n = U(), [c, C] = w(!1), f = Y(e, l), { data: t } = $({
|
|
41
|
+
queryKey: f,
|
|
42
|
+
queryFn: () => d.request(
|
|
43
|
+
E(`/approval-changes/record/${e}/${encodeURIComponent(l)}`)
|
|
44
|
+
).then((r) => r.data ?? null).catch(() => null),
|
|
45
|
+
enabled: s && !!l && l !== "new",
|
|
40
46
|
staleTime: 3e4
|
|
41
47
|
});
|
|
42
|
-
if (
|
|
43
|
-
client:
|
|
48
|
+
if (P(e, l, [f], {
|
|
49
|
+
client: a,
|
|
44
50
|
debounceMs: 1e3,
|
|
45
51
|
includeOwn: !0,
|
|
46
|
-
enabled:
|
|
47
|
-
}), !
|
|
48
|
-
const h =
|
|
52
|
+
enabled: s && !!(t != null && t.enabled)
|
|
53
|
+
}), !s || !(t != null && t.approved)) return null;
|
|
54
|
+
const h = t.total + ((b = t.lines) != null && b.count ? 1 : 0);
|
|
49
55
|
if (h === 0) return null;
|
|
50
|
-
const
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
56
|
+
const u = t.approved.by.map((r) => r.name), T = t.approved.state_label || t.approved.state, p = t.total - t.changes.length, x = t.total > 0 ? `${t.total} field${t.total === 1 ? "" : "s"} changed after approval` : "Lines changed after approval";
|
|
57
|
+
return /* @__PURE__ */ o(F, { open: c, onOpenChange: C, children: [
|
|
58
|
+
/* @__PURE__ */ i(q, { asChild: !0, children: /* @__PURE__ */ o(
|
|
53
59
|
"button",
|
|
54
60
|
{
|
|
55
61
|
type: "button",
|
|
56
62
|
"data-approval-changes-badge": !0,
|
|
57
|
-
"aria-label": `${
|
|
58
|
-
"data-tip":
|
|
59
|
-
className:
|
|
63
|
+
"aria-label": `${x} — show what changed`,
|
|
64
|
+
"data-tip": x,
|
|
65
|
+
className: v(
|
|
60
66
|
"inline-flex shrink-0 items-center gap-1 rounded-full border px-2 py-px text-[10.5px] font-semibold",
|
|
61
|
-
|
|
62
|
-
"
|
|
67
|
+
// Violet, the approval hue — never the amber of the required-fields warning beside it.
|
|
68
|
+
"border-violet-300 bg-violet-50 text-violet-800 hover:bg-violet-100",
|
|
69
|
+
"dark:border-violet-400/40 dark:bg-violet-400/10 dark:text-violet-200 dark:hover:bg-violet-400/20",
|
|
63
70
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan",
|
|
64
|
-
|
|
71
|
+
n.normal && "nvr-fade-in"
|
|
65
72
|
),
|
|
66
73
|
children: [
|
|
67
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ i(A, { className: "h-3 w-3", "aria-hidden": !0 }),
|
|
68
75
|
"Changed after approval",
|
|
69
|
-
|
|
76
|
+
t.total > 1 && /* @__PURE__ */ o("span", { className: "tabular-nums font-medium text-violet-700/80 dark:text-violet-200/70", children: [
|
|
70
77
|
"· ",
|
|
71
|
-
|
|
78
|
+
t.total
|
|
72
79
|
] })
|
|
73
80
|
]
|
|
74
81
|
},
|
|
75
|
-
|
|
82
|
+
n.normal ? h : void 0
|
|
76
83
|
) }),
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
|
|
84
|
+
/* @__PURE__ */ o(
|
|
85
|
+
M,
|
|
79
86
|
{
|
|
80
87
|
align: "start",
|
|
81
|
-
|
|
88
|
+
collisionPadding: 16,
|
|
89
|
+
className: "flex max-h-[min(30rem,var(--radix-popover-content-available-height))] w-[min(26rem,calc(100vw-2rem))] flex-col overflow-hidden bg-white p-0 dark:bg-card",
|
|
82
90
|
"data-approval-changes-panel": !0,
|
|
83
91
|
children: [
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ o("div", { className: "shrink-0 border-b border-slate-200 px-3.5 pb-2.5 pt-3 dark:border-border", children: [
|
|
93
|
+
/* @__PURE__ */ i("p", { className: "text-[13px] font-semibold text-slate-900 dark:text-slate-50", children: "Changed after approval" }),
|
|
94
|
+
/* @__PURE__ */ o("p", { className: "mt-0.5 text-[11.5px] leading-snug text-slate-500 dark:text-slate-400", children: [
|
|
87
95
|
"Reached ",
|
|
88
|
-
|
|
96
|
+
T,
|
|
89
97
|
" on ",
|
|
90
|
-
|
|
91
|
-
|
|
98
|
+
m(t.approved.at),
|
|
99
|
+
u.length > 0 && /* @__PURE__ */ o(g, { children: [
|
|
92
100
|
" · approved by ",
|
|
93
|
-
|
|
101
|
+
u.slice(0, 3).join(", ")
|
|
94
102
|
] })
|
|
95
103
|
] })
|
|
96
104
|
] }),
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ o(K, { children: [
|
|
106
|
+
t.changes.map((r) => /* @__PURE__ */ o("li", { className: "px-3.5 py-2.5", "data-approval-change": r.field, children: [
|
|
107
|
+
/* @__PURE__ */ o("div", { className: "flex items-baseline justify-between gap-3", children: [
|
|
108
|
+
/* @__PURE__ */ i("span", { className: "truncate text-[12px] font-medium text-slate-700 dark:text-slate-200", children: r.label }),
|
|
109
|
+
/* @__PURE__ */ i(
|
|
102
110
|
"span",
|
|
103
111
|
{
|
|
104
|
-
className:
|
|
112
|
+
className: v(
|
|
105
113
|
"shrink-0 text-[10.5px]",
|
|
106
|
-
|
|
114
|
+
r.by.via === "outside" ? "text-amber-700 dark:text-amber-300" : "text-slate-400 dark:text-slate-500"
|
|
107
115
|
),
|
|
108
|
-
"data-tip":
|
|
109
|
-
children:
|
|
116
|
+
"data-tip": r.at ? m(r.at) : void 0,
|
|
117
|
+
children: H(r)
|
|
110
118
|
}
|
|
111
119
|
)
|
|
112
120
|
] }),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
|
|
121
|
+
/* @__PURE__ */ o("div", { className: "mt-1 flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-0.5 text-[12px]", children: [
|
|
122
|
+
r.before_known ? /* @__PURE__ */ i(
|
|
115
123
|
"span",
|
|
116
124
|
{
|
|
117
125
|
className: "min-w-0 break-words text-slate-500 line-through decoration-slate-300 dark:text-slate-400 dark:decoration-slate-600",
|
|
118
126
|
"data-tip": "Value when it was approved",
|
|
119
|
-
children:
|
|
127
|
+
children: y(r.before, r.before_text, r.type)
|
|
120
128
|
}
|
|
121
|
-
) : /* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
129
|
+
) : /* @__PURE__ */ i("span", { className: "italic text-slate-400 dark:text-slate-500", children: "Approved value not recorded" }),
|
|
130
|
+
/* @__PURE__ */ i(
|
|
123
131
|
L,
|
|
124
132
|
{
|
|
125
133
|
className: "h-3 w-3 shrink-0 text-slate-400 dark:text-slate-500",
|
|
126
134
|
"aria-label": "now"
|
|
127
135
|
}
|
|
128
136
|
),
|
|
129
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ i("span", { className: "min-w-0 break-words font-semibold text-slate-900 dark:text-slate-50", children: y(r.after, r.after_text, r.type) })
|
|
130
138
|
] })
|
|
131
|
-
] },
|
|
132
|
-
|
|
133
|
-
|
|
139
|
+
] }, r.field)),
|
|
140
|
+
t.lines && /* @__PURE__ */ o("li", { className: "px-3.5 py-2.5 text-[12px] text-slate-600 dark:text-slate-300", children: [
|
|
141
|
+
t.lines.count,
|
|
134
142
|
" line change",
|
|
135
|
-
|
|
136
|
-
|
|
143
|
+
t.lines.count === 1 ? "" : "s",
|
|
144
|
+
t.lines.by && /* @__PURE__ */ o(g, { children: [
|
|
137
145
|
" · last by ",
|
|
138
|
-
|
|
146
|
+
t.lines.by
|
|
139
147
|
] }),
|
|
140
|
-
|
|
148
|
+
t.lines.at && /* @__PURE__ */ o("span", { className: "text-slate-400 dark:text-slate-500", children: [
|
|
141
149
|
" ",
|
|
142
150
|
"· ",
|
|
143
|
-
|
|
151
|
+
N(t.lines.at)
|
|
144
152
|
] })
|
|
145
153
|
] })
|
|
146
154
|
] }),
|
|
147
|
-
|
|
148
|
-
|
|
155
|
+
p > 0 && /* @__PURE__ */ o("p", { className: "shrink-0 border-t border-slate-200 px-3.5 py-2 text-[11px] text-slate-500 dark:border-border dark:text-slate-400", children: [
|
|
156
|
+
p,
|
|
149
157
|
" more field",
|
|
150
|
-
|
|
158
|
+
p === 1 ? "" : "s",
|
|
151
159
|
" changed — the record's history has every change."
|
|
152
160
|
] })
|
|
153
161
|
]
|
|
@@ -155,8 +163,39 @@ function W({
|
|
|
155
163
|
)
|
|
156
164
|
] });
|
|
157
165
|
}
|
|
166
|
+
function K({ children: e }) {
|
|
167
|
+
const l = R(null), [s, d] = w(!1), a = j(() => {
|
|
168
|
+
const n = l.current;
|
|
169
|
+
n && d(n.scrollHeight - n.scrollTop - n.clientHeight > 4);
|
|
170
|
+
}, []);
|
|
171
|
+
return D(() => {
|
|
172
|
+
a();
|
|
173
|
+
const n = l.current;
|
|
174
|
+
if (!n || typeof ResizeObserver > "u") return;
|
|
175
|
+
const c = new ResizeObserver(a);
|
|
176
|
+
return c.observe(n), () => c.disconnect();
|
|
177
|
+
}, [a]), /* @__PURE__ */ o("div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
|
|
178
|
+
/* @__PURE__ */ i(
|
|
179
|
+
"ul",
|
|
180
|
+
{
|
|
181
|
+
ref: l,
|
|
182
|
+
onScroll: a,
|
|
183
|
+
className: "min-h-0 flex-1 divide-y divide-slate-100 overflow-y-auto overscroll-contain dark:divide-border",
|
|
184
|
+
children: e
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
s && /* @__PURE__ */ i(
|
|
188
|
+
"div",
|
|
189
|
+
{
|
|
190
|
+
"aria-hidden": !0,
|
|
191
|
+
className: "pointer-events-none absolute inset-x-0 bottom-0 flex h-10 items-end justify-center bg-gradient-to-t from-white via-white/90 to-transparent pb-1 dark:from-card dark:via-card/90",
|
|
192
|
+
children: /* @__PURE__ */ i("span", { className: "rounded-full bg-slate-100 px-2 py-px text-[10.5px] font-medium text-slate-600 dark:bg-muted dark:text-slate-300", children: "More below" })
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
] });
|
|
196
|
+
}
|
|
158
197
|
export {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
198
|
+
ne as ChangedAfterApprovalBadge,
|
|
199
|
+
Y as approvalChangesKey,
|
|
200
|
+
y as approvalValueText
|
|
162
201
|
};
|