@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.
Files changed (138) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +136 -14
  4. package/dist/index.js +488 -485
  5. package/dist/shared/components/ActivityEntry.js +130 -125
  6. package/dist/shared/components/AgentPresenceChip.js +36 -26
  7. package/dist/shared/components/CellCopyLayer.js +50 -45
  8. package/dist/shared/components/CollectionBrowserView.js +3757 -3695
  9. package/dist/shared/components/FilePreviewLightbox.js +96 -58
  10. package/dist/shared/components/InStep.js +18 -17
  11. package/dist/shared/components/ItemEditForm.js +4451 -4385
  12. package/dist/shared/components/JobsTray.js +8 -8
  13. package/dist/shared/components/LiveNewMatchesPill.js +21 -14
  14. package/dist/shared/components/LiveOffNote.js +3 -2
  15. package/dist/shared/components/LiveRowMark.js +53 -23
  16. package/dist/shared/components/LiveTraceView.js +162 -123
  17. package/dist/shared/components/MyWorkView.js +320 -299
  18. package/dist/shared/components/NotificationBell.js +14 -14
  19. package/dist/shared/components/OverflowRail.js +1 -1
  20. package/dist/shared/components/PageRenderer.js +120 -116
  21. package/dist/shared/components/ProfileView.js +203 -202
  22. package/dist/shared/components/RealtimeStatusBanner.js +31 -29
  23. package/dist/shared/components/RecordDrilldownSheet.js +7 -7
  24. package/dist/shared/components/RecordHoverCard.js +102 -84
  25. package/dist/shared/components/RecordReadView.js +146 -146
  26. package/dist/shared/components/ScreenRefreshButton.js +34 -32
  27. package/dist/shared/components/TipLayer.js +65 -58
  28. package/dist/shared/components/WidgetImageMenu.js +83 -43
  29. package/dist/shared/components/activity/RecordActivityStream.js +175 -173
  30. package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
  31. package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
  32. package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
  33. package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
  34. package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
  35. package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
  36. package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
  37. package/dist/shared/components/collections-directory/page-model.js +72 -67
  38. package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
  39. package/dist/shared/components/integrations/SendStatus.js +65 -59
  40. package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
  41. package/dist/shared/components/integrations/console/SignalCard.js +237 -230
  42. package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
  43. package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +135 -94
  44. package/dist/shared/components/item-edit/CloneDialog.js +191 -161
  45. package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
  46. package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
  47. package/dist/shared/components/item-edit/FieldComments.js +88 -85
  48. package/dist/shared/components/item-edit/FieldPointer.js +82 -67
  49. package/dist/shared/components/item-edit/FieldRow.js +106 -100
  50. package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
  51. package/dist/shared/components/item-edit/FilePickerField.js +452 -387
  52. package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
  53. package/dist/shared/components/item-edit/HeaderTools.js +245 -141
  54. package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
  55. package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
  56. package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
  57. package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
  58. package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
  59. package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
  60. package/dist/shared/components/item-edit/RecalcValue.js +57 -32
  61. package/dist/shared/components/item-edit/RecordHelpChip.js +15 -16
  62. package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
  63. package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
  64. package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
  65. package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
  66. package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
  67. package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
  68. package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
  69. package/dist/shared/components/item-edit/SectionPresence.js +18 -10
  70. package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
  71. package/dist/shared/components/item-edit/UserChip.js +1 -1
  72. package/dist/shared/components/item-edit/addendum-view.js +6 -0
  73. package/dist/shared/components/item-edit/file-live.js +69 -54
  74. package/dist/shared/components/item-edit/layout-switch.js +98 -89
  75. package/dist/shared/components/item-edit/partner-needs.js +12 -12
  76. package/dist/shared/components/item-edit/removed-line.js +31 -25
  77. package/dist/shared/components/layout-editor/pickers/field-picker.js +151 -130
  78. package/dist/shared/components/list/ListViewers.js +46 -35
  79. package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
  80. package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
  81. package/dist/shared/components/panels/AlertBanners.js +82 -72
  82. package/dist/shared/components/panels/BranchLanes.js +22 -22
  83. package/dist/shared/components/panels/CommentImages.js +123 -102
  84. package/dist/shared/components/panels/CommentPanel.js +186 -185
  85. package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
  86. package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
  87. package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
  88. package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
  89. package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
  90. package/dist/shared/components/pipeline/PipelineEditorView.js +7 -2
  91. package/dist/shared/components/profile/AgentNameField.js +107 -81
  92. package/dist/shared/components/profile/AgentsPanel.js +184 -184
  93. package/dist/shared/components/profile/PersonAccess.js +599 -495
  94. package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
  95. package/dist/shared/components/profile/SignedInDevices.js +17 -17
  96. package/dist/shared/components/profile/primitives.js +1 -1
  97. package/dist/shared/components/queue/OwnerAvatars.js +91 -54
  98. package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
  99. package/dist/shared/components/queue/QueueWorklist.js +1002 -983
  100. package/dist/shared/components/support/AssignRules.js +1733 -0
  101. package/dist/shared/components/support/PersonPick.js +88 -0
  102. package/dist/shared/components/support/RequestList.js +790 -0
  103. package/dist/shared/components/support/ScreenShare.js +158 -152
  104. package/dist/shared/components/support/SupportRequestDialog.js +50 -48
  105. package/dist/shared/components/support/SupportView.js +140 -246
  106. package/dist/shared/components/support/TicketDetailSheet.js +82 -75
  107. package/dist/shared/components/support/TicketSlowScreens.js +9 -9
  108. package/dist/shared/components/support/assign-rules-text.js +171 -0
  109. package/dist/shared/components/support/support-list.js +125 -0
  110. package/dist/shared/components/ui/SimpleSelect.js +28 -20
  111. package/dist/shared/components/ui/checkbox.js +6 -6
  112. package/dist/shared/components/ui/select.js +43 -39
  113. package/dist/shared/components/ui/sheet.js +9 -9
  114. package/dist/shared/components/ui/switch.js +12 -11
  115. package/dist/shared/components/watch-list/WatchDock.js +532 -459
  116. package/dist/shared/components/watch-list/WatchExtras.js +332 -286
  117. package/dist/shared/components/watch-list/WatchRows.js +164 -140
  118. package/dist/shared/lib/activity-sentence.js +103 -91
  119. package/dist/shared/lib/agent-presence.js +27 -21
  120. package/dist/shared/lib/approval-progress.js +2 -2
  121. package/dist/shared/lib/copy-rules.js +31 -24
  122. package/dist/shared/lib/derived-causes.js +113 -78
  123. package/dist/shared/lib/grid-cursors.js +26 -26
  124. package/dist/shared/lib/label-flash.js +27 -0
  125. package/dist/shared/lib/list-return.js +137 -125
  126. package/dist/shared/lib/live-deltas.js +40 -34
  127. package/dist/shared/lib/live-groups.js +56 -52
  128. package/dist/shared/lib/live-preference.js +64 -59
  129. package/dist/shared/lib/live-screen.js +223 -192
  130. package/dist/shared/lib/partner-failure.js +11 -11
  131. package/dist/shared/lib/rollup-recalc.js +68 -64
  132. package/dist/shared/lib/screen-refresh.js +74 -68
  133. package/dist/shared/lib/screen-share.js +108 -104
  134. package/dist/shared/lib/send-status.js +77 -61
  135. package/dist/shared/lib/text-diff-window.js +29 -0
  136. package/dist/shared/lib/watch-list.js +210 -209
  137. package/dist/shared/lib/widget-image-render.js +72 -49
  138. 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 w, RefreshCw as N, X as y } from "lucide-react";
