@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.
Files changed (142) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +140 -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 +3855 -3785
  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 +4220 -4175
  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/ReportView.js +1086 -1091
  27. package/dist/shared/components/ScreenRefreshButton.js +34 -32
  28. package/dist/shared/components/TipLayer.js +65 -58
  29. package/dist/shared/components/WidgetImageMenu.js +83 -43
  30. package/dist/shared/components/activity/RecordActivityStream.js +175 -173
  31. package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
  32. package/dist/shared/components/cbv/column-totals.js +62 -57
  33. package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
  34. package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
  35. package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
  36. package/dist/shared/components/charts/category-axis.js +93 -0
  37. package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
  38. package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
  39. package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
  40. package/dist/shared/components/collections-directory/page-model.js +72 -67
  41. package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
  42. package/dist/shared/components/integrations/SendStatus.js +65 -59
  43. package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
  44. package/dist/shared/components/integrations/console/SignalCard.js +237 -230
  45. package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
  46. package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +131 -92
  47. package/dist/shared/components/item-edit/CloneDialog.js +191 -161
  48. package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
  49. package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
  50. package/dist/shared/components/item-edit/FieldComments.js +54 -53
  51. package/dist/shared/components/item-edit/FieldPointer.js +82 -67
  52. package/dist/shared/components/item-edit/FieldRow.js +106 -100
  53. package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
  54. package/dist/shared/components/item-edit/FilePickerField.js +452 -387
  55. package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
  56. package/dist/shared/components/item-edit/HeaderTools.js +94 -85
  57. package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
  58. package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
  59. package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
  60. package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
  61. package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
  62. package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
  63. package/dist/shared/components/item-edit/RecalcValue.js +57 -32
  64. package/dist/shared/components/item-edit/RecordHelpChip.js +21 -22
  65. package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
  66. package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
  67. package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
  68. package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
  69. package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
  70. package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
  71. package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
  72. package/dist/shared/components/item-edit/SectionPresence.js +18 -10
  73. package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
  74. package/dist/shared/components/item-edit/UserChip.js +1 -1
  75. package/dist/shared/components/item-edit/file-live.js +69 -54
  76. package/dist/shared/components/item-edit/layout-switch.js +98 -89
  77. package/dist/shared/components/item-edit/partner-needs.js +12 -12
  78. package/dist/shared/components/item-edit/removed-line.js +31 -25
  79. package/dist/shared/components/layout-editor/pickers/field-picker.js +112 -104
  80. package/dist/shared/components/list/ListViewers.js +46 -35
  81. package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
  82. package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
  83. package/dist/shared/components/panels/AlertBanners.js +82 -72
  84. package/dist/shared/components/panels/BranchLanes.js +22 -22
  85. package/dist/shared/components/panels/CommentImages.js +123 -102
  86. package/dist/shared/components/panels/CommentPanel.js +186 -185
  87. package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
  88. package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
  89. package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
  90. package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
  91. package/dist/shared/components/pipeline/BindingStartStateSettings.js +163 -0
  92. package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
  93. package/dist/shared/components/pipeline/PipelineEditorView.js +320 -299
  94. package/dist/shared/components/profile/AgentNameField.js +107 -81
  95. package/dist/shared/components/profile/AgentsPanel.js +184 -184
  96. package/dist/shared/components/profile/PersonAccess.js +599 -495
  97. package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
  98. package/dist/shared/components/profile/SignedInDevices.js +17 -17
  99. package/dist/shared/components/profile/primitives.js +1 -1
  100. package/dist/shared/components/queue/OwnerAvatars.js +91 -54
  101. package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
  102. package/dist/shared/components/queue/QueueWorklist.js +1002 -983
  103. package/dist/shared/components/support/AssignRules.js +1733 -0
  104. package/dist/shared/components/support/PersonPick.js +88 -0
  105. package/dist/shared/components/support/RequestList.js +790 -0
  106. package/dist/shared/components/support/ScreenShare.js +158 -152
  107. package/dist/shared/components/support/SupportRequestDialog.js +50 -48
  108. package/dist/shared/components/support/SupportView.js +140 -246
  109. package/dist/shared/components/support/TicketDetailSheet.js +82 -75
  110. package/dist/shared/components/support/TicketSlowScreens.js +9 -9
  111. package/dist/shared/components/support/assign-rules-text.js +171 -0
  112. package/dist/shared/components/support/support-list.js +125 -0
  113. package/dist/shared/components/ui/SimpleSelect.js +28 -20
  114. package/dist/shared/components/ui/checkbox.js +6 -6
  115. package/dist/shared/components/ui/select.js +43 -39
  116. package/dist/shared/components/ui/sheet.js +9 -9
  117. package/dist/shared/components/ui/switch.js +12 -11
  118. package/dist/shared/components/watch-list/WatchDock.js +532 -459
  119. package/dist/shared/components/watch-list/WatchExtras.js +332 -286
  120. package/dist/shared/components/watch-list/WatchRows.js +164 -140
  121. package/dist/shared/lib/activity-sentence.js +103 -91
  122. package/dist/shared/lib/agent-presence.js +27 -21
  123. package/dist/shared/lib/approval-progress.js +2 -2
  124. package/dist/shared/lib/copy-rules.js +31 -24
  125. package/dist/shared/lib/derived-causes.js +113 -78
  126. package/dist/shared/lib/grid-cursors.js +26 -26
  127. package/dist/shared/lib/label-flash.js +27 -0
  128. package/dist/shared/lib/list-return.js +137 -125
  129. package/dist/shared/lib/live-deltas.js +40 -34
  130. package/dist/shared/lib/live-groups.js +56 -52
  131. package/dist/shared/lib/live-preference.js +64 -59
  132. package/dist/shared/lib/live-screen.js +223 -192
  133. package/dist/shared/lib/partner-failure.js +11 -11
  134. package/dist/shared/lib/rollup-recalc.js +68 -64
  135. package/dist/shared/lib/screen-refresh.js +74 -68
  136. package/dist/shared/lib/screen-share.js +108 -104
  137. package/dist/shared/lib/send-status.js +77 -61
  138. package/dist/shared/lib/text-diff-window.js +29 -0
  139. package/dist/shared/lib/use-query-entry.js +17 -0
  140. package/dist/shared/lib/watch-list.js +210 -209
  141. package/dist/shared/lib/widget-image-render.js +72 -49
  142. package/package.json +1 -1
