@nivaro/react 0.3.117 → 0.3.119
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 +136 -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 +3757 -3695
- package/dist/shared/components/FilePreviewLightbox.js +96 -58
- package/dist/shared/components/InStep.js +18 -17
- package/dist/shared/components/ItemEditForm.js +4451 -4385
- 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/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/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/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 +135 -94
- 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 +88 -85
- 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 +245 -141
- 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 +15 -16
- 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/addendum-view.js +6 -0
- 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 +151 -130
- 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/OwnerMatrixSheet.js +400 -288
- package/dist/shared/components/pipeline/PipelineEditorView.js +7 -2
- 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/watch-list.js +210 -209
- package/dist/shared/lib/widget-image-render.js +72 -49
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { Download as
|
|
3
|
-
import { useEffect as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
import { useParentDraft as
|
|
6
|
-
import { useNewerFile as
|
|
7
|
-
const
|
|
2
|
+
import { Download as b, ChevronLeft as k, ChevronRight as P, RefreshCw as C, X as $ } from "lucide-react";
|
|
3
|
+
import { useEffect as L } from "react";
|
|
4
|
+
import { createPortal as z } from "react-dom";
|
|
5
|
+
import { useParentDraft as D } from "../context.js";
|
|
6
|
+
import { useNewerFile as E, versionedUrl as F } from "../lib/newer-file.js";
|
|
7
|
+
const W = /* @__PURE__ */ new Set([
|
|
8
8
|
"text/plain",
|
|
9
9
|
"text/csv",
|
|
10
10
|
"text/tab-separated-values",
|
|
@@ -12,65 +12,67 @@ const E = /* @__PURE__ */ new Set([
|
|
|
12
12
|
"text/x-markdown",
|
|
13
13
|
"text/x-log"
|
|
14
14
|
]);
|
|
15
|
-
function
|
|
15
|
+
function f(e) {
|
|
16
16
|
return String(e ?? "").split(";")[0].trim().toLowerCase();
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function v(e) {
|
|
19
|
+
return W.has(f(e));
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function I(e) {
|
|
22
22
|
if (!e) return !1;
|
|
23
|
-
const
|
|
24
|
-
return
|
|
23
|
+
const l = f(e);
|
|
24
|
+
return l.startsWith("image/") || l === "application/pdf" || l.startsWith("video/") || l.startsWith("audio/") || v(l);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function j(e) {
|
|
27
27
|
return e == null || !Number.isFinite(e) ? null : e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function X({
|
|
30
30
|
file: e,
|
|
31
|
-
onClose:
|
|
32
|
-
record:
|
|
31
|
+
onClose: l,
|
|
32
|
+
record: g,
|
|
33
|
+
caption: h,
|
|
34
|
+
nav: i
|
|
33
35
|
}) {
|
|
34
|
-
var
|
|
35
|
-
const n =
|
|
36
|
+
var p;
|
|
37
|
+
const n = D(), x = (p = n == null ? void 0 : n.draft) == null ? void 0 : p.id, N = g ?? (n != null && n.collection && x != null && !n.isNew ? { collection: n.collection, itemId: String(x) } : null), { current: o, newer: m, showNewer: y } = E(e.id, N), r = o ? {
|
|
36
38
|
...e,
|
|
37
|
-
url:
|
|
38
|
-
name:
|
|
39
|
-
type:
|
|
40
|
-
size:
|
|
39
|
+
url: F(e.url, o),
|
|
40
|
+
name: o.filename_download || o.title || e.name,
|
|
41
|
+
type: o.type ?? e.type,
|
|
42
|
+
size: o.filesize != null ? Number(o.filesize) : e.size
|
|
41
43
|
} : e;
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
|
|
44
|
+
L(() => {
|
|
45
|
+
const u = (d) => {
|
|
46
|
+
d.key === "Escape" ? (d.stopPropagation(), l()) : i && i.count > 1 && (d.key === "ArrowLeft" || d.key === "ArrowRight") && (d.stopPropagation(), d.preventDefault(), d.key === "ArrowLeft" ? i.onPrev() : i.onNext());
|
|
45
47
|
};
|
|
46
|
-
return window.addEventListener("keydown",
|
|
47
|
-
}, [
|
|
48
|
-
const a =
|
|
49
|
-
let
|
|
50
|
-
return a.startsWith("image/") ?
|
|
48
|
+
return window.addEventListener("keydown", u, !0), () => window.removeEventListener("keydown", u, !0);
|
|
49
|
+
}, [l, i]);
|
|
50
|
+
const a = r.type ?? "", w = j(r.size);
|
|
51
|
+
let c;
|
|
52
|
+
return a.startsWith("image/") ? c = /* @__PURE__ */ t(
|
|
51
53
|
"img",
|
|
52
54
|
{
|
|
53
|
-
src:
|
|
54
|
-
alt:
|
|
55
|
+
src: r.url,
|
|
56
|
+
alt: r.name,
|
|
55
57
|
className: "max-h-[82vh] max-w-full rounded object-contain"
|
|
56
58
|
}
|
|
57
|
-
) :
|
|
59
|
+
) : f(a) === "application/pdf" ? c = /* @__PURE__ */ t(
|
|
58
60
|
"iframe",
|
|
59
61
|
{
|
|
60
|
-
src:
|
|
61
|
-
title:
|
|
62
|
+
src: r.url,
|
|
63
|
+
title: r.name,
|
|
62
64
|
className: "h-[82vh] w-[min(920px,92vw)] rounded border-0 bg-white"
|
|
63
65
|
}
|
|
64
|
-
) :
|
|
66
|
+
) : v(a) ? c = /* @__PURE__ */ t(
|
|
65
67
|
"iframe",
|
|
66
68
|
{
|
|
67
|
-
src:
|
|
68
|
-
title:
|
|
69
|
+
src: r.url,
|
|
70
|
+
title: r.name,
|
|
69
71
|
sandbox: "",
|
|
70
72
|
className: "h-[82vh] w-[min(920px,92vw)] rounded border-0 bg-white"
|
|
71
73
|
}
|
|
72
|
-
) : a.startsWith("video/") ?
|
|
73
|
-
/* @__PURE__ */ t("p", { className: "text-[13px] font-medium text-slate-700 dark:text-slate-200", children:
|
|
74
|
+
) : a.startsWith("video/") ? c = /* @__PURE__ */ t("video", { src: r.url, controls: !0, className: "max-h-[82vh] max-w-full rounded" }) : a.startsWith("audio/") ? c = /* @__PURE__ */ t("audio", { src: r.url, controls: !0, className: "w-[min(480px,90vw)]" }) : c = /* @__PURE__ */ s("div", { className: "flex w-[min(420px,90vw)] flex-col items-center gap-3 rounded-lg bg-white p-8 text-center dark:bg-card", children: [
|
|
75
|
+
/* @__PURE__ */ t("p", { className: "text-[13px] font-medium text-slate-700 dark:text-slate-200", children: r.name }),
|
|
74
76
|
/* @__PURE__ */ s("p", { className: "text-[12px] text-slate-500 dark:text-slate-400", children: [
|
|
75
77
|
"No inline preview for this file type",
|
|
76
78
|
a ? ` (${a})` : "",
|
|
@@ -82,48 +84,84 @@ function T({
|
|
|
82
84
|
href: `${e.url}${e.url.includes("?") ? "&" : "?"}download=1`,
|
|
83
85
|
className: "inline-flex items-center gap-1.5 rounded-md bg-nvr-cyan px-3 py-1.5 text-[12.5px] font-medium text-white hover:brightness-110",
|
|
84
86
|
children: [
|
|
85
|
-
/* @__PURE__ */ t(
|
|
87
|
+
/* @__PURE__ */ t(b, { className: "h-3.5 w-3.5" }),
|
|
86
88
|
" Download"
|
|
87
89
|
]
|
|
88
90
|
}
|
|
89
91
|
)
|
|
90
|
-
] }),
|
|
92
|
+
] }), z(
|
|
91
93
|
// biome-ignore lint/a11y/useKeyWithClickEvents: Escape handled globally above
|
|
92
94
|
/* @__PURE__ */ s(
|
|
93
95
|
"div",
|
|
94
96
|
{
|
|
95
97
|
className: "fixed inset-0 z-[130] flex flex-col bg-black/70 backdrop-blur-[2px]",
|
|
96
|
-
onClick:
|
|
98
|
+
onClick: l,
|
|
97
99
|
"data-file-lightbox": !0,
|
|
98
100
|
children: [
|
|
99
101
|
/* @__PURE__ */ s(
|
|
100
102
|
"div",
|
|
101
103
|
{
|
|
102
104
|
className: "flex flex-wrap items-center gap-x-3 gap-y-2 px-4 py-2.5",
|
|
103
|
-
onClick: (
|
|
105
|
+
onClick: (u) => u.stopPropagation(),
|
|
104
106
|
onKeyDown: () => {
|
|
105
107
|
},
|
|
106
108
|
children: [
|
|
107
109
|
/* @__PURE__ */ s("p", { className: "min-w-0 flex-1 truncate text-[13px] font-medium text-white", children: [
|
|
108
|
-
|
|
109
|
-
|
|
110
|
+
h || r.name,
|
|
111
|
+
i && i.count > 1 && /* @__PURE__ */ s(
|
|
112
|
+
"span",
|
|
113
|
+
{
|
|
114
|
+
className: "ml-2 text-[12px] font-normal tabular-nums text-white/70",
|
|
115
|
+
"data-file-lightbox-count": !0,
|
|
116
|
+
children: [
|
|
117
|
+
i.index + 1,
|
|
118
|
+
" of ",
|
|
119
|
+
i.count
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
!h && w && /* @__PURE__ */ t("span", { className: "ml-2 text-[11px] font-normal text-white/60", children: w })
|
|
110
124
|
] }),
|
|
111
|
-
|
|
125
|
+
i && i.count > 1 && /* @__PURE__ */ s("span", { className: "flex shrink-0 items-center gap-0.5", children: [
|
|
126
|
+
/* @__PURE__ */ t(
|
|
127
|
+
"button",
|
|
128
|
+
{
|
|
129
|
+
type: "button",
|
|
130
|
+
onClick: i.onPrev,
|
|
131
|
+
"aria-label": "Previous image",
|
|
132
|
+
"data-tip": "Previous (←)",
|
|
133
|
+
className: "rounded p-1.5 text-white/80 hover:bg-white/10 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-white/70",
|
|
134
|
+
children: /* @__PURE__ */ t(k, { className: "h-4 w-4", "aria-hidden": !0 })
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
/* @__PURE__ */ t(
|
|
138
|
+
"button",
|
|
139
|
+
{
|
|
140
|
+
type: "button",
|
|
141
|
+
onClick: i.onNext,
|
|
142
|
+
"aria-label": "Next image",
|
|
143
|
+
"data-tip": "Next (→)",
|
|
144
|
+
className: "rounded p-1.5 text-white/80 hover:bg-white/10 hover:text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-white/70",
|
|
145
|
+
children: /* @__PURE__ */ t(P, { className: "h-4 w-4", "aria-hidden": !0 })
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
] }),
|
|
149
|
+
m.kind === "newer" && /* @__PURE__ */ s(
|
|
112
150
|
"p",
|
|
113
151
|
{
|
|
114
152
|
role: "status",
|
|
115
153
|
"data-file-newer": !0,
|
|
116
154
|
className: "nvr-fade-in flex shrink-0 items-center gap-2 rounded-md bg-white/10 py-1 pr-1 pl-2.5 text-[12px] text-white/90 max-sm:order-last max-sm:w-full max-sm:justify-between",
|
|
117
155
|
children: [
|
|
118
|
-
/* @__PURE__ */ t("span", { className: "min-w-0 truncate sm:max-w-[42vw]", children:
|
|
156
|
+
/* @__PURE__ */ t("span", { className: "min-w-0 truncate sm:max-w-[42vw]", children: m.renamed && !m.replaced ? `Renamed to ${m.renamed}` : "A newer version of this file exists" }),
|
|
119
157
|
/* @__PURE__ */ s(
|
|
120
158
|
"button",
|
|
121
159
|
{
|
|
122
160
|
type: "button",
|
|
123
|
-
onClick:
|
|
161
|
+
onClick: y,
|
|
124
162
|
className: "inline-flex shrink-0 items-center gap-1 rounded bg-[#ffffff] px-2 py-0.5 text-[11.5px] font-medium text-[#0f172a] hover:bg-[#e2e8f0] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#ffffff]",
|
|
125
163
|
children: [
|
|
126
|
-
/* @__PURE__ */ t(
|
|
164
|
+
/* @__PURE__ */ t(C, { "aria-hidden": !0, className: "h-3 w-3" }),
|
|
127
165
|
" Show newer"
|
|
128
166
|
]
|
|
129
167
|
}
|
|
@@ -131,7 +169,7 @@ function T({
|
|
|
131
169
|
]
|
|
132
170
|
}
|
|
133
171
|
),
|
|
134
|
-
|
|
172
|
+
m.kind === "gone" && /* @__PURE__ */ t(
|
|
135
173
|
"p",
|
|
136
174
|
{
|
|
137
175
|
role: "status",
|
|
@@ -146,17 +184,17 @@ function T({
|
|
|
146
184
|
href: `${e.url}${e.url.includes("?") ? "&" : "?"}download=1`,
|
|
147
185
|
title: "Download",
|
|
148
186
|
className: "rounded p-1.5 text-white/80 hover:bg-white/10 hover:text-white",
|
|
149
|
-
children: /* @__PURE__ */ t(
|
|
187
|
+
children: /* @__PURE__ */ t(b, { className: "h-4 w-4" })
|
|
150
188
|
}
|
|
151
189
|
),
|
|
152
190
|
/* @__PURE__ */ t(
|
|
153
191
|
"button",
|
|
154
192
|
{
|
|
155
193
|
type: "button",
|
|
156
|
-
onClick:
|
|
194
|
+
onClick: l,
|
|
157
195
|
title: "Close (Esc)",
|
|
158
196
|
className: "rounded p-1.5 text-white/80 hover:bg-white/10 hover:text-white",
|
|
159
|
-
children: /* @__PURE__ */ t(
|
|
197
|
+
children: /* @__PURE__ */ t($, { className: "h-4 w-4" })
|
|
160
198
|
}
|
|
161
199
|
)
|
|
162
200
|
]
|
|
@@ -166,10 +204,10 @@ function T({
|
|
|
166
204
|
"div",
|
|
167
205
|
{
|
|
168
206
|
className: "flex min-h-0 flex-1 items-center justify-center p-4 pt-0",
|
|
169
|
-
onClick: (
|
|
207
|
+
onClick: (u) => u.stopPropagation(),
|
|
170
208
|
onKeyDown: () => {
|
|
171
209
|
},
|
|
172
|
-
children:
|
|
210
|
+
children: c
|
|
173
211
|
}
|
|
174
212
|
)
|
|
175
213
|
]
|
|
@@ -179,6 +217,6 @@ function T({
|
|
|
179
217
|
);
|
|
180
218
|
}
|
|
181
219
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
220
|
+
X as FilePreviewLightbox,
|
|
221
|
+
I as canPreviewFile
|
|
184
222
|
};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useDeadlineNow as
|
|
3
|
-
import { inStepSpan as
|
|
1
|
+
import { jsx as n, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { useDeadlineNow as r } from "../lib/deadline-ticker.js";
|
|
3
|
+
import { inStepSpan as m, forStepText as c } from "../lib/in-step.js";
|
|
4
4
|
import { formatDateTime as p } from "../lib/utils.js";
|
|
5
5
|
function h({
|
|
6
6
|
stepLabel: t,
|
|
7
7
|
enteredAt: a,
|
|
8
|
-
done:
|
|
8
|
+
done: s
|
|
9
9
|
}) {
|
|
10
|
-
const
|
|
11
|
-
if (e == null) return /* @__PURE__ */
|
|
12
|
-
const
|
|
13
|
-
return /* @__PURE__ */
|
|
10
|
+
const l = r(!s && !!a), e = s ? null : m(a, l);
|
|
11
|
+
if (e == null) return /* @__PURE__ */ n("span", { className: "text-slate-300 dark:text-slate-600", children: "—" });
|
|
12
|
+
const i = String(t ?? "").trim();
|
|
13
|
+
return /* @__PURE__ */ o(
|
|
14
14
|
"span",
|
|
15
15
|
{
|
|
16
16
|
"data-in-step": "",
|
|
17
|
-
"data-tip": `In ${
|
|
18
|
-
className: "
|
|
17
|
+
"data-tip": `In ${i || "this step"} since ${p(a)}`,
|
|
18
|
+
className: "flex min-w-0 max-w-full items-baseline gap-1.5 overflow-hidden whitespace-nowrap",
|
|
19
19
|
children: [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
/* @__PURE__ */ n("span", { className: "shrink-0 font-medium tabular-nums text-slate-800 dark:text-slate-100", children: e }),
|
|
21
|
+
i && // min-w-0: a flex item never shrinks below its text without it, so the name was cut
|
|
22
|
+
// mid-word by the cell ("Submissio") instead of ending in an ellipsis.
|
|
23
|
+
/* @__PURE__ */ n("span", { className: "min-w-0 truncate text-[0.92em] text-slate-500 dark:text-slate-400", children: i })
|
|
23
24
|
]
|
|
24
25
|
}
|
|
25
26
|
);
|
|
@@ -27,15 +28,15 @@ function h({
|
|
|
27
28
|
function w({
|
|
28
29
|
enteredAt: t,
|
|
29
30
|
stepLabel: a,
|
|
30
|
-
className:
|
|
31
|
+
className: s
|
|
31
32
|
}) {
|
|
32
|
-
const
|
|
33
|
-
return e ? /* @__PURE__ */
|
|
33
|
+
const l = r(!!t), e = c(t, l);
|
|
34
|
+
return e ? /* @__PURE__ */ n(
|
|
34
35
|
"span",
|
|
35
36
|
{
|
|
36
37
|
"data-step-for": "",
|
|
37
38
|
"data-tip": `In ${a || "this step"} since ${p(t)}`,
|
|
38
|
-
className: `whitespace-nowrap text-[11.5px] tabular-nums text-slate-500 dark:text-slate-400 ${
|
|
39
|
+
className: `whitespace-nowrap text-[11.5px] tabular-nums text-slate-500 dark:text-slate-400 ${s ?? ""}`,
|
|
39
40
|
children: e
|
|
40
41
|
}
|
|
41
42
|
) : null;
|