3
- import { useEffect as k } from "react";
4
- import { createPortal as P } from "react-dom";
5
- import { useParentDraft as $ } from "../context.js";
6
- import { useNewerFile as z, versionedUrl as D } from "../lib/newer-file.js";
7
- const E = /* @__PURE__ */ new Set([
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 m(e) {
15
+ function f(e) {
16
16
  return String(e ?? "").split(";")[0].trim().toLowerCase();
17
17
  }
18
- function p(e) {
19
- return E.has(m(e));
18
+ function v(e) {
19
+ return W.has(f(e));
20
20
  }
21
- function S(e) {
21
+ function I(e) {
22
22
  if (!e) return !1;
23
- const r = m(e);
24
- return r.startsWith("image/") || r === "application/pdf" || r.startsWith("video/") || r.startsWith("audio/") || p(r);
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 F(e) {
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 T({
29
+ function X({
30
30
  file: e,
31
- onClose: r,
32
- record: v
31
+ onClose: l,
32
+ record: g,
33
+ caption: h,
34
+ nav: i
33
35
  }) {
34
- var x;
35
- const n = $(), f = (x = n == null ? void 0 : n.draft) == null ? void 0 : x.id, b = v ?? (n != null && n.collection && f != null && !n.isNew ? { collection: n.collection, itemId: String(f) } : null), { current: l, newer: d, showNewer: g } = z(e.id, b), i = l ? {
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: D(e.url, l),
38
- name: l.filename_download || l.title || e.name,
39
- type: l.type ?? e.type,
40
- size: l.filesize != null ? Number(l.filesize) : e.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
- k(() => {
43
- const c = (h) => {
44
- h.key === "Escape" && (h.stopPropagation(), r());
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", c, !0), () => window.removeEventListener("keydown", c, !0);
47
- }, [r]);
48
- const a = i.type ?? "", u = F(i.size);
49
- let o;
50
- return a.startsWith("image/") ? o = /* @__PURE__ */ t(
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: i.url,
54
- alt: i.name,
55
+ src: r.url,
56
+ alt: r.name,
55
57
  className: "max-h-[82vh] max-w-full rounded object-contain"
56
58
  }
57
- ) : m(a) === "application/pdf" ? o = /* @__PURE__ */ t(
59
+ ) : f(a) === "application/pdf" ? c = /* @__PURE__ */ t(
58
60
  "iframe",
59
61
  {
60
- src: i.url,
61
- title: i.name,
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
- ) : p(a) ? o = /* @__PURE__ */ t(
66
+ ) : v(a) ? c = /* @__PURE__ */ t(
65
67
  "iframe",
66
68
  {
67
- src: i.url,
68
- title: i.name,
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/") ? o = /* @__PURE__ */ t("video", { src: i.url, controls: !0, className: "max-h-[82vh] max-w-full rounded" }) : a.startsWith("audio/") ? o = /* @__PURE__ */ t("audio", { src: i.url, controls: !0, className: "w-[min(480px,90vw)]" }) : o = /* @__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: [
73
- /* @__PURE__ */ t("p", { className: "text-[13px] font-medium text-slate-700 dark:text-slate-200", children: i.name }),
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(w, { className: "h-3.5 w-3.5" }),
87
+ /* @__PURE__ */ t(b, { className: "h-3.5 w-3.5" }),
86
88
  " Download"
87
89
  ]
88
90
  }
89
91
  )
90
- ] }), P(
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: r,
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: (c) => c.stopPropagation(),
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
- i.name,
109
- u && /* @__PURE__ */ t("span", { className: "ml-2 text-[11px] font-normal text-white/60", children: u })
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
- d.kind === "newer" && /* @__PURE__ */ s(
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: d.renamed && !d.replaced ? `Renamed to ${d.renamed}` : "A newer version of this file exists" }),
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: g,
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(N, { "aria-hidden": !0, className: "h-3 w-3" }),
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
- d.kind === "gone" && /* @__PURE__ */ t(
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(w, { className: "h-4 w-4" })
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: r,
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(y, { className: "h-4 w-4" })
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: (c) => c.stopPropagation(),
207
+ onClick: (u) => u.stopPropagation(),
170
208
  onKeyDown: () => {
171
209
  },
172
- children: o
210
+ children: c
173
211
  }
174
212
  )
175
213
  ]
@@ -179,6 +217,6 @@ function T({
179
217
  );
180
218
  }
181
219
  export {
182
- T as FilePreviewLightbox,
183
- S as canPreviewFile
220
+ X as FilePreviewLightbox,
221
+ I as canPreviewFile
184
222
  };
@@ -1,25 +1,26 @@
1
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
2
- import { useDeadlineNow as i } from "../lib/deadline-ticker.js";
3
- import { inStepSpan as o, forStepText as m } from "../lib/in-step.js";
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: n
8
+ done: s
9
9
  }) {
10
- const r = i(!n && !!a), e = n ? null : o(a, r);
11
- if (e == null) return /* @__PURE__ */ s("span", { className: "text-slate-300 dark:text-slate-600", children: "—" });
12
- const l = String(t ?? "").trim();
13
- return /* @__PURE__ */ c(
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 ${l || "this step"} since ${p(a)}`,
18
- className: "inline-flex max-w-[220px] items-baseline gap-1 whitespace-nowrap",
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
- l && /* @__PURE__ */ s("span", { className: "truncate text-slate-500 dark:text-slate-400", children: l }),
21
- l && /* @__PURE__ */ s("span", { "aria-hidden": !0, className: "text-slate-300 dark:text-slate-600", children: "·" }),
22
- /* @__PURE__ */ s("span", { className: "tabular-nums text-slate-700 dark:text-slate-200", children: e })
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: n
31
+ className: s
31
32
  }) {
32
- const r = i(!!t), e = m(t, r);
33
- return e ? /* @__PURE__ */ s(
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 ${n ?? ""}`,
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;