@@ -1,27 +1,27 @@
1
- import { jsx as t, jsxs as l, Fragment as D } from "react/jsx-runtime";
2
- import { useSensors as T, useSensor as _, PointerSensor as M, KeyboardSensor as R, DndContext as O, closestCenter as W } from "@dnd-kit/core";
3
- import { sortableKeyboardCoordinates as P, SortableContext as E, verticalListSortingStrategy as K, useSortable as L } from "@dnd-kit/sortable";
4
- import { CSS as U } from "@dnd-kit/utilities";
5
- import { X as z, GripVertical as B, CircleCheck as F } from "lucide-react";
6
- import { useDeadlineNow as j, dueInText as G, liveDeadlineStatus as q } from "../../lib/deadline-ticker.js";
7
- import { usePeekOrOpen as H } from "../../lib/record-peek.js";
8
- import { serverNow as V } from "../../lib/server-clock.js";
9
- import { spanText as k } from "../../lib/watch-list.js";
10
- import { RecordHoverCard as X, cardAmountText as Y, ownerText as J } from "../RecordHoverCard.js";
11
- import { UserAvatar as Q } from "../UserAvatar.js";
12
- function I(e, r = V()) {
1
+ import { jsx as t, jsxs as r, Fragment as R } from "react/jsx-runtime";
2
+ import { useSensors as z, useSensor as T, PointerSensor as E, KeyboardSensor as K, DndContext as L, closestCenter as U } from "@dnd-kit/core";
3
+ import { sortableKeyboardCoordinates as B, SortableContext as F, verticalListSortingStrategy as G, useSortable as M } from "@dnd-kit/sortable";
4
+ import { CSS as q } from "@dnd-kit/utilities";
5
+ import { X as H, GripVertical as V, CircleCheck as X } from "lucide-react";
6
+ import { useDeadlineNow as W, dueInText as Y, liveDeadlineStatus as J } from "../../lib/deadline-ticker.js";
7
+ import { usePeekOrOpen as Q } from "../../lib/record-peek.js";
8
+ import { serverNow as Z } from "../../lib/server-clock.js";
9
+ import { spanText as N } from "../../lib/watch-list.js";
10
+ import { RecordHoverCard as A, cardAmountText as ee, ownerText as te } from "../RecordHoverCard.js";
11
+ import { UserAvatar as ae } from "../UserAvatar.js";
12
+ function P(e, s = Z()) {
13
13
  if (!e) return "";
14
14
  const n = new Date(e).getTime();
15
15
  if (!Number.isFinite(n)) return "";
16
- const a = Math.max(0, (r - n) / 1e3);
16
+ const a = Math.max(0, (s - n) / 1e3);
17
17
  return a < 60 ? "now" : a < 3600 ? `${Math.floor(a / 60)} m` : a < 86400 ? `${Math.floor(a / 3600)} h` : a < 7 * 86400 ? `${Math.floor(a / 86400)} d` : new Date(n).toLocaleDateString(void 0, { month: "short", day: "numeric" });
18
18
  }
19
- const Z = (e) => e.split(/\s+/).filter(Boolean).slice(0, 2).map((r) => {
19
+ const ne = (e) => e.split(/\s+/).filter(Boolean).slice(0, 2).map((s) => {
20
20
  var n;
21
- return ((n = r[0]) == null ? void 0 : n.toUpperCase()) ?? "";
21
+ return ((n = s[0]) == null ? void 0 : n.toUpperCase()) ?? "";
22
22
  }).join("") || "?";
23
- function A({ state: e }) {
24
- return e ? /* @__PURE__ */ l("span", { className: "inline-flex min-w-0 max-w-[140px] items-center gap-1.5 rounded-full bg-slate-100 px-1.5 py-px text-[11px] font-medium text-slate-700 dark:bg-white/[0.07] dark:text-slate-200", children: [
23
+ function re({ state: e }) {
24
+ return e ? /* @__PURE__ */ r("span", { className: "inline-flex min-w-0 max-w-[140px] items-center gap-1.5 rounded-full bg-slate-100 px-1.5 py-px text-[11px] font-medium text-slate-700 dark:bg-white/[0.07] dark:text-slate-200", children: [
25
25
  /* @__PURE__ */ t(
26
26
  "span",
27
27
  {
@@ -33,42 +33,43 @@ function A({ state: e }) {
33
33
  /* @__PURE__ */ t("span", { className: "truncate", children: e.label })
34
34
  ] }) : null;
35
35
  }
36
- function ee({
36
+ function le({
37
37
  owners: e,
38
- max: r = 2
38
+ max: s = 2
39
39
  }) {
40
40
  if (e.length === 0) return null;
41
- const n = e.slice(0, r), a = e.length - n.length, m = e.map(J).join(", ");
41
+ const n = e.slice(0, s), a = e.length - n.length, d = e.map(te).join(", ");
42
42
  return (
43
43
  // No tooltip: the row's hover card names the owners (one overlay at a time).
44
- /* @__PURE__ */ l("span", { className: "flex shrink-0 items-center pl-1", children: [
45
- /* @__PURE__ */ l("span", { className: "sr-only", children: [
44
+ /* @__PURE__ */ r("span", { className: "flex shrink-0 items-center pl-1", children: [
45
+ /* @__PURE__ */ r("span", { className: "sr-only", children: [
46
46
  "With ",
47
- m
47
+ d
48
48
  ] }),
49
- n.map((s, c) => /* @__PURE__ */ t(
49
+ n.map((o, c) => /* @__PURE__ */ t(
50
50
  "span",
51
51
  {
52
52
  "aria-hidden": !0,
53
- className: `relative inline-flex h-[18px] w-[18px] shrink-0 items-center justify-center overflow-hidden rounded-full bg-slate-200 text-[8.5px] font-semibold text-slate-600 ring-2 ring-card dark:bg-slate-700 dark:text-slate-200 ${c > 0 ? "-ml-1" : ""} ${s.inactive ? "opacity-50 grayscale" : ""}`,
54
- style: { zIndex: n.length - c },
53
+ className: `relative inline-flex h-[18px] w-[18px] shrink-0 items-center justify-center overflow-hidden rounded-full bg-[#e2e8f0] text-[8.5px] font-semibold text-[#334155] ring-2 ring-card dark:bg-[#334155] dark:text-[#e2e8f0] ${c > 0 ? "-ml-1" : ""} ${o.inactive ? "opacity-50 grayscale" : ""}`,
54
+ style: { zIndex: c + 1 },
55
55
  children: /* @__PURE__ */ t(
56
- Q,
56
+ ae,
57
57
  {
58
- userId: s.id,
59
- fallback: Z(s.name),
58
+ userId: o.id,
59
+ fallback: ne(o.name),
60
60
  className: "h-full w-full rounded-full object-cover",
61
61
  alt: ""
62
62
  }
63
63
  )
64
64
  },
65
- s.id
65
+ o.id
66
66
  )),
67
- a > 0 && /* @__PURE__ */ l(
67
+ a > 0 && /* @__PURE__ */ r(
68
68
  "span",
69
69
  {
70
70
  "aria-hidden": !0,
71
71
  className: "relative -ml-1 inline-flex h-[18px] min-w-[22px] shrink-0 items-center justify-center rounded-full bg-slate-100 px-1 text-[9px] font-semibold tabular-nums text-slate-600 ring-2 ring-card dark:bg-slate-800 dark:text-slate-300",
72
+ style: { zIndex: n.length + 1 },
72
73
  children: [
73
74
  "+",
74
75
  a
@@ -78,55 +79,55 @@ function ee({
78
79
  ] })
79
80
  );
80
81
  }
81
- function te({
82
+ function se({
82
83
  timing: e,
83
- stepLabel: r
84
+ stepLabel: s
84
85
  }) {
85
- const n = e.ratio != null && e.ratio > 1, a = `${k(e.in_step_s)} in ${r ?? "this step"}${e.usual_s ? `, usually ${k(e.usual_s)}` : ""}`;
86
- return /* @__PURE__ */ l("span", { className: "flex min-w-0 shrink-0 items-baseline", "data-step-timeline": !0, children: [
86
+ const n = e.ratio != null && e.ratio > 1, a = `${N(e.in_step_s)} in ${s ?? "this step"}${e.usual_s ? `, usually ${N(e.usual_s)}` : ""}`;
87
+ return /* @__PURE__ */ r("span", { className: "flex min-w-0 shrink-0 items-baseline", "data-step-timeline": !0, children: [
87
88
  /* @__PURE__ */ t("span", { className: "sr-only", children: a }),
88
89
  /* @__PURE__ */ t(
89
90
  "span",
90
91
  {
91
92
  "aria-hidden": !0,
92
93
  className: `text-[10.5px] font-medium tabular-nums ${n ? "text-amber-700 dark:text-amber-300" : "text-slate-600 dark:text-slate-300"}`,
93
- children: k(e.in_step_s)
94
+ children: N(e.in_step_s)
94
95
  }
95
96
  ),
96
- e.usual_s != null && /* @__PURE__ */ l(
97
+ e.usual_s != null && /* @__PURE__ */ r(
97
98
  "span",
98
99
  {
99
100
  "aria-hidden": !0,
100
101
  className: "whitespace-pre text-[10.5px] tabular-nums text-slate-500 dark:text-slate-400",
101
102
  children: [
102
103
  " / usually ",
103
- k(e.usual_s)
104
+ N(e.usual_s)
104
105
  ]
105
106
  }
106
107
  )
107
108
  ] });
108
109
  }
109
- function ae({ at: e }) {
110
- return /* @__PURE__ */ l(
110
+ function ie({ at: e }) {
111
+ return /* @__PURE__ */ r(
111
112
  "span",
112
113
  {
113
114
  className: "inline-flex min-w-0 items-center gap-1 rounded-full bg-emerald-50 px-1.5 py-px text-[11px] font-medium text-emerald-800 dark:bg-emerald-500/15 dark:text-emerald-300",
114
115
  "data-watch-completed": !0,
115
116
  children: [
116
- /* @__PURE__ */ t(F, { "aria-hidden": !0, className: "h-3 w-3 shrink-0" }),
117
+ /* @__PURE__ */ t(X, { "aria-hidden": !0, className: "h-3 w-3 shrink-0" }),
117
118
  "Completed",
118
- /* @__PURE__ */ l("span", { className: "font-normal text-emerald-700/80 dark:text-emerald-300/70", children: [
119
+ /* @__PURE__ */ r("span", { className: "font-normal text-emerald-700/80 dark:text-emerald-300/70", children: [
119
120
  "· ",
120
- I(e)
121
+ P(e)
121
122
  ] })
122
123
  ]
123
124
  }
124
125
  );
125
126
  }
126
- function ne({ sla: e }) {
127
- const r = j(!!e.due_at), n = G(e, r);
127
+ function oe({ sla: e }) {
128
+ const s = W(!!e.due_at), n = Y(e, s);
128
129
  if (!n) return null;
129
- const a = q(e, r);
130
+ const a = J(e, s);
130
131
  return /* @__PURE__ */ t(
131
132
  "span",
132
133
  {
@@ -136,17 +137,17 @@ function ne({ sla: e }) {
136
137
  }
137
138
  );
138
139
  }
139
- function w({
140
+ function O({
140
141
  sortable: e,
141
- id: r,
142
+ id: s,
142
143
  children: n
143
144
  }) {
144
- const a = L({ id: r, disabled: !e }), m = {
145
- transform: U.Transform.toString(a.transform),
145
+ const a = M({ id: s, disabled: !e }), d = {
146
+ transform: q.Transform.toString(a.transform),
146
147
  transition: a.transition,
147
148
  zIndex: a.isDragging ? 2 : void 0,
148
149
  position: "relative"
149
- }, s = e ? /* @__PURE__ */ t(
150
+ }, o = e ? /* @__PURE__ */ t(
150
151
  "button",
151
152
  {
152
153
  type: "button",
@@ -155,37 +156,38 @@ function w({
155
156
  ...a.listeners,
156
157
  onClick: (c) => c.stopPropagation(),
157
158
  className: "absolute left-0 top-1/2 flex h-7 w-3.5 -translate-y-1/2 cursor-grab items-center justify-center text-slate-300 opacity-0 transition-opacity focus-visible:opacity-100 group-hover/row:opacity-100 active:cursor-grabbing dark:text-slate-600",
158
- children: /* @__PURE__ */ t(B, { className: "h-3 w-3" })
159
+ children: /* @__PURE__ */ t(V, { className: "h-3 w-3" })
159
160
  }
160
161
  ) : null;
161
- return /* @__PURE__ */ t(D, { children: n(s, m, a.setNodeRef) });
162
+ return /* @__PURE__ */ t(R, { children: n(o, d, a.setNodeRef) });
162
163
  }
163
- function le({
164
+ function ce({
164
165
  row: e,
165
- list: r,
166
+ list: s,
166
167
  sortable: n,
167
168
  onUnpin: a,
168
- onSeen: m,
169
- rowActions: s,
170
- unpinLabel: c = "Unpin",
169
+ onSeen: d,
170
+ rowActions: o,
171
+ rowMark: c,
172
+ unpinLabel: g = "Unpin",
171
173
  canRemove: v = !0
172
174
  }) {
173
- var h;
174
- const g = H();
175
- j(!0);
176
- const u = !!((h = e.change) != null && h.changed);
175
+ var _;
176
+ const k = Q();
177
+ W(!0);
178
+ const u = !!((_ = e.change) != null && _.changed);
177
179
  if (!e.available)
178
- return /* @__PURE__ */ t(w, { sortable: n, id: e.key, children: (d, f, N) => /* @__PURE__ */ l(
180
+ return /* @__PURE__ */ t(O, { sortable: n, id: e.key, children: (f, C, $) => /* @__PURE__ */ r(
179
181
  "li",
180
182
  {
181
- ref: N,
182
- style: f,
183
+ ref: $,
184
+ style: C,
183
185
  className: "group/row flex items-center gap-2 py-2.5 pl-4 pr-2",
184
186
  "data-watch-row": "unavailable",
185
187
  children: [
186
- d,
187
- /* @__PURE__ */ l("div", { className: "min-w-0 flex-1", children: [
188
- /* @__PURE__ */ l("p", { className: "truncate text-[12.5px] font-medium text-slate-600 dark:text-slate-300", children: [
188
+ f,
189
+ /* @__PURE__ */ r("div", { className: "min-w-0 flex-1", children: [
190
+ /* @__PURE__ */ r("p", { className: "truncate text-[12.5px] font-medium text-slate-600 dark:text-slate-300", children: [
189
191
  e.collection_label,
190
192
  " ",
191
193
  e.id
@@ -197,103 +199,123 @@ function le({
197
199
  {
198
200
  type: "button",
199
201
  onClick: () => a(e),
200
- className: "shrink-0 rounded-md border border-slate-200 px-2 py-1 text-[11.5px] font-medium text-slate-700 transition-colors hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/60 dark:border-white/[0.12] dark:text-slate-200 dark:hover:bg-white/[0.05]",
202
+ className: "shrink-0 rounded-md border border-slate-200 px-2 py-1 text-[11.5px] font-medium text-slate-700 transition-colors hover:bg-slate-100 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/60 dark:border-border dark:text-slate-200 dark:hover:bg-white/[0.06] dark:hover:text-slate-100",
201
203
  children: "Remove"
202
204
  }
203
205
  )
204
206
  ]
205
207
  }
206
208
  ) });
207
- const p = e.title ?? e.collection_label, y = e.figures[0], i = (d) => {
208
- m(e.key), g({ collection: e.collection, itemId: e.id, title: p }, d, { list: r });
209
- }, o = e.change, x = o ? [o.text, o.by && !o.by.self ? o.by.name : o.by ? "You" : ""].filter(Boolean).join(" · ") : null;
210
- return /* @__PURE__ */ t(w, { sortable: n, id: e.key, children: (d, f, N) => {
211
- var C, S, $;
212
- return /* @__PURE__ */ l(
209
+ const m = e.title ?? e.collection_label, w = e.figures[0], l = (f) => {
210
+ d(e.key), k({ collection: e.collection, itemId: e.id, title: m }, f, { list: s });
211
+ }, i = e.change, p = (i == null ? void 0 : i.text) ?? null, h = i != null && i.by ? i.by.self ? "You" : i.by.name : null, x = p || h ? !0 : null, y = !!o || v, S = c == null ? void 0 : c(e);
212
+ return /* @__PURE__ */ t(O, { sortable: n, id: e.key, children: (f, C, $) => {
213
+ var D, j, I;
214
+ return /* @__PURE__ */ r(
213
215
  "li",
214
216
  {
215
- ref: N,
216
- style: f,
217
+ ref: $,
218
+ style: C,
217
219
  "data-watch-row": u ? "changed" : "quiet",
218
220
  className: `group/row relative transition-colors duration-700 motion-reduce:transition-none ${u ? "bg-sky-50 dark:bg-nvr-cyan/[0.07]" : "hover:bg-slate-50 dark:hover:bg-white/[0.03]"}`,
219
221
  children: [
220
- d,
222
+ f,
221
223
  /* @__PURE__ */ t(
222
- X,
224
+ A,
223
225
  {
224
226
  collection: e.collection,
225
227
  id: e.id,
226
- side: "bottom",
228
+ side: "left",
227
229
  block: !0,
228
230
  delayMs: 800,
229
- children: /* @__PURE__ */ l(
231
+ children: /* @__PURE__ */ r(
230
232
  "div",
231
233
  {
232
234
  role: "button",
233
235
  tabIndex: 0,
234
- "aria-label": `${p}${u ? ", changed" : ""}`,
235
- onClick: i,
236
- onAuxClick: i,
236
+ "aria-label": `${m}${u ? ", changed" : ""}`,
237
+ onClick: l,
238
+ onAuxClick: l,
237
239
  onKeyDown: (b) => {
238
- (b.key === "Enter" || b.key === " ") && (b.preventDefault(), m(e.key), g({ collection: e.collection, itemId: e.id, title: p }, null, { list: r }));
240
+ (b.key === "Enter" || b.key === " ") && (b.preventDefault(), d(e.key), k({ collection: e.collection, itemId: e.id, title: m }, null, { list: s }));
239
241
  },
240
- className: `block cursor-pointer py-2.5 pl-4 outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-nvr-cyan/60 ${s ? "pr-14" : "pr-8"}`,
242
+ className: "block cursor-pointer py-2.5 pl-4 pr-4 outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-nvr-cyan/60",
241
243
  children: [
242
- /* @__PURE__ */ l("div", { className: "flex items-baseline gap-2", children: [
243
- /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-[12.5px] font-medium text-slate-800 dark:text-slate-100", children: p }),
244
- y && /* @__PURE__ */ t("span", { className: "shrink-0 text-[12px] font-medium tabular-nums text-slate-700 dark:text-slate-200", children: Y(y) })
245
- ] }),
246
- /* @__PURE__ */ l("div", { className: "mt-1 flex min-w-0 items-center gap-2", children: [
247
- e.completed_at ? /* @__PURE__ */ t(ae, { at: e.completed_at }) : /* @__PURE__ */ l(D, { children: [
248
- /* @__PURE__ */ t(A, { state: e.state }),
249
- e.timing && /* @__PURE__ */ t(te, { timing: e.timing, stepLabel: ((C = e.state) == null ? void 0 : C.label) ?? null })
244
+ /* @__PURE__ */ r(
245
+ "div",
246
+ {
247
+ className: `flex items-baseline gap-2 ${y ? o ? "group-focus-within/row:pr-12 group-hover/row:pr-12 group-has-[[data-state=open]]/row:pr-12" : "group-focus-within/row:pr-6 group-hover/row:pr-6" : ""}`,
248
+ children: [
249
+ /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-[12.5px] font-medium text-slate-800 dark:text-slate-100", children: m }),
250
+ S && // Stays on hover ("For you" must survive it, rt6 round 2); a host part that
251
+ // should give way to the hover bell hides itself.
252
+ /* @__PURE__ */ t("span", { "data-no-hovercard": !0, className: "flex shrink-0 self-center", children: S }),
253
+ w && /* @__PURE__ */ t(
254
+ "span",
255
+ {
256
+ className: `shrink-0 text-[12px] font-medium tabular-nums text-slate-700 dark:text-slate-200 ${y ? "group-focus-within/row:hidden group-hover/row:hidden group-has-[[data-state=open]]/row:hidden" : ""}`,
257
+ children: ee(w)
258
+ }
259
+ )
260
+ ]
261
+ }
262
+ ),
263
+ /* @__PURE__ */ r("div", { className: "mt-1 flex min-w-0 items-center gap-2", children: [
264
+ e.completed_at ? /* @__PURE__ */ t(ie, { at: e.completed_at }) : /* @__PURE__ */ r(R, { children: [
265
+ /* @__PURE__ */ t(re, { state: e.state }),
266
+ e.timing && /* @__PURE__ */ t(se, { timing: e.timing, stepLabel: ((D = e.state) == null ? void 0 : D.label) ?? null })
250
267
  ] }),
251
268
  /* @__PURE__ */ t("span", { className: "flex-1" }),
252
- !e.completed_at && /* @__PURE__ */ t(ee, { owners: e.owners })
269
+ !e.completed_at && /* @__PURE__ */ t(le, { owners: e.owners })
253
270
  ] }),
254
- (x || ((S = e.sla) == null ? void 0 : S.due_at)) && /* @__PURE__ */ l("div", { className: "mt-1 flex min-w-0 items-center gap-2", children: [
255
- x ? /* @__PURE__ */ l(
271
+ (x || ((j = e.sla) == null ? void 0 : j.due_at)) && /* @__PURE__ */ r("div", { className: "mt-1 flex min-w-0 items-center gap-2", children: [
272
+ x ? /* @__PURE__ */ r(
256
273
  "span",
257
274
  {
258
275
  className: `flex min-w-0 flex-1 items-center gap-1.5 text-[11px] ${u ? "text-slate-700 dark:text-slate-200" : "text-slate-500 dark:text-slate-400"}`,
259
276
  children: [
260
- u && /* @__PURE__ */ t(
277
+ u && // A ring, not a dot: step chips carry filled dots in the step's colour,
278
+ // and in a theme whose accent is amber the two read as one (rt6 review).
279
+ /* @__PURE__ */ t(
261
280
  "span",
262
281
  {
263
282
  "aria-hidden": !0,
264
- className: "h-1.5 w-1.5 shrink-0 rounded-full bg-nvr-cyan"
283
+ className: "h-[7px] w-[7px] shrink-0 rounded-full border-[1.5px] border-nvr-cyan"
265
284
  }
266
285
  ),
267
- /* @__PURE__ */ l("span", { className: "flex min-w-0", children: [
268
- /* @__PURE__ */ t("span", { className: "truncate", children: x }),
269
- /* @__PURE__ */ l("span", { className: "shrink-0 whitespace-pre tabular-nums text-slate-500 dark:text-slate-400", children: [
286
+ /* @__PURE__ */ r("span", { className: "flex min-w-0", children: [
287
+ p && /* @__PURE__ */ t("span", { className: "min-w-0 truncate", children: p }),
288
+ h && p && // Its own span: a truncating name can never swallow the joiner's space.
289
+ /* @__PURE__ */ t("span", { "aria-hidden": !0, className: "shrink-0 whitespace-pre", children: " · " }),
290
+ h && /* @__PURE__ */ t("span", { className: "min-w-0 max-w-[60%] shrink-0 truncate", children: h }),
291
+ /* @__PURE__ */ r("span", { className: "shrink-0 whitespace-pre tabular-nums text-slate-500 dark:text-slate-400", children: [
270
292
  " · ",
271
- I(o == null ? void 0 : o.at)
293
+ P(i == null ? void 0 : i.at)
272
294
  ] })
273
295
  ] })
274
296
  ]
275
297
  }
276
298
  ) : /* @__PURE__ */ t("span", { className: "flex-1" }),
277
- (($ = e.sla) == null ? void 0 : $.due_at) && !e.completed_at && /* @__PURE__ */ t(ne, { sla: e.sla })
299
+ ((I = e.sla) == null ? void 0 : I.due_at) && !e.completed_at && /* @__PURE__ */ t(oe, { sla: e.sla })
278
300
  ] })
279
301
  ]
280
302
  }
281
303
  )
282
304
  }
283
305
  ),
284
- /* @__PURE__ */ l("div", { className: "absolute right-1.5 top-2 flex items-center gap-0.5", children: [
285
- s == null ? void 0 : s(e),
306
+ /* @__PURE__ */ r("div", { className: "absolute right-1.5 top-2 flex items-center gap-0.5", children: [
307
+ o == null ? void 0 : o(e),
286
308
  v && /* @__PURE__ */ t(
287
309
  "button",
288
310
  {
289
311
  type: "button",
290
- "aria-label": `${c}: ${p}`,
291
- "data-tip": c,
312
+ "aria-label": `${g}: ${m}`,
313
+ "data-tip": g,
292
314
  onClick: (b) => {
293
315
  b.stopPropagation(), a(e);
294
316
  },
295
317
  className: "invisible flex h-6 w-6 items-center justify-center rounded-md text-slate-400 hover:bg-slate-200/70 hover:text-slate-700 focus-visible:visible group-hover/row:visible dark:text-slate-500 dark:hover:bg-white/[0.08] dark:hover:text-slate-200",
296
- children: /* @__PURE__ */ t(z, { className: "h-3.5 w-3.5" })
318
+ children: /* @__PURE__ */ t(H, { className: "h-3.5 w-3.5" })
297
319
  }
298
320
  )
299
321
  ] })
@@ -302,47 +324,49 @@ function le({
302
324
  );
303
325
  } });
304
326
  }
305
- function fe({
327
+ function ye({
306
328
  rows: e,
307
- sortable: r,
329
+ sortable: s,
308
330
  onReorder: n,
309
331
  onUnpin: a,
310
- onSeen: m,
311
- rowActions: s,
312
- unpinLabel: c,
332
+ onSeen: d,
333
+ rowActions: o,
334
+ rowMark: c,
335
+ unpinLabel: g,
313
336
  canRemove: v,
314
- label: g = "Watched records"
337
+ label: k = "Watched records"
315
338
  }) {
316
- const u = T(
317
- _(M, { activationConstraint: { distance: 4 } }),
318
- _(R, { coordinateGetter: P })
319
- ), p = e.filter((i) => i.available).map((i) => ({ collection: i.collection, itemId: i.id, title: i.title }));
320
- return /* @__PURE__ */ t(O, { sensors: u, collisionDetection: W, onDragEnd: (i) => {
321
- if (!i.over || i.active.id === i.over.id) return;
322
- const o = e.map((f) => f.key), x = o.indexOf(String(i.active.id)), h = o.indexOf(String(i.over.id));
323
- if (x < 0 || h < 0) return;
324
- const d = [...o];
325
- d.splice(h, 0, d.splice(x, 1)[0]), n(d);
326
- }, children: /* @__PURE__ */ t(E, { items: e.map((i) => i.key), strategy: K, children: /* @__PURE__ */ t("ul", { className: "divide-y divide-slate-100 dark:divide-white/[0.05]", "aria-label": g, children: e.map((i) => /* @__PURE__ */ t(
327
- le,
339
+ const u = z(
340
+ T(E, { activationConstraint: { distance: 4 } }),
341
+ T(K, { coordinateGetter: B })
342
+ ), m = e.filter((l) => l.available).map((l) => ({ collection: l.collection, itemId: l.id, title: l.title }));
343
+ return /* @__PURE__ */ t(L, { sensors: u, collisionDetection: U, onDragEnd: (l) => {
344
+ if (!l.over || l.active.id === l.over.id) return;
345
+ const i = e.map((y) => y.key), p = i.indexOf(String(l.active.id)), h = i.indexOf(String(l.over.id));
346
+ if (p < 0 || h < 0) return;
347
+ const x = [...i];
348
+ x.splice(h, 0, x.splice(p, 1)[0]), n(x);
349
+ }, children: /* @__PURE__ */ t(F, { items: e.map((l) => l.key), strategy: G, children: /* @__PURE__ */ t("ul", { className: "divide-y divide-slate-100 dark:divide-white/[0.05]", "aria-label": k, children: e.map((l) => /* @__PURE__ */ t(
350
+ ce,
328
351
  {
329
- row: i,
330
- list: p,
331
- sortable: r,
352
+ row: l,
353
+ list: m,
354
+ sortable: s,
332
355
  onUnpin: a,
333
- onSeen: m,
334
- rowActions: s,
335
- unpinLabel: c,
356
+ onSeen: d,
357
+ rowActions: o,
358
+ rowMark: c,
359
+ unpinLabel: g,
336
360
  canRemove: v
337
361
  },
338
- i.key
362
+ l.key
339
363
  )) }) }) });
340
364
  }
341
365
  export {
342
- ae as CompletedChip,
343
- ee as OwnerStack,
344
- A as StepChip,
345
- le as WatchRow,
346
- fe as WatchRowList,
347
- I as agoText
366
+ ie as CompletedChip,
367
+ le as OwnerStack,
368
+ re as StepChip,
369
+ ce as WatchRow,
370
+ ye as WatchRowList,
371
+ P as agoText
348
372
  };