@nivaro/react 0.3.113 → 0.3.115

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 (285) hide show
  1. package/dist/components/ScreenShareHost.js +24 -0
  2. package/dist/full.css +50 -2
  3. package/dist/hooks/useSessionRecorder.js +61 -60
  4. package/dist/index.d.ts +1727 -19
  5. package/dist/index.js +1091 -950
  6. package/dist/shared/components/ActivityEntry.js +209 -97
  7. package/dist/shared/components/AgentPresenceChip.js +51 -0
  8. package/dist/shared/components/AnnouncementBanner.js +56 -41
  9. package/dist/shared/components/AutolinkedText.js +98 -85
  10. package/dist/shared/components/BroadcastView.js +149 -141
  11. package/dist/shared/components/CacheStamp.js +78 -30
  12. package/dist/shared/components/CollectionBrowserView.js +4088 -3592
  13. package/dist/shared/components/ConfigChangeStrip.js +63 -0
  14. package/dist/shared/components/ConfigReachNote.js +107 -0
  15. package/dist/shared/components/ConformanceView.js +389 -319
  16. package/dist/shared/components/DataTable.js +544 -504
  17. package/dist/shared/components/DelegateCoverLine.js +164 -0
  18. package/dist/shared/components/EnvironmentNotice.js +56 -65
  19. package/dist/shared/components/FilePreviewLightbox.js +89 -43
  20. package/dist/shared/components/FindingFixedMark.js +23 -0
  21. package/dist/shared/components/GridPresenceLine.js +100 -0
  22. package/dist/shared/components/IdleReloadWatcher.js +82 -43
  23. package/dist/shared/components/InStep.js +46 -0
  24. package/dist/shared/components/ItemEditForm.js +5504 -4889
  25. package/dist/shared/components/LiveAnnouncer.js +62 -0
  26. package/dist/shared/components/LiveCount.js +54 -0
  27. package/dist/shared/components/LiveFigure.js +28 -0
  28. package/dist/shared/components/LiveListControls.js +114 -0
  29. package/dist/shared/components/LiveNewMatchesPill.js +25 -0
  30. package/dist/shared/components/LiveOffNote.js +44 -0
  31. package/dist/shared/components/LivePreferenceHost.js +42 -0
  32. package/dist/shared/components/LiveRowMark.js +25 -20
  33. package/dist/shared/components/LiveTraceView.js +257 -0
  34. package/dist/shared/components/MapView.js +30 -29
  35. package/dist/shared/components/MatrixEditor.js +497 -462
  36. package/dist/shared/components/MyWorkView.js +346 -272
  37. package/dist/shared/components/NotificationBell.js +215 -201
  38. package/dist/shared/components/PageRenderer.js +636 -599
  39. package/dist/shared/components/PresenceDot.js +21 -0
  40. package/dist/shared/components/ProfileView.js +656 -536
  41. package/dist/shared/components/RealtimeStatusBanner.js +25 -25
  42. package/dist/shared/components/RecentRecordsRail.js +51 -48
  43. package/dist/shared/components/RecordCompare.js +241 -150
  44. package/dist/shared/components/RecordDrilldownSheet.js +66 -64
  45. package/dist/shared/components/RecordGridEditor.js +350 -311
  46. package/dist/shared/components/RecordHoverCard.js +147 -0
  47. package/dist/shared/components/RecordPeekHost.js +111 -0
  48. package/dist/shared/components/RecordReadView.js +414 -412
  49. package/dist/shared/components/RelativeTime.js +16 -0
  50. package/dist/shared/components/ReportView.js +1396 -1304
  51. package/dist/shared/components/ScreenRefreshButton.js +77 -0
  52. package/dist/shared/components/TabCountHost.js +10 -0
  53. package/dist/shared/components/TickerNumber.js +19 -18
  54. package/dist/shared/components/TipLayer.js +70 -58
  55. package/dist/shared/components/WidgetImageMenu.js +59 -0
  56. package/dist/shared/components/WidgetSlot.js +571 -524
  57. package/dist/shared/components/activity/RecordActivityStream.js +317 -0
  58. package/dist/shared/components/bulk/BulkSelectionNotices.js +220 -0
  59. package/dist/shared/components/cbv/approval-changed.js +20 -0
  60. package/dist/shared/components/cbv/changed-by-others.js +251 -0
  61. package/dist/shared/components/cbv/column-totals.js +75 -67
  62. package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +320 -0
  63. package/dist/shared/components/change-proposals/ProposalValue.js +28 -0
  64. package/dist/shared/components/change-proposals/ProposeChangeButton.js +44 -0
  65. package/dist/shared/components/change-proposals/ProposeChangeDialog.js +359 -0
  66. package/dist/shared/components/change-proposals/types.js +4 -0
  67. package/dist/shared/components/chat/ChatPanel.js +1571 -1528
  68. package/dist/shared/components/chat/Composer.js +276 -298
  69. package/dist/shared/components/chat/room-due.js +13 -0
  70. package/dist/shared/components/collections-directory/CollectionRow.js +76 -75
  71. package/dist/shared/components/collections-directory/CollectionsDirectory.js +415 -395
  72. package/dist/shared/components/collections-directory/directory-data.js +75 -63
  73. package/dist/shared/components/imports/ImportConsole.js +159 -155
  74. package/dist/shared/components/imports/ImportDuplicatesNotice.js +46 -31
  75. package/dist/shared/components/integrations/SendStatus.js +202 -0
  76. package/dist/shared/components/integrations/console/IntegrationsConsole.js +45 -36
  77. package/dist/shared/components/integrations/console/ReadyToSendView.js +453 -0
  78. package/dist/shared/components/integrations/console/api.js +161 -117
  79. package/dist/shared/components/integrations/console/tone.js +15 -12
  80. package/dist/shared/components/item-edit/CatalogPickerField.js +1353 -1245
  81. package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +162 -0
  82. package/dist/shared/components/item-edit/CloneDialog.js +208 -206
  83. package/dist/shared/components/item-edit/DerivedCauseNote.js +57 -0
  84. package/dist/shared/components/item-edit/DraftRecoveryBanner.js +81 -70
  85. package/dist/shared/components/item-edit/DuplicateNotice.js +169 -101
  86. package/dist/shared/components/item-edit/FieldAffordances.js +294 -385
  87. package/dist/shared/components/item-edit/FieldComments.js +159 -116
  88. package/dist/shared/components/item-edit/FieldPointer.js +132 -0
  89. package/dist/shared/components/item-edit/FieldRenderer.js +277 -273
  90. package/dist/shared/components/item-edit/FieldRow.js +519 -439
  91. package/dist/shared/components/item-edit/FieldSourceBadge.js +88 -0
  92. package/dist/shared/components/item-edit/FilePickerField.js +454 -369
  93. package/dist/shared/components/item-edit/GroupSection.js +618 -567
  94. package/dist/shared/components/item-edit/HeldEditsChip.js +113 -0
  95. package/dist/shared/components/item-edit/InlineTableField.js +2891 -2723
  96. package/dist/shared/components/item-edit/ListNeighborNav.js +79 -0
  97. package/dist/shared/components/item-edit/LiveTraceSheet.js +26 -0
  98. package/dist/shared/components/item-edit/M2MCombobox.js +284 -273
  99. package/dist/shared/components/item-edit/OutboxReviewTray.js +313 -0
  100. package/dist/shared/components/item-edit/PickerBadges.js +52 -0
  101. package/dist/shared/components/item-edit/PlanGrid.js +434 -439
  102. package/dist/shared/components/item-edit/RecalcValue.js +55 -0
  103. package/dist/shared/components/item-edit/RecordChatActions.js +76 -64
  104. package/dist/shared/components/item-edit/RecordChatMentionsChip.js +103 -0
  105. package/dist/shared/components/item-edit/RecordGrantTools.js +87 -86
  106. package/dist/shared/components/item-edit/RecordHelpChip.js +70 -0
  107. package/dist/shared/components/item-edit/RecordLiveSync.js +230 -217
  108. package/dist/shared/components/item-edit/RecordOutbox.js +53 -52
  109. package/dist/shared/components/item-edit/RecordRecapStrip.js +109 -36
  110. package/dist/shared/components/item-edit/RelationCombobox.js +229 -217
  111. package/dist/shared/components/item-edit/RelationGroupedCombobox.js +105 -100
  112. package/dist/shared/components/item-edit/RemoteChangeUi.js +454 -0
  113. package/dist/shared/components/item-edit/RemoteUploads.js +55 -0
  114. package/dist/shared/components/item-edit/RemovedLineNote.js +92 -0
  115. package/dist/shared/components/item-edit/RichTextEditorImpl.js +298 -223
  116. package/dist/shared/components/item-edit/ScheduledChangeChip.js +244 -0
  117. package/dist/shared/components/item-edit/SectionPresence.js +78 -0
  118. package/dist/shared/components/item-edit/SplitLinesButton.js +166 -0
  119. package/dist/shared/components/item-edit/catalog-line-watch.js +94 -0
  120. package/dist/shared/components/item-edit/coedit/collab.js +84 -0
  121. package/dist/shared/components/item-edit/coedit/context.js +24 -0
  122. package/dist/shared/components/item-edit/coedit/cursors.js +103 -0
  123. package/dist/shared/components/item-edit/coedit/safe-link.js +15 -0
  124. package/dist/shared/components/item-edit/coedit/session.js +382 -0
  125. package/dist/shared/components/item-edit/coedit/useCoedit.js +49 -0
  126. package/dist/shared/components/item-edit/file-live.js +77 -0
  127. package/dist/shared/components/item-edit/file-processing.js +87 -0
  128. package/dist/shared/components/item-edit/layout-switch.js +148 -0
  129. package/dist/shared/components/item-edit/live-related.js +23 -0
  130. package/dist/shared/components/item-edit/live-title.js +66 -0
  131. package/dist/shared/components/item-edit/partner-needs.js +142 -0
  132. package/dist/shared/components/item-edit/removed-line.js +58 -0
  133. package/dist/shared/components/item-edit/render-stability.js +70 -59
  134. package/dist/shared/components/layout-editor/ChangeNote.js +36 -34
  135. package/dist/shared/components/layout-editor/CollabParts.js +72 -70
  136. package/dist/shared/components/layout-editor/LayoutEditor.js +306 -303
  137. package/dist/shared/components/list/InlineEdit.js +504 -208
  138. package/dist/shared/components/list/ListViewers.js +81 -0
  139. package/dist/shared/components/merge/MergeRecordsDialog.js +1227 -0
  140. package/dist/shared/components/merge/MergeWithFlow.js +290 -0
  141. package/dist/shared/components/merge/merge-values.js +110 -0
  142. package/dist/shared/components/monitoring/InactiveUserLinksView.js +285 -258
  143. package/dist/shared/components/notifications/NotificationCenterView.js +388 -321
  144. package/dist/shared/components/notifications/NotificationDetailBits.js +205 -130
  145. package/dist/shared/components/notifications/NotificationRulesEditor.js +72 -52
  146. package/dist/shared/components/notifications/bundles.js +21 -19
  147. package/dist/shared/components/notifications/resolved-line.js +25 -0
  148. package/dist/shared/components/ops/OpsTasksView.js +45 -44
  149. package/dist/shared/components/panels/AccessGrantedNote.js +85 -0
  150. package/dist/shared/components/panels/AlertBanners.js +132 -0
  151. package/dist/shared/components/panels/AsyncUserPicker.js +54 -45
  152. package/dist/shared/components/panels/BranchLanes.js +82 -54
  153. package/dist/shared/components/panels/CommentAwareness.js +332 -0
  154. package/dist/shared/components/panels/CommentImages.js +219 -0
  155. package/dist/shared/components/panels/CommentPanel.js +649 -530
  156. package/dist/shared/components/panels/ExternalRequestsChip.js +98 -80
  157. package/dist/shared/components/panels/NewSinceChip.js +16 -0
  158. package/dist/shared/components/panels/OwnerOpenedLine.js +85 -0
  159. package/dist/shared/components/panels/PipelinePanel.js +1644 -1494
  160. package/dist/shared/components/panels/ResubmissionDiff.js +293 -0
  161. package/dist/shared/components/panels/SlaBreachBanner.js +30 -29
  162. package/dist/shared/components/panels/SlaClock.js +130 -99
  163. package/dist/shared/components/panels/TaskPanel.js +308 -287
  164. package/dist/shared/components/panels/unseen-move-check.js +101 -0
  165. package/dist/shared/components/pipeline/OwnerMatrix.js +80 -71
  166. package/dist/shared/components/pipeline/OwnerMatrixSheet.js +495 -0
  167. package/dist/shared/components/pipeline/PipelineEditorView.js +1855 -1771
  168. package/dist/shared/components/profile/AgentNameField.js +141 -0
  169. package/dist/shared/components/profile/AgentsPanel.js +55 -46
  170. package/dist/shared/components/profile/PersonAccess.js +398 -330
  171. package/dist/shared/components/profile/PersonAdminTools.js +127 -113
  172. package/dist/shared/components/profile/PersonProfile.js +81 -73
  173. package/dist/shared/components/profile/SignInTroubleshooter.js +361 -0
  174. package/dist/shared/components/queue/QueueBulkBar.js +101 -84
  175. package/dist/shared/components/queue/QueueItemSheet.js +66 -66
  176. package/dist/shared/components/queue/QueueTeamStrip.js +279 -0
  177. package/dist/shared/components/queue/QueueWorklist.js +2076 -1686
  178. package/dist/shared/components/queue/queue-totals.js +92 -0
  179. package/dist/shared/components/queue/worklist-helpers.js +18 -14
  180. package/dist/shared/components/send-view/SendViewButton.js +136 -0
  181. package/dist/shared/components/send-view/SentViewCards.js +147 -0
  182. package/dist/shared/components/support/ReportProblem.js +1 -0
  183. package/dist/shared/components/support/ScreenShare.js +554 -0
  184. package/dist/shared/components/support/SupportView.js +160 -129
  185. package/dist/shared/components/support/TicketDetailSheet.js +101 -89
  186. package/dist/shared/components/watch-list/WatchDock.js +1044 -0
  187. package/dist/shared/components/watch-list/WatchExtras.js +723 -0
  188. package/dist/shared/components/watch-list/WatchListButton.js +46 -0
  189. package/dist/shared/components/watch-list/WatchPinButton.js +67 -0
  190. package/dist/shared/components/watch-list/WatchRows.js +348 -0
  191. package/dist/shared/lib/activity-sentence.js +87 -75
  192. package/dist/shared/lib/agent-presence.js +46 -0
  193. package/dist/shared/lib/approval-progress.js +49 -0
  194. package/dist/shared/lib/attention-prefs.js +27 -0
  195. package/dist/shared/lib/cell-locks.js +56 -0
  196. package/dist/shared/lib/co-edit.js +166 -0
  197. package/dist/shared/lib/coedit-registry.js +44 -0
  198. package/dist/shared/lib/comment-awareness.js +124 -0
  199. package/dist/shared/lib/comment-images.js +45 -0
  200. package/dist/shared/lib/config-watch.js +94 -0
  201. package/dist/shared/lib/copy-rules.js +65 -0
  202. package/dist/shared/lib/count-step.js +30 -0
  203. package/dist/shared/lib/deadline-ticker.js +68 -0
  204. package/dist/shared/lib/derived-causes.js +115 -0
  205. package/dist/shared/lib/draft-store.js +114 -85
  206. package/dist/shared/lib/error-hints.js +1 -0
  207. package/dist/shared/lib/field-merge.js +126 -0
  208. package/dist/shared/lib/filter-sentence.js +10 -10
  209. package/dist/shared/lib/focus-mode.js +16 -12
  210. package/dist/shared/lib/grid-cursors.js +77 -0
  211. package/dist/shared/lib/grid-presence.js +182 -0
  212. package/dist/shared/lib/idle-reload.js +100 -73
  213. package/dist/shared/lib/in-step.js +45 -0
  214. package/dist/shared/lib/integration-chip.js +19 -18
  215. package/dist/shared/lib/line-locks.js +141 -0
  216. package/dist/shared/lib/line-split.js +41 -0
  217. package/dist/shared/lib/linked-changes.js +150 -0
  218. package/dist/shared/lib/list-link.js +56 -50
  219. package/dist/shared/lib/list-return.js +231 -0
  220. package/dist/shared/lib/list-viewers.js +52 -0
  221. package/dist/shared/lib/live-announcer.js +86 -0
  222. package/dist/shared/lib/live-counts.js +85 -0
  223. package/dist/shared/lib/live-data-changed.js +108 -0
  224. package/dist/shared/lib/live-deltas.js +81 -0
  225. package/dist/shared/lib/live-findings.js +113 -0
  226. package/dist/shared/lib/live-groups.js +122 -0
  227. package/dist/shared/lib/live-link-labels.js +162 -0
  228. package/dist/shared/lib/live-list-flow.js +334 -0
  229. package/dist/shared/lib/live-list.js +143 -129
  230. package/dist/shared/lib/live-moves.js +51 -0
  231. package/dist/shared/lib/live-ops.js +26 -26
  232. package/dist/shared/lib/live-pickers.js +7 -0
  233. package/dist/shared/lib/live-preference.js +184 -0
  234. package/dist/shared/lib/live-queries.js +226 -181
  235. package/dist/shared/lib/live-screen.js +333 -0
  236. package/dist/shared/lib/live-search.js +108 -0
  237. package/dist/shared/lib/live-seen.js +35 -0
  238. package/dist/shared/lib/live-views.js +100 -0
  239. package/dist/shared/lib/live.js +159 -133
  240. package/dist/shared/lib/missed-updates.js +198 -0
  241. package/dist/shared/lib/newer-file.js +56 -0
  242. package/dist/shared/lib/notification-sound.js +42 -20
  243. package/dist/shared/lib/own-writes.js +59 -41
  244. package/dist/shared/lib/picker-badges.js +94 -0
  245. package/dist/shared/lib/presence-signals.js +131 -84
  246. package/dist/shared/lib/realtime.js +49 -24
  247. package/dist/shared/lib/record-gaps.js +85 -0
  248. package/dist/shared/lib/record-outbox.js +369 -222
  249. package/dist/shared/lib/record-peek.js +75 -0
  250. package/dist/shared/lib/record-tabs.js +92 -72
  251. package/dist/shared/lib/relative-ticker.js +42 -0
  252. package/dist/shared/lib/request-gate.js +119 -119
  253. package/dist/shared/lib/rollup-recalc.js +107 -0
  254. package/dist/shared/lib/room-gaps.js +40 -36
  255. package/dist/shared/lib/rum.js +137 -87
  256. package/dist/shared/lib/save-progress.js +20 -0
  257. package/dist/shared/lib/scheduled-countdown.js +67 -0
  258. package/dist/shared/lib/screen-refresh.js +160 -0
  259. package/dist/shared/lib/screen-share.js +234 -0
  260. package/dist/shared/lib/seen-since.js +74 -0
  261. package/dist/shared/lib/selection-watch.js +205 -0
  262. package/dist/shared/lib/send-status.js +132 -0
  263. package/dist/shared/lib/send-view.js +23 -0
  264. package/dist/shared/lib/socket-liveness.js +155 -0
  265. package/dist/shared/lib/socket-realtime.js +168 -140
  266. package/dist/shared/lib/state-census.js +53 -0
  267. package/dist/shared/lib/summary-mode.js +61 -39
  268. package/dist/shared/lib/tab-attention.js +143 -32
  269. package/dist/shared/lib/table-density.js +64 -0
  270. package/dist/shared/lib/track-travel.js +40 -0
  271. package/dist/shared/lib/unseen-changes.js +68 -0
  272. package/dist/shared/lib/upload-file.js +33 -0
  273. package/dist/shared/lib/upload-presence.js +127 -0
  274. package/dist/shared/lib/urgent-chime.js +65 -0
  275. package/dist/shared/lib/use-online-users.js +32 -11
  276. package/dist/shared/lib/user-sync.js +155 -39
  277. package/dist/shared/lib/waiting-count.js +44 -0
  278. package/dist/shared/lib/watch-desktop.js +83 -0
  279. package/dist/shared/lib/watch-list.js +447 -0
  280. package/dist/shared/lib/widget-image-render.js +64 -0
  281. package/dist/shared/lib/widget-image.js +111 -0
  282. package/dist/shared/lib/worker-socket.js +130 -104
  283. package/dist/shared/lib/write-to-screen.js +133 -0
  284. package/package.json +1 -1
  285. package/styles.css +49 -1
