@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,37 +1,68 @@
1
- import { useQuery as o, keepPreviousData as y, useQueryClient as u, useMutation as a, useInfiniteQuery as h } from "@tanstack/react-query";
1
+ import { useQuery as a, keepPreviousData as g, useQueryClient as c, useMutation as u, useInfiniteQuery as S } from "@tanstack/react-query";
2
2
  import { useNivaroClient as r } from "../../../context.js";
3
- import { get as s, post as c, del as q, patch as S } from "../../../lib/commands.js";
4
- import { IMPORT_HEALTH_KEY as f } from "../../imports/ImportStalenessControl.js";
5
- import { useImportHealth as j } from "../../imports/ImportStalenessControl.js";
6
- function b(e) {
7
- const n = r();
8
- return o({
3
+ import { get as s, post as l, del as v, patch as K } from "../../../lib/commands.js";
4
+ import { useLiveRefresh as I } from "../../../lib/live-counts.js";
5
+ import { useLiveRefetchInterval as R } from "../../../lib/live-queries.js";
6
+ import { IMPORT_HEALTH_KEY as $ } from "../../imports/ImportStalenessControl.js";
7
+ import { useImportHealth as se } from "../../imports/ImportStalenessControl.js";
8
+ const p = ["ready-to-send"];
9
+ function T() {
10
+ const e = r();
11
+ return a({
12
+ queryKey: p,
13
+ queryFn: () => e.request(s("/ready-to-send")).then((n) => n.data),
14
+ refetchInterval: (n) => {
15
+ var t;
16
+ return (t = n.state.data) != null && t.running ? 5e3 : !1;
17
+ }
18
+ });
19
+ }
20
+ function _() {
21
+ const e = r(), n = c();
22
+ return u({
23
+ mutationFn: () => e.request(l("/ready-to-send/run")),
24
+ onSettled: () => n.invalidateQueries({ queryKey: p })
25
+ });
26
+ }
27
+ function A() {
28
+ const e = r(), n = c();
29
+ return u({
30
+ mutationFn: (t) => e.request(l("/ready-to-send/check", t)).then((i) => i.data),
31
+ onSuccess: () => n.invalidateQueries({ queryKey: p })
32
+ });
33
+ }
34
+ function q() {
35
+ return R(6e4, { safetyMs: 5 * 6e4 });
36
+ }
37
+ function w(e) {
38
+ const n = r(), t = q();
39
+ return a({
9
40
  queryKey: ["integration-signals", e ?? "all"],
10
41
  queryFn: () => n.request(
11
42
  s(`/integration-signals${e ? `?tab=${encodeURIComponent(e)}` : ""}`)
12
- ).then((t) => t.data),
13
- refetchInterval: 6e4
43
+ ).then((i) => i.data),
44
+ refetchInterval: t
14
45
  });
15
46
  }
16
- function Q() {
17
- const e = r(), n = u();
18
- return a({
19
- mutationFn: () => e.request(c("/integration-signals/refresh")),
47
+ function D() {
48
+ const e = r(), n = c();
49
+ return u({
50
+ mutationFn: () => e.request(l("/integration-signals/refresh")),
20
51
  onSettled: () => n.invalidateQueries({ queryKey: ["integration-signals"] })
21
52
  });
22
53
  }
23
- function C() {
24
- const e = r(), n = u();
25
- return a({
26
- mutationFn: (t) => e.request(c("/integration-signals/actions", t)).then((i) => i.data),
54
+ function L() {
55
+ const e = r(), n = c();
56
+ return u({
57
+ mutationFn: (t) => e.request(l("/integration-signals/actions", t)).then((i) => i.data),
27
58
  onSettled: () => {
28
59
  n.invalidateQueries({ queryKey: ["integration-signals"] }), n.invalidateQueries({ queryKey: ["erp-submissions"] }), n.invalidateQueries({ queryKey: ["erp-submission-attempts"] });
29
60
  }
30
61
  });
31
62
  }
32
- function P(e) {
63
+ function N(e) {
33
64
  const n = r();
34
- return o({
65
+ return a({
35
66
  // Under 'erp-submissions' so every existing retry invalidation refreshes it.
36
67
  queryKey: ["erp-submissions", "detail", e],
37
68
  enabled: e != null,
@@ -39,9 +70,9 @@ function P(e) {
39
70
  staleTime: 15e3
40
71
  });
41
72
  }
42
- function U(e) {
73
+ function k(e) {
43
74
  const n = r();
44
- return o({
75
+ return a({
45
76
  queryKey: ["erp-submission-attempts", e],
46
77
  enabled: e != null,
47
78
  queryFn: () => n.request(
@@ -50,68 +81,68 @@ function U(e) {
50
81
  staleTime: 15e3
51
82
  });
52
83
  }
53
- function T() {
54
- const e = r(), n = u();
55
- return a({
56
- mutationFn: (t) => e.request(c(`/erp-submissions/${t}/retry`)),
84
+ function B() {
85
+ const e = r(), n = c();
86
+ return u({
87
+ mutationFn: (t) => e.request(l(`/erp-submissions/${t}/retry`)),
57
88
  onSettled: () => {
58
89
  n.invalidateQueries({ queryKey: ["integration-signals"] }), n.invalidateQueries({ queryKey: ["erp-submissions"] }), n.invalidateQueries({ queryKey: ["erp-submission-attempts"] });
59
90
  }
60
91
  });
61
92
  }
62
- function E() {
63
- const e = r(), n = u();
93
+ function M() {
94
+ const e = r(), n = c();
64
95
  return {
65
- add: a({
66
- mutationFn: (t) => e.request(c("/integration-signals/snoozes", t)),
96
+ add: u({
97
+ mutationFn: (t) => e.request(l("/integration-signals/snoozes", t)),
67
98
  onSettled: () => n.invalidateQueries({ queryKey: ["integration-signals"] })
68
99
  }),
69
- remove: a({
70
- mutationFn: (t) => e.request(q(`/integration-signals/snoozes/${t}`)),
100
+ remove: u({
101
+ mutationFn: (t) => e.request(v(`/integration-signals/snoozes/${t}`)),
71
102
  onSettled: () => n.invalidateQueries({ queryKey: ["integration-signals"] })
72
103
  })
73
104
  };
74
105
  }
75
- function _() {
76
- const e = r(), n = u();
77
- return a({
106
+ function Y() {
107
+ const e = r(), n = c();
108
+ return u({
78
109
  mutationFn: (t) => e.request(
79
- c("/integration-signals/dismiss", t)
110
+ l("/integration-signals/dismiss", t)
80
111
  ).then((i) => i.data),
81
112
  onSettled: () => n.invalidateQueries({ queryKey: ["integration-signals"] })
82
113
  });
83
114
  }
84
- function w() {
85
- const e = r();
86
- return o({
115
+ function x() {
116
+ const e = r(), n = q();
117
+ return a({
87
118
  queryKey: ["integration-partners"],
88
119
  queryFn: () => e.request(
89
120
  s("/integration-partners")
90
- ).then((n) => n.data),
91
- refetchInterval: 6e4
121
+ ).then((t) => t.data),
122
+ refetchInterval: n
92
123
  });
93
124
  }
94
- function A(e) {
125
+ function z(e) {
95
126
  const n = r();
96
- return o({
127
+ return a({
97
128
  queryKey: ["integration-partner", e],
98
129
  enabled: e != null,
99
130
  queryFn: () => n.request(s(`/integration-partners/${e}`)).then((t) => t.data)
100
131
  });
101
132
  }
102
- function D(e, n) {
133
+ function G(e, n) {
103
134
  const t = r();
104
- return o({
135
+ return a({
105
136
  queryKey: ["integration-partner-call", e, n],
106
137
  enabled: n != null,
107
138
  queryFn: () => t.request(s(`/integration-partners/${e}/calls/${n}`)).then((i) => i.data),
108
139
  staleTime: 15e3
109
140
  });
110
141
  }
111
- const p = 50;
112
- function N(e) {
113
- const n = r();
114
- return h({
142
+ const m = 50;
143
+ function H(e) {
144
+ const n = r(), t = q();
145
+ return S({
115
146
  queryKey: [
116
147
  "integration-events",
117
148
  e.provider,
@@ -122,46 +153,46 @@ function N(e) {
122
153
  !!e.includePeople
123
154
  ],
124
155
  initialPageParam: null,
125
- queryFn: ({ pageParam: t }) => {
126
- const i = new URLSearchParams({ limit: String(p) });
127
- return e.provider && i.set("provider", e.provider), e.status && i.set("status", e.status), e.partner && i.set("partner", e.partner), e.caller && i.set("caller", e.caller), e.record && i.set("record", e.record), e.includePeople && i.set("include_people", "1"), t && i.set("before", t), n.request(s(`/integration-events?${i.toString()}`)).then((l) => l.data);
156
+ queryFn: ({ pageParam: i }) => {
157
+ const o = new URLSearchParams({ limit: String(m) });
158
+ return e.provider && o.set("provider", e.provider), e.status && o.set("status", e.status), e.partner && o.set("partner", e.partner), e.caller && o.set("caller", e.caller), e.record && o.set("record", e.record), e.includePeople && o.set("include_people", "1"), i && o.set("before", i), n.request(s(`/integration-events?${o.toString()}`)).then((d) => d.data);
128
159
  },
129
- getNextPageParam: (t) => t.entries.length < p ? null : t.entries[t.entries.length - 1].created_at,
160
+ getNextPageParam: (i) => i.entries.length < m ? null : i.entries[i.entries.length - 1].created_at,
130
161
  // A filter change keeps the old list on screen (dimmed) instead of
131
162
  // collapsing to skeletons.
132
- placeholderData: y,
133
- refetchInterval: 6e4
163
+ placeholderData: g,
164
+ refetchInterval: t
134
165
  });
135
166
  }
136
- function L(e) {
167
+ function O(e) {
137
168
  return "chainId" in e ? `chain:${e.chainId}` : `${e.source}:${e.id}`;
138
169
  }
139
- function x(e) {
140
- var l, g;
170
+ function V(e) {
171
+ var o, d;
141
172
  const n = r(), t = e && "chainId" in e ? e.chainId : null, i = e && !("chainId" in e) ? e : null;
142
- return o({
143
- queryKey: t ? ["integration-event-path", "chain", t] : ["integration-event-path", i == null ? void 0 : i.source, i == null ? void 0 : i.id, (l = i == null ? void 0 : i.record) == null ? void 0 : l.collection, (g = i == null ? void 0 : i.record) == null ? void 0 : g.item],
173
+ return a({
174
+ queryKey: t ? ["integration-event-path", "chain", t] : ["integration-event-path", i == null ? void 0 : i.source, i == null ? void 0 : i.id, (o = i == null ? void 0 : i.record) == null ? void 0 : o.collection, (d = i == null ? void 0 : i.record) == null ? void 0 : d.item],
144
175
  enabled: e != null,
145
176
  queryFn: async () => {
146
- let d;
177
+ let y;
147
178
  if (t)
148
- d = `/integration-events/chain/${encodeURIComponent(t)}/path`;
179
+ y = `/integration-events/chain/${encodeURIComponent(t)}/path`;
149
180
  else if (i != null && i.record)
150
- d = `/integration-events/record/${encodeURIComponent(i.record.collection)}/${encodeURIComponent(i.record.item)}/path?source=${encodeURIComponent(i.source)}&id=${encodeURIComponent(i.id)}`;
181
+ y = `/integration-events/record/${encodeURIComponent(i.record.collection)}/${encodeURIComponent(i.record.item)}/path?source=${encodeURIComponent(i.source)}&id=${encodeURIComponent(i.id)}`;
151
182
  else if (i)
152
- d = `/integration-events/${encodeURIComponent(i.source)}/${encodeURIComponent(i.id)}/path`;
183
+ y = `/integration-events/${encodeURIComponent(i.source)}/${encodeURIComponent(i.id)}/path`;
153
184
  else
154
185
  return null;
155
- return (await n.request(s(d))).data;
186
+ return (await n.request(s(y))).data;
156
187
  },
157
188
  staleTime: 3e4,
158
189
  // A 404 (event no longer kept, or not about this record) will not heal.
159
190
  retry: !1
160
191
  });
161
192
  }
162
- function z(e, n, t) {
193
+ function W(e, n, t) {
163
194
  const i = r();
164
- return o({
195
+ return a({
165
196
  queryKey: ["integration-record-activity", e, n, t],
166
197
  enabled: !!(e && n),
167
198
  queryFn: async () => (await i.request(
@@ -169,94 +200,107 @@ function z(e, n, t) {
169
200
  `/integration-events/record/${encodeURIComponent(e)}/${encodeURIComponent(n)}?page=${t}`
170
201
  )
171
202
  )).data,
172
- placeholderData: y
203
+ placeholderData: g
173
204
  });
174
205
  }
175
- function B() {
176
- const e = r(), n = u();
177
- return a({
206
+ function j() {
207
+ const e = r(), n = c();
208
+ return u({
178
209
  mutationFn: (t) => e.request(
179
- c(`/integration-events/${encodeURIComponent(t.provider ?? t.source ?? "")}/replay`, {
210
+ l(`/integration-events/${encodeURIComponent(t.provider ?? t.source ?? "")}/replay`, {
180
211
  entry_id: String(t.id)
181
212
  })
182
213
  ).then((i) => i.data),
183
214
  onSettled: () => n.invalidateQueries({ queryKey: ["integration-events"] })
184
215
  });
185
216
  }
186
- const m = ["integration-signal-settings"], v = ["integration-signal-subscriptions"];
187
- function G() {
217
+ const h = ["integration-signal-settings"], f = ["integration-signal-subscriptions"];
218
+ function J() {
188
219
  const e = r();
189
- return o({
190
- queryKey: m,
220
+ return a({
221
+ queryKey: h,
191
222
  queryFn: () => e.request(s("/integration-signals/settings")).then((n) => n.data)
192
223
  });
193
224
  }
194
- function H() {
195
- const e = r(), n = u();
196
- return a({
225
+ function X() {
226
+ const e = r(), n = c();
227
+ return u({
197
228
  mutationFn: (t) => e.request(
198
- S(`/integration-signals/settings/${encodeURIComponent(t.signal)}`, t.values)
229
+ K(`/integration-signals/settings/${encodeURIComponent(t.signal)}`, t.values)
199
230
  ),
200
231
  onSettled: () => {
201
- n.invalidateQueries({ queryKey: m }), n.invalidateQueries({ queryKey: ["integration-signals"] }), n.invalidateQueries({ queryKey: f });
232
+ n.invalidateQueries({ queryKey: h }), n.invalidateQueries({ queryKey: ["integration-signals"] }), n.invalidateQueries({ queryKey: $ });
202
233
  }
203
234
  });
204
235
  }
205
- function Y(e, n) {
236
+ function Z(e, n) {
206
237
  const t = r();
207
- return o({
238
+ return a({
208
239
  queryKey: ["integration-signal-preview", e, n],
209
240
  queryFn: () => t.request(
210
241
  s(`/integration-signals/settings/${encodeURIComponent(e)}/preview`, n ?? {})
211
242
  ).then((i) => i.data),
212
243
  enabled: n != null,
213
- placeholderData: y,
244
+ placeholderData: g,
214
245
  staleTime: 3e4,
215
246
  retry: !1
216
247
  });
217
248
  }
218
- function M() {
249
+ function ee() {
219
250
  const e = r();
220
- return o({
221
- queryKey: v,
251
+ return a({
252
+ queryKey: f,
222
253
  queryFn: () => e.request(s("/integration-signals/subscriptions")).then((n) => n.data)
223
254
  });
224
255
  }
225
- function O() {
226
- const e = r(), n = u();
227
- return a({
256
+ function ne() {
257
+ const e = r(), n = c();
258
+ return u({
228
259
  mutationFn: async (t) => {
229
260
  t.on ? await e.request(
230
- c("/integration-signals/subscriptions", { signal: t.signal, mode: t.mode })
231
- ) : t.id != null && await e.request(q(`/integration-signals/subscriptions/${t.id}`));
261
+ l("/integration-signals/subscriptions", { signal: t.signal, mode: t.mode })
262
+ ) : t.id != null && await e.request(v(`/integration-signals/subscriptions/${t.id}`));
232
263
  },
233
- onSettled: () => n.invalidateQueries({ queryKey: v })
264
+ onSettled: () => n.invalidateQueries({ queryKey: f })
265
+ });
266
+ }
267
+ function te() {
268
+ I({
269
+ topic: "integrations",
270
+ keys: [["integration-signals"], ["integration-partners"], ["integration-events"]],
271
+ quietMs: 3e3,
272
+ maxWaitMs: 2e4
234
273
  });
235
274
  }
236
275
  export {
237
- v as ALERT_SUBSCRIPTIONS_KEY,
238
- p as EVENTS_PAGE,
239
- m as SIGNAL_SETTINGS_KEY,
240
- L as eventPathTargetKey,
241
- M as useAlertSubscriptions,
242
- D as useCallDetail,
243
- _ as useDismissRows,
244
- x as useEventPath,
245
- j as useImportHealth,
246
- N as useIntegrationEvents,
247
- A as usePartner,
248
- w as usePartners,
249
- z as useRecordIntegrationActivity,
250
- Q as useRefreshSignals,
251
- B as useReplayEvent,
252
- T as useRetrySubmission,
253
- H as useSaveSignalSettings,
254
- C as useSignalAction,
255
- Y as useSignalPreview,
256
- G as useSignalSettings,
257
- b as useSignals,
258
- E as useSnooze,
259
- U as useSubmissionAttempts,
260
- P as useSubmissionDetail,
261
- O as useToggleSubscription
276
+ f as ALERT_SUBSCRIPTIONS_KEY,
277
+ m as EVENTS_PAGE,
278
+ p as READY_BOARD_KEY,
279
+ h as SIGNAL_SETTINGS_KEY,
280
+ O as eventPathTargetKey,
281
+ ee as useAlertSubscriptions,
282
+ G as useCallDetail,
283
+ A as useCheckReadyRecord,
284
+ Y as useDismissRows,
285
+ V as useEventPath,
286
+ se as useImportHealth,
287
+ H as useIntegrationEvents,
288
+ te as useLiveIntegrations,
289
+ z as usePartner,
290
+ x as usePartners,
291
+ T as useReadyBoard,
292
+ W as useRecordIntegrationActivity,
293
+ D as useRefreshSignals,
294
+ j as useReplayEvent,
295
+ B as useRetrySubmission,
296
+ _ as useRunReadyCheck,
297
+ X as useSaveSignalSettings,
298
+ L as useSignalAction,
299
+ Z as useSignalPreview,
300
+ J as useSignalSettings,
301
+ w as useSignals,
302
+ M as useSnooze,
303
+ k as useSubmissionAttempts,
304
+ N as useSubmissionDetail,
305
+ ne as useToggleSubscription
262
306
  };
@@ -1,5 +1,5 @@
1
1
  import { plainObligationReason as v } from "../../../lib/obligation-reason-text.js";
2
- const b = {
2
+ const f = {
3
3
  negative: "text-[color:var(--nvr-role-negative,#dc2626)] dark:text-[color:var(--nvr-role-negative-dark,#e08383)]",
4
4
  warning: "text-[color:var(--nvr-role-warning,#b45309)] dark:text-[color:var(--nvr-role-warning-dark,#d4936a)]",
5
5
  positive: "text-[color:var(--nvr-role-positive,#15803d)] dark:text-[color:var(--nvr-role-positive-dark,#9fbf8a)]",
@@ -17,11 +17,14 @@ const b = {
17
17
  positive: "bg-[color:var(--nvr-role-positive,#15803d)] dark:bg-[color:var(--nvr-role-positive-dark,#9fbf8a)]",
18
18
  info: "bg-[color:var(--nvr-role-info,#4f46e5)] dark:bg-[color:var(--nvr-role-info-dark,#8fa6c9)]",
19
19
  neutral: "bg-muted-foreground/40"
20
- }, p = {
20
+ }, _ = {
21
21
  negative: "border-[color:color-mix(in_srgb,var(--nvr-role-negative,#dc2626)_35%,transparent)] dark:border-[color:color-mix(in_srgb,var(--nvr-role-negative-dark,#e08383)_35%,transparent)]",
22
- warning: "border-[color:color-mix(in_srgb,var(--nvr-role-warning,#b45309)_35%,transparent)] dark:border-[color:color-mix(in_srgb,var(--nvr-role-warning-dark,#d4936a)_35%,transparent)]"
22
+ warning: "border-[color:color-mix(in_srgb,var(--nvr-role-warning,#b45309)_35%,transparent)] dark:border-[color:color-mix(in_srgb,var(--nvr-role-warning-dark,#d4936a)_35%,transparent)]",
23
+ positive: "border-[color:color-mix(in_srgb,var(--nvr-role-positive,#15803d)_35%,transparent)] dark:border-[color:color-mix(in_srgb,var(--nvr-role-positive-dark,#9fbf8a)_35%,transparent)]",
24
+ info: "border-[color:color-mix(in_srgb,var(--nvr-role-info,#4f46e5)_35%,transparent)] dark:border-[color:color-mix(in_srgb,var(--nvr-role-info-dark,#8fa6c9)_35%,transparent)]",
25
+ neutral: "border-border"
23
26
  };
24
- function g(n, r = Date.now()) {
27
+ function s(n, r = Date.now()) {
25
28
  if (!n) return null;
26
29
  const e = new Date(n).getTime();
27
30
  if (Number.isNaN(e)) return null;
@@ -37,8 +40,8 @@ function g(n, r = Date.now()) {
37
40
  const l = Math.floor(a / 12), c = a - l * 12;
38
41
  return c > 0 ? `${l}y ${c}mo` : `${l}y`;
39
42
  }
40
- function _(n) {
41
- const r = g(n);
43
+ function p(n) {
44
+ const r = s(n);
42
45
  return r ? r === "just now" ? r : `${r} ago` : "never";
43
46
  }
44
47
  function k(n) {
@@ -46,7 +49,7 @@ function k(n) {
46
49
  const r = new Date(n);
47
50
  return Number.isNaN(r.getTime()) ? "" : `${r.toLocaleString()} · ${r.toISOString()}`;
48
51
  }
49
- const s = /\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}:?\d{2})?/g, d = /:?\s*\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
52
+ const g = /\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}:?\d{2})?/g, d = /:?\s*\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
50
53
  function x(n) {
51
54
  let r = v(String(n ?? "").trim());
52
55
  if (!r) return "";
@@ -56,7 +59,7 @@ function x(n) {
56
59
  typeof o == "string" && o.trim() && (r = o.trim().replace(/\s*-\s*$/, ""));
57
60
  } catch {
58
61
  }
59
- return r = r.replace(s, (e) => {
62
+ return r = r.replace(g, (e) => {
60
63
  const o = new Date(e);
61
64
  return Number.isNaN(o.getTime()) ? e : o.toLocaleString("en-US", {
62
65
  month: "short",
@@ -68,12 +71,12 @@ function x(n) {
68
71
  }), r.replace(d, "").replace(/\s{2,}/g, " ").trim();
69
72
  }
70
73
  export {
71
- p as TONE_BORDER,
74
+ _ as TONE_BORDER,
72
75
  u as TONE_FILL,
73
76
  m as TONE_SOFT,
74
- b as TONE_TEXT,
75
- g as ageOf,
76
- _ as agoText,
77
+ f as TONE_TEXT,
78
+ s as ageOf,
79
+ p as agoText,
77
80
  k as exactTime,
78
81
  x as plainDetail
79
82
  };