@@ -1,96 +1,113 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { ArrowRight as f, X as v } from "lucide-react";
3
- import { useState as g } from "react";
4
- import { Command as k, CommandInput as y, CommandList as C, CommandEmpty as w, CommandItem as N } from "../ui/command.js";
5
- import { Popover as T, PopoverTrigger as O, PopoverContent as P } from "../ui/popover.js";
6
- function z({
7
- count: l,
8
- states: o,
9
- busy: r,
10
- claimsEnabled: n = !0,
11
- showClaim: i = !0,
12
- showRelease: s = !0,
13
- showTransition: m = !0,
14
- onClaim: p,
15
- onRelease: c,
16
- onTransition: u,
17
- onClear: x,
18
- children: h
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { ArrowRight as C, X as w } from "lucide-react";
3
+ import { useState as N } from "react";
4
+ import { Command as P, CommandInput as T, CommandList as O, CommandEmpty as j, CommandItem as B } from "../ui/command.js";
5
+ import { Popover as D, PopoverTrigger as R, PopoverContent as S } from "../ui/popover.js";
6
+ function X({
7
+ count: s,
8
+ states: i,
9
+ busy: o,
10
+ claimsEnabled: m = !0,
11
+ showClaim: p = !0,
12
+ showRelease: u = !0,
13
+ showTransition: c = !0,
14
+ onClaim: x,
15
+ onRelease: h,
16
+ onTransition: b,
17
+ onClear: f,
18
+ children: v,
19
+ figures: g,
20
+ notices: k,
21
+ onActionIntent: a
19
22
  }) {
20
- const [b, d] = g(!1);
21
- return l === 0 ? null : (
23
+ const [y, n] = N(!1);
24
+ return s === 0 ? null : (
22
25
  // Labels never wrap ("Push to / Fusion" on two lines, 2026-11-09): every button keeps one
23
26
  // line (white-space inherits) and a bar wider than the window scrolls sideways instead.
24
- /* @__PURE__ */ t("div", { className: "nvr-slide-up-centered fixed bottom-6 left-1/2 z-40 flex max-w-[calc(100vw-2rem)] -translate-x-1/2 items-center gap-1 overflow-x-auto whitespace-nowrap rounded-full border border-slate-200 bg-white px-4 py-2 shadow-lg dark:border-border dark:bg-card [&>*]:shrink-0", children: [
25
- /* @__PURE__ */ t("span", { className: "mr-2 text-[12px] font-semibold text-slate-700 dark:text-slate-200", children: [
26
- l,
27
- " selected"
28
- ] }),
29
- n && i && /* @__PURE__ */ e(
30
- "button",
27
+ /* @__PURE__ */ l("div", { className: "nvr-slide-up-centered fixed bottom-6 left-1/2 z-40 flex max-w-[calc(100vw-2rem)] -translate-x-1/2 flex-col items-center gap-2", children: [
28
+ k,
29
+ /* @__PURE__ */ l(
30
+ "div",
31
31
  {
32
- type: "button",
33
- disabled: r,
34
- onClick: p,
35
- className: "rounded-md px-2.5 py-1 text-[12px] font-medium text-nvr-navy hover:bg-nvr-cyan/10 disabled:opacity-50 dark:text-nvr-cyan",
36
- children: "Claim"
37
- }
38
- ),
39
- n && s && /* @__PURE__ */ e(
40
- "button",
41
- {
42
- type: "button",
43
- disabled: r,
44
- onClick: c,
45
- className: "rounded-md px-2.5 py-1 text-[12px] font-medium text-slate-600 hover:bg-slate-100 disabled:opacity-50 dark:text-slate-300 dark:hover:bg-muted",
46
- children: "Release"
47
- }
48
- ),
49
- h,
50
- m && /* @__PURE__ */ t(T, { open: b, onOpenChange: d, children: [
51
- /* @__PURE__ */ e(O, { asChild: !0, children: /* @__PURE__ */ t(
52
- "button",
53
- {
54
- type: "button",
55
- disabled: r || o.length === 0,
56
- className: "flex items-center gap-1 rounded-md px-2.5 py-1 text-[12px] font-medium text-slate-600 hover:bg-slate-100 disabled:opacity-50 dark:text-slate-300 dark:hover:bg-muted",
57
- children: [
58
- "Transition ",
59
- /* @__PURE__ */ e(f, { className: "h-3 w-3" })
60
- ]
61
- }
62
- ) }),
63
- /* @__PURE__ */ e(P, { className: "w-[200px] p-0", align: "center", side: "top", children: /* @__PURE__ */ t(k, { children: [
64
- /* @__PURE__ */ e(y, { placeholder: "Target state…", className: "h-8 text-[12px]" }),
65
- /* @__PURE__ */ t(C, { children: [
66
- /* @__PURE__ */ e(w, { children: "No state found." }),
67
- o.map((a) => /* @__PURE__ */ e(
68
- N,
32
+ onPointerDownCapture: (t) => {
33
+ var r, d;
34
+ (d = (r = t.target) == null ? void 0 : r.closest) != null && d.call(r, "button") && (a == null || a());
35
+ },
36
+ onKeyDownCapture: (t) => {
37
+ var r, d;
38
+ t.key !== "Enter" && t.key !== " " || (d = (r = t.target) == null ? void 0 : r.closest) != null && d.call(r, "button") && (a == null || a());
39
+ },
40
+ className: "flex max-w-full items-center gap-1 overflow-x-auto whitespace-nowrap rounded-full border border-slate-200 bg-white px-4 py-2 shadow-lg dark:border-border dark:bg-card [&>*]:shrink-0",
41
+ children: [
42
+ /* @__PURE__ */ e("span", { className: "mr-2 text-[12px] font-semibold text-slate-700 dark:text-slate-200", children: g ?? `${s} selected` }),
43
+ m && p && /* @__PURE__ */ e(
44
+ "button",
69
45
  {
70
- value: a.label,
71
- onSelect: () => {
72
- d(!1), u(a.value);
73
- },
74
- children: a.label
75
- },
76
- a.value
77
- ))
78
- ] })
79
- ] }) })
80
- ] }),
81
- /* @__PURE__ */ e(
82
- "button",
83
- {
84
- type: "button",
85
- onClick: x,
86
- className: "ml-1 rounded-full p-1 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200",
87
- "aria-label": "Clear selection",
88
- children: /* @__PURE__ */ e(v, { className: "h-3.5 w-3.5" })
46
+ type: "button",
47
+ disabled: o,
48
+ onClick: x,
49
+ className: "rounded-md px-2.5 py-1 text-[12px] font-medium text-nvr-navy hover:bg-nvr-cyan/10 disabled:opacity-50 dark:text-nvr-cyan",
50
+ children: "Claim"
51
+ }
52
+ ),
53
+ m && u && /* @__PURE__ */ e(
54
+ "button",
55
+ {
56
+ type: "button",
57
+ disabled: o,
58
+ onClick: h,
59
+ className: "rounded-md px-2.5 py-1 text-[12px] font-medium text-slate-600 hover:bg-slate-100 disabled:opacity-50 dark:text-slate-300 dark:hover:bg-muted",
60
+ children: "Release"
61
+ }
62
+ ),
63
+ v,
64
+ c && /* @__PURE__ */ l(D, { open: y, onOpenChange: n, children: [
65
+ /* @__PURE__ */ e(R, { asChild: !0, children: /* @__PURE__ */ l(
66
+ "button",
67
+ {
68
+ type: "button",
69
+ disabled: o || i.length === 0,
70
+ className: "flex items-center gap-1 rounded-md px-2.5 py-1 text-[12px] font-medium text-slate-600 hover:bg-slate-100 disabled:opacity-50 dark:text-slate-300 dark:hover:bg-muted",
71
+ children: [
72
+ "Transition ",
73
+ /* @__PURE__ */ e(C, { className: "h-3 w-3" })
74
+ ]
75
+ }
76
+ ) }),
77
+ /* @__PURE__ */ e(S, { className: "w-[200px] p-0", align: "center", side: "top", children: /* @__PURE__ */ l(P, { children: [
78
+ /* @__PURE__ */ e(T, { placeholder: "Target state…", className: "h-8 text-[12px]" }),
79
+ /* @__PURE__ */ l(O, { children: [
80
+ /* @__PURE__ */ e(j, { children: "No state found." }),
81
+ i.map((t) => /* @__PURE__ */ e(
82
+ B,
83
+ {
84
+ value: t.label,
85
+ onSelect: () => {
86
+ n(!1), b(t.value);
87
+ },
88
+ children: t.label
89
+ },
90
+ t.value
91
+ ))
92
+ ] })
93
+ ] }) })
94
+ ] }),
95
+ /* @__PURE__ */ e(
96
+ "button",
97
+ {
98
+ type: "button",
99
+ onClick: f,
100
+ className: "ml-1 rounded-full p-1 text-slate-400 hover:text-slate-600 dark:hover:text-slate-200",
101
+ "aria-label": "Clear selection",
102
+ children: /* @__PURE__ */ e(w, { className: "h-3.5 w-3.5" })
103
+ }
104
+ )
105
+ ]
89
106
  }
90
107
  )
91
108
  ] })
92
109
  );
93
110
  }
94
111
  export {
95
- z as QueueBulkBar
112
+ X as QueueBulkBar
96
113
  };
@@ -1,12 +1,12 @@
1
1
  import { jsxs as n, jsx as r, Fragment as ae } from "react/jsx-runtime";
2
- import { useQueryClient as ne, useQuery as $, useMutation as D } from "@tanstack/react-query";
3
- import { ExternalLink as oe, ArrowRight as H } from "lucide-react";
4
- import { useState as q, useEffect as se } from "react";
2
+ import { useQueryClient as ne, useQuery as H, useMutation as B } from "@tanstack/react-query";
3
+ import { ExternalLink as oe, ArrowRight as O } from "lucide-react";
4
+ import { useState as _, useEffect as se } from "react";
5
5
  import { toast as C } from "sonner";
6
- import { useNivaroClient as de, useItemNavigation as ie } from "../../context.js";
7
- import { get as B, post as O } from "../../lib/commands.js";
6
+ import { useNivaroClient as ie, useItemNavigation as de } from "../../context.js";
7
+ import { get as V, post as U } from "../../lib/commands.js";
8
8
  import { formatMultiValue as le } from "../../lib/format-value.js";
9
- import { useLiveRecord as ce, batchTouches as V, LIVE_ASPECTS as U } from "../../lib/live.js";
9
+ import { useLiveRecord as ce, batchTouches as S, LIVE_ASPECTS as I } from "../../lib/live.js";
10
10
  import { userErrorMessage as me } from "../../lib/safe-error.js";
11
11
  import { cn as W, formatRelative as ue, humanHours as pe } from "../../lib/utils.js";
12
12
  import { transitionRequirementsFromError as be } from "../panels/PipelinePanel.js";
@@ -15,8 +15,8 @@ import { Badge as he } from "../ui/badge.js";
15
15
  import { Sheet as fe, SheetContent as ge, SheetHeader as ye, SheetTitle as ve } from "../ui/sheet.js";
16
16
  import { OwnerAvatars as ke } from "./OwnerAvatars.js";
17
17
  import { pathHeader as Ne } from "./path-label.js";
18
- import { useTransitionNote as we, needsTransitionNote as _e } from "./transition-note.js";
19
- function qe(t) {
18
+ import { useTransitionNote as we, needsTransitionNote as qe } from "./transition-note.js";
19
+ function _e(t) {
20
20
  return (t ?? []).filter((b) => b.in_row_menu !== !1);
21
21
  }
22
22
  function Ce(t) {
@@ -35,75 +35,75 @@ function We({
35
35
  onClaim: z,
36
36
  onRelease: G,
37
37
  workNextActive: J,
38
- onNext: S,
39
- refetchItems: I,
38
+ onNext: K,
39
+ refetchItems: T,
40
40
  stateLabels: g,
41
- collectionLabel: T,
41
+ collectionLabel: M,
42
42
  claimsEnabled: X = !0,
43
- columnFormats: x,
43
+ columnFormats: h,
44
44
  fieldLabel: y,
45
45
  width: Y,
46
- itemLayout: K,
47
- onOpenRecord: M
46
+ itemLayout: P,
47
+ onOpenRecord: A
48
48
  }) {
49
- var j;
50
- const h = ne(), f = de(), { open: Z, urlFor: L } = ie(), [v, P] = q(""), [l, k] = q(null), [N, c] = q(null), A = we(), o = t == null ? void 0 : t.collection, s = t == null ? void 0 : t.item_id;
49
+ var $;
50
+ const x = ne(), f = ie(), { open: Z, urlFor: L } = de(), [v, E] = _(""), [l, k] = _(null), [N, c] = _(null), Q = we(), o = t == null ? void 0 : t.collection, s = t == null ? void 0 : t.item_id;
51
51
  se(() => c(null), [o, s]);
52
- const { data: m } = $({
52
+ const { data: m } = H({
53
53
  queryKey: ["queue-sheet-instance", o, s],
54
- queryFn: () => f.request(B(`/pipelines/instance/${o}/${s}`)).then((e) => e.data),
54
+ queryFn: () => f.request(V(`/pipelines/instance/${o}/${s}`)).then((e) => e.data),
55
55
  enabled: !!o && !!s
56
- }), { data: u } = $({
56
+ }), { data: u } = H({
57
57
  queryKey: ["queue-sheet-comments", o, s],
58
- queryFn: () => f.request(B("/comments", { collection: o, item: s })).then((e) => ({ data: (e.data ?? []).filter((a) => !a.deleted) })).catch(() => ({ data: [] })),
58
+ queryFn: () => f.request(V("/comments", { collection: o, item: s })).then((e) => ({ data: (e.data ?? []).filter((a) => !a.deleted) })).catch(() => ({ data: [] })),
59
59
  enabled: !!o && !!s
60
- }), d = D({
60
+ }), i = B({
61
61
  mutationFn: ({ transitionId: e, comment: a }) => f.request(
62
- O(`/pipelines/instance/${o}/${s}/transition`, {
62
+ U(`/pipelines/instance/${o}/${s}/transition`, {
63
63
  transition_id: e,
64
64
  ...a ? { comment: a } : {}
65
65
  })
66
66
  ),
67
67
  onSuccess: () => {
68
- k(null), c(null), h.invalidateQueries({ queryKey: ["queue-sheet-instance", o, s] }), I(), C.success("Transitioned");
68
+ k(null), c(null), x.invalidateQueries({ queryKey: ["queue-sheet-instance", o, s] }), T(), C.success("Transitioned");
69
69
  },
70
70
  onError: (e, { transitionId: a, comment: re }) => {
71
71
  c(null);
72
- const F = be(e);
73
- if (F) {
74
- k((_) => ({
75
- payload: F,
72
+ const D = be(e);
73
+ if (D) {
74
+ k((q) => ({
75
+ payload: D,
76
76
  transitionId: a,
77
77
  comment: re,
78
- revision: ((_ == null ? void 0 : _.revision) ?? 0) + 1
78
+ revision: ((q == null ? void 0 : q.revision) ?? 0) + 1
79
79
  }));
80
80
  return;
81
81
  }
82
82
  C.error(me(e, "Transition failed"));
83
83
  }
84
- }), E = D({
85
- mutationFn: (e) => f.request(O("/comments", { collection: o, item: s, text: e })),
84
+ }), R = B({
85
+ mutationFn: (e) => f.request(U("/comments", { collection: o, item: s, text: e })),
86
86
  onSuccess: () => {
87
- P(""), h.invalidateQueries({ queryKey: ["queue-sheet-comments", o, s] });
87
+ E(""), x.invalidateQueries({ queryKey: ["queue-sheet-comments", o, s] });
88
88
  },
89
89
  onError: () => C.error("Failed to post comment")
90
90
  });
91
91
  ce(o, s, (e) => {
92
- V(e, U.state) && (h.invalidateQueries({ queryKey: ["queue-sheet-instance", o, s] }), e.own || I()), V(e, U.comments) && h.invalidateQueries({ queryKey: ["queue-sheet-comments", o, s] });
92
+ S(e, I.state) ? (x.invalidateQueries({ queryKey: ["queue-sheet-instance", o, s] }), e.own || T()) : S(e, I.owners) && x.invalidateQueries({ queryKey: ["queue-sheet-instance", o, s] }), S(e, I.comments) && x.invalidateQueries({ queryKey: ["queue-sheet-comments", o, s] });
93
93
  });
94
- const w = qe(m == null ? void 0 : m.available_transitions), i = N && w.some((e) => e.id === N.id) ? N : null, R = new Map(((m == null ? void 0 : m.states) ?? []).map((e) => [e.id, e])), Q = (e) => {
95
- const a = R.get(e.to_state);
94
+ const w = _e(m == null ? void 0 : m.available_transitions), d = N && w.some((e) => e.id === N.id) ? N : null, j = new Map(((m == null ? void 0 : m.states) ?? []).map((e) => [e.id, e])), F = (e) => {
95
+ const a = j.get(e.to_state);
96
96
  return e.label || (a == null ? void 0 : a.label) || (a == null ? void 0 : a.key) || "Move";
97
97
  }, ee = (e) => {
98
- const a = R.get(e.to_state);
98
+ const a = j.get(e.to_state);
99
99
  return (a == null ? void 0 : a.label) || (a == null ? void 0 : a.key) || e.label || "the next step";
100
100
  }, te = async (e) => {
101
- if (!d.isPending) {
102
- if (_e(e)) {
101
+ if (!i.isPending) {
102
+ if (qe(e)) {
103
103
  c(null);
104
- const a = await A.ask(Q(e));
104
+ const a = await Q.ask(F(e));
105
105
  if (!a) return;
106
- d.mutate({ transitionId: e.id, comment: a });
106
+ i.mutate({ transitionId: e.id, comment: a });
107
107
  return;
108
108
  }
109
109
  c(e);
@@ -121,7 +121,7 @@ function We({
121
121
  /* @__PURE__ */ n("div", { className: "min-w-0", children: [
122
122
  /* @__PURE__ */ r(ve, { className: "truncate text-[15px] font-semibold", children: t.label }),
123
123
  /* @__PURE__ */ n("div", { className: "mt-1.5 flex items-center gap-2", children: [
124
- /* @__PURE__ */ r(he, { variant: "outline", children: T ? T(t.collection) : t.collection }),
124
+ /* @__PURE__ */ r(he, { variant: "outline", children: M ? M(t.collection) : t.collection }),
125
125
  t.state && /* @__PURE__ */ r(
126
126
  "span",
127
127
  {
@@ -141,13 +141,13 @@ function We({
141
141
  href: L({
142
142
  collection: t.collection,
143
143
  itemId: t.item_id,
144
- layoutSlug: K ?? null
144
+ layoutSlug: P ?? null
145
145
  }),
146
146
  onClick: (e) => {
147
- e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0 || (e.preventDefault(), M ? M(t) : Z({
147
+ e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0 || (e.preventDefault(), A ? A(t) : Z({
148
148
  collection: t.collection,
149
149
  itemId: t.item_id,
150
- layoutSlug: K ?? null
150
+ layoutSlug: P ?? null
151
151
  }));
152
152
  },
153
153
  className: "flex shrink-0 items-center gap-1 text-[12px] font-medium text-nvr-navy hover:underline dark:text-nvr-cyan",
@@ -161,7 +161,7 @@ function We({
161
161
  /* @__PURE__ */ n("div", { className: "flex-1 overflow-y-auto px-5 py-4", children: [
162
162
  /* @__PURE__ */ n("div", { className: "mb-4 grid grid-cols-2 gap-px overflow-hidden rounded-lg border border-slate-200 bg-slate-200 dark:border-border dark:bg-border", children: [
163
163
  /* @__PURE__ */ r(p, { label: "Owners", children: /* @__PURE__ */ r(ke, { owners: t.owners, max: 6 }) }),
164
- /* @__PURE__ */ r(p, { label: "Claimed by", children: ((j = t.claimed_by) == null ? void 0 : j.name) ?? "—" }),
164
+ /* @__PURE__ */ r(p, { label: "Claimed by", children: (($ = t.claimed_by) == null ? void 0 : $.name) ?? "—" }),
165
165
  /* @__PURE__ */ r(p, { label: "SLA", children: t.sla_status ? /* @__PURE__ */ r(
166
166
  "span",
167
167
  {
@@ -174,7 +174,7 @@ function We({
174
174
  ) : "—" }),
175
175
  /* @__PURE__ */ r(p, { label: "Aging", children: Ce(t.aging_hours) }),
176
176
  t.at_risk && /* @__PURE__ */ r(p, { label: "Risk", children: /* @__PURE__ */ r("span", { className: "text-red-500", children: "⚑ At risk" }) }),
177
- Object.entries(t.extra ?? {}).map(([e, a]) => /* @__PURE__ */ r(p, { label: (y == null ? void 0 : y(e)) || Se(e), children: a == null || a === "" ? "—" : x != null && x[e] ? le(String(a), x[e]) : String(a) }, e))
177
+ Object.entries(t.extra ?? {}).map(([e, a]) => /* @__PURE__ */ r(p, { label: (y == null ? void 0 : y(e)) || Se(e), children: a == null || a === "" ? "—" : h != null && h[e] ? le(String(a), h[e]) : String(a) }, e))
178
178
  ] }),
179
179
  w.length > 0 && /* @__PURE__ */ n("div", { className: "mb-4", children: [
180
180
  /* @__PURE__ */ r("p", { className: "mb-1.5 text-[11px] font-medium uppercase tracking-wide text-slate-400 dark:text-muted-foreground", children: "Transitions" }),
@@ -182,21 +182,21 @@ function We({
182
182
  "button",
183
183
  {
184
184
  type: "button",
185
- disabled: d.isPending,
186
- "aria-pressed": (i == null ? void 0 : i.id) === e.id,
185
+ disabled: i.isPending,
186
+ "aria-pressed": (d == null ? void 0 : d.id) === e.id,
187
187
  onClick: () => void te(e),
188
188
  className: W(
189
189
  "flex items-center gap-1 rounded-md border border-slate-200 bg-white px-2.5 py-1.5 text-[12px] font-medium text-slate-700 hover:border-nvr-cyan hover:text-nvr-navy disabled:opacity-50 dark:border-border dark:bg-card dark:text-slate-200 dark:hover:text-nvr-cyan",
190
- (i == null ? void 0 : i.id) === e.id && "border-nvr-cyan"
190
+ (d == null ? void 0 : d.id) === e.id && "border-nvr-cyan"
191
191
  ),
192
192
  children: [
193
- Q(e),
194
- /* @__PURE__ */ r(H, { className: "h-3 w-3 text-slate-400" })
193
+ F(e),
194
+ /* @__PURE__ */ r(O, { className: "h-3 w-3 text-slate-400" })
195
195
  ]
196
196
  },
197
197
  e.id
198
198
  )) }),
199
- i && /* @__PURE__ */ n(
199
+ d && /* @__PURE__ */ n(
200
200
  "div",
201
201
  {
202
202
  role: "alertdialog",
@@ -209,7 +209,7 @@ function We({
209
209
  /* @__PURE__ */ r("span", { className: "font-semibold", children: t.label }),
210
210
  " to",
211
211
  " ",
212
- /* @__PURE__ */ r("span", { className: "font-semibold", children: ee(i) }),
212
+ /* @__PURE__ */ r("span", { className: "font-semibold", children: ee(d) }),
213
213
  "?"
214
214
  ] }),
215
215
  /* @__PURE__ */ n("div", { className: "mt-2 flex gap-2", children: [
@@ -217,17 +217,17 @@ function We({
217
217
  "button",
218
218
  {
219
219
  type: "button",
220
- disabled: d.isPending,
221
- onClick: () => d.mutate({ transitionId: i.id }),
220
+ disabled: i.isPending,
221
+ onClick: () => i.mutate({ transitionId: d.id }),
222
222
  className: "h-7 rounded-md bg-nvr-cyan px-3 text-[12px] font-semibold text-white disabled:opacity-50",
223
- children: d.isPending ? "Moving…" : "Confirm"
223
+ children: i.isPending ? "Moving…" : "Confirm"
224
224
  }
225
225
  ),
226
226
  /* @__PURE__ */ r(
227
227
  "button",
228
228
  {
229
229
  type: "button",
230
- disabled: d.isPending,
230
+ disabled: i.isPending,
231
231
  onClick: () => c(null),
232
232
  className: "h-7 rounded-md border border-slate-200 bg-white px-3 text-[12px] text-slate-600 hover:bg-muted disabled:opacity-50 dark:border-border dark:bg-card dark:text-slate-300",
233
233
  children: "Keep"
@@ -264,7 +264,7 @@ function We({
264
264
  "textarea",
265
265
  {
266
266
  value: v,
267
- onChange: (e) => P(e.target.value),
267
+ onChange: (e) => E(e.target.value),
268
268
  placeholder: "Add a comment…",
269
269
  rows: 2,
270
270
  className: "w-full rounded-md border border-slate-200 bg-white px-2.5 py-1.5 text-[12px] focus:border-nvr-cyan focus:outline-none dark:border-border dark:bg-card"
@@ -274,8 +274,8 @@ function We({
274
274
  "button",
275
275
  {
276
276
  type: "button",
277
- disabled: !v.trim() || E.isPending,
278
- onClick: () => E.mutate(v.trim()),
277
+ disabled: !v.trim() || R.isPending,
278
+ onClick: () => R.mutate(v.trim()),
279
279
  className: "mt-1 rounded-md border border-slate-200 px-2.5 py-1 text-[12px] font-medium text-slate-600 hover:text-slate-800 disabled:opacity-50 dark:border-border dark:text-slate-300",
280
280
  children: "Post"
281
281
  }
@@ -283,15 +283,15 @@ function We({
283
283
  ] })
284
284
  ] })
285
285
  ] }),
286
- J && S && /* @__PURE__ */ r("div", { className: "shrink-0 border-t border-slate-200 px-5 py-3 dark:border-border", children: /* @__PURE__ */ n(
286
+ J && K && /* @__PURE__ */ r("div", { className: "shrink-0 border-t border-slate-200 px-5 py-3 dark:border-border", children: /* @__PURE__ */ n(
287
287
  "button",
288
288
  {
289
289
  type: "button",
290
- onClick: S,
290
+ onClick: K,
291
291
  className: "flex w-full items-center justify-center gap-1.5 rounded-md bg-nvr-cyan px-3 py-2 text-[13px] font-semibold text-white hover:bg-nvr-cyan/90",
292
292
  children: [
293
293
  "Next ",
294
- /* @__PURE__ */ r(H, { className: "h-3.5 w-3.5" })
294
+ /* @__PURE__ */ r(O, { className: "h-3.5 w-3.5" })
295
295
  ]
296
296
  }
297
297
  ) })
@@ -304,19 +304,19 @@ function We({
304
304
  payload: l.payload,
305
305
  transitionId: l.transitionId,
306
306
  isRetry: l.revision > 1,
307
- onSubmitted: () => d.mutate({
307
+ onSubmitted: () => i.mutate({
308
308
  transitionId: l.transitionId,
309
309
  comment: l.comment
310
310
  }),
311
- executing: d.isPending,
311
+ executing: i.isPending,
312
312
  onClose: () => k(null)
313
313
  },
314
314
  l.revision
315
315
  ),
316
- A.dialog
316
+ Q.dialog
317
317
  ] });
318
318
  }
319
319
  export {
320
320
  We as QueueItemSheet,
321
- qe as peekTransitions
321
+ _e as peekTransitions
322
322
  };