@nivaro/react 0.3.114 → 0.3.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ScreenShareHost.js +24 -0
- package/dist/full.css +50 -2
- package/dist/hooks/useSessionRecorder.js +61 -60
- package/dist/index.d.ts +1728 -22
- package/dist/index.js +1091 -950
- package/dist/shared/components/ActivityEntry.js +209 -97
- package/dist/shared/components/AgentPresenceChip.js +51 -0
- package/dist/shared/components/AnnouncementBanner.js +56 -41
- package/dist/shared/components/AutolinkedText.js +98 -85
- package/dist/shared/components/BroadcastView.js +149 -141
- package/dist/shared/components/CacheStamp.js +78 -30
- package/dist/shared/components/CollectionBrowserView.js +4909 -4182
- package/dist/shared/components/ConfigChangeStrip.js +63 -0
- package/dist/shared/components/ConfigReachNote.js +107 -0
- package/dist/shared/components/ConformanceView.js +389 -319
- package/dist/shared/components/DataTable.js +612 -551
- package/dist/shared/components/DelegateCoverLine.js +164 -0
- package/dist/shared/components/EnvironmentNotice.js +56 -65
- package/dist/shared/components/FilePreviewLightbox.js +89 -43
- package/dist/shared/components/FindingFixedMark.js +23 -0
- package/dist/shared/components/GridPresenceLine.js +100 -0
- package/dist/shared/components/IdleReloadWatcher.js +82 -43
- package/dist/shared/components/InStep.js +46 -0
- package/dist/shared/components/ItemEditForm.js +5504 -4889
- package/dist/shared/components/LiveAnnouncer.js +62 -0
- package/dist/shared/components/LiveCount.js +54 -0
- package/dist/shared/components/LiveFigure.js +28 -0
- package/dist/shared/components/LiveListControls.js +114 -0
- package/dist/shared/components/LiveNewMatchesPill.js +25 -0
- package/dist/shared/components/LiveOffNote.js +44 -0
- package/dist/shared/components/LivePreferenceHost.js +42 -0
- package/dist/shared/components/LiveRowMark.js +25 -20
- package/dist/shared/components/LiveTraceView.js +257 -0
- package/dist/shared/components/MapView.js +30 -29
- package/dist/shared/components/MatrixEditor.js +497 -462
- package/dist/shared/components/MyWorkView.js +346 -272
- package/dist/shared/components/NotificationBell.js +215 -201
- package/dist/shared/components/OverflowRail.js +326 -0
- package/dist/shared/components/PageRenderer.js +636 -599
- package/dist/shared/components/PresenceDot.js +21 -0
- package/dist/shared/components/ProfileView.js +656 -536
- package/dist/shared/components/RealtimeStatusBanner.js +25 -25
- package/dist/shared/components/RecentRecordsRail.js +51 -48
- package/dist/shared/components/RecordCompare.js +241 -150
- package/dist/shared/components/RecordDrilldownSheet.js +66 -64
- package/dist/shared/components/RecordGridEditor.js +350 -311
- package/dist/shared/components/RecordHoverCard.js +147 -0
- package/dist/shared/components/RecordPeekHost.js +111 -0
- package/dist/shared/components/RecordReadView.js +414 -412
- package/dist/shared/components/RelativeTime.js +16 -0
- package/dist/shared/components/ReportView.js +1396 -1304
- package/dist/shared/components/ScreenRefreshButton.js +77 -0
- package/dist/shared/components/TabCountHost.js +10 -0
- package/dist/shared/components/TickerNumber.js +19 -18
- package/dist/shared/components/TipLayer.js +70 -58
- package/dist/shared/components/WidgetImageMenu.js +59 -0
- package/dist/shared/components/WidgetSlot.js +571 -524
- package/dist/shared/components/activity/RecordActivityStream.js +317 -0
- package/dist/shared/components/bulk/BulkSelectionNotices.js +220 -0
- package/dist/shared/components/cbv/approval-changed.js +20 -0
- package/dist/shared/components/cbv/changed-by-others.js +251 -0
- package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +320 -0
- package/dist/shared/components/change-proposals/ProposalValue.js +28 -0
- package/dist/shared/components/change-proposals/ProposeChangeButton.js +44 -0
- package/dist/shared/components/change-proposals/ProposeChangeDialog.js +359 -0
- package/dist/shared/components/change-proposals/types.js +4 -0
- package/dist/shared/components/chat/ChatPanel.js +1571 -1528
- package/dist/shared/components/chat/Composer.js +276 -298
- package/dist/shared/components/chat/room-due.js +13 -0
- package/dist/shared/components/collections-directory/CollectionRow.js +76 -75
- package/dist/shared/components/collections-directory/CollectionsDirectory.js +415 -395
- package/dist/shared/components/collections-directory/directory-data.js +75 -63
- package/dist/shared/components/imports/ImportConsole.js +159 -155
- package/dist/shared/components/imports/ImportDuplicatesNotice.js +46 -31
- package/dist/shared/components/integrations/SendStatus.js +202 -0
- package/dist/shared/components/integrations/console/IntegrationsConsole.js +45 -36
- package/dist/shared/components/integrations/console/ReadyToSendView.js +453 -0
- package/dist/shared/components/integrations/console/SignalCard.js +84 -77
- package/dist/shared/components/integrations/console/api.js +161 -117
- package/dist/shared/components/integrations/console/tone.js +15 -12
- package/dist/shared/components/item-edit/CatalogPickerField.js +1353 -1245
- package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +162 -0
- package/dist/shared/components/item-edit/CloneDialog.js +208 -206
- package/dist/shared/components/item-edit/DerivedCauseNote.js +57 -0
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +81 -70
- package/dist/shared/components/item-edit/DuplicateNotice.js +169 -101
- package/dist/shared/components/item-edit/FieldAffordances.js +294 -385
- package/dist/shared/components/item-edit/FieldComments.js +159 -116
- package/dist/shared/components/item-edit/FieldPointer.js +132 -0
- package/dist/shared/components/item-edit/FieldRenderer.js +277 -273
- package/dist/shared/components/item-edit/FieldRow.js +519 -439
- package/dist/shared/components/item-edit/FieldSourceBadge.js +88 -0
- package/dist/shared/components/item-edit/FilePickerField.js +454 -369
- package/dist/shared/components/item-edit/GroupSection.js +618 -567
- package/dist/shared/components/item-edit/HeldEditsChip.js +113 -0
- package/dist/shared/components/item-edit/InlineTableField.js +2891 -2723
- package/dist/shared/components/item-edit/ListNeighborNav.js +79 -0
- package/dist/shared/components/item-edit/LiveTraceSheet.js +26 -0
- package/dist/shared/components/item-edit/M2MCombobox.js +284 -273
- package/dist/shared/components/item-edit/OutboxReviewTray.js +313 -0
- package/dist/shared/components/item-edit/PickerBadges.js +52 -0
- package/dist/shared/components/item-edit/PlanGrid.js +434 -439
- package/dist/shared/components/item-edit/RecalcValue.js +55 -0
- package/dist/shared/components/item-edit/RecordChatActions.js +76 -64
- package/dist/shared/components/item-edit/RecordChatMentionsChip.js +103 -0
- package/dist/shared/components/item-edit/RecordGrantTools.js +87 -86
- package/dist/shared/components/item-edit/RecordHelpChip.js +70 -0
- package/dist/shared/components/item-edit/RecordLiveSync.js +230 -217
- package/dist/shared/components/item-edit/RecordOutbox.js +53 -52
- package/dist/shared/components/item-edit/RecordRecapStrip.js +109 -36
- package/dist/shared/components/item-edit/RelationCombobox.js +229 -217
- package/dist/shared/components/item-edit/RelationGroupedCombobox.js +105 -100
- package/dist/shared/components/item-edit/RemoteChangeUi.js +454 -0
- package/dist/shared/components/item-edit/RemoteUploads.js +55 -0
- package/dist/shared/components/item-edit/RemovedLineNote.js +92 -0
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +298 -223
- package/dist/shared/components/item-edit/ScheduledChangeChip.js +244 -0
- package/dist/shared/components/item-edit/SectionPresence.js +78 -0
- package/dist/shared/components/item-edit/SplitLinesButton.js +166 -0
- package/dist/shared/components/item-edit/catalog-line-watch.js +94 -0
- package/dist/shared/components/item-edit/coedit/collab.js +84 -0
- package/dist/shared/components/item-edit/coedit/context.js +24 -0
- package/dist/shared/components/item-edit/coedit/cursors.js +103 -0
- package/dist/shared/components/item-edit/coedit/safe-link.js +15 -0
- package/dist/shared/components/item-edit/coedit/session.js +382 -0
- package/dist/shared/components/item-edit/coedit/useCoedit.js +49 -0
- package/dist/shared/components/item-edit/file-live.js +77 -0
- package/dist/shared/components/item-edit/file-processing.js +87 -0
- package/dist/shared/components/item-edit/layout-switch.js +148 -0
- package/dist/shared/components/item-edit/live-related.js +23 -0
- package/dist/shared/components/item-edit/live-title.js +66 -0
- package/dist/shared/components/item-edit/partner-needs.js +142 -0
- package/dist/shared/components/item-edit/removed-line.js +58 -0
- package/dist/shared/components/item-edit/render-stability.js +70 -59
- package/dist/shared/components/layout-editor/ChangeNote.js +36 -34
- package/dist/shared/components/layout-editor/CollabParts.js +72 -70
- package/dist/shared/components/layout-editor/LayoutEditor.js +306 -303
- package/dist/shared/components/list/InlineEdit.js +504 -208
- package/dist/shared/components/list/ListViewers.js +81 -0
- package/dist/shared/components/list/PhonePager.js +50 -0
- package/dist/shared/components/merge/MergeRecordsDialog.js +1227 -0
- package/dist/shared/components/merge/MergeWithFlow.js +290 -0
- package/dist/shared/components/merge/merge-values.js +110 -0
- package/dist/shared/components/monitoring/InactiveUserLinksView.js +285 -258
- package/dist/shared/components/notifications/NotificationCenterView.js +389 -323
- package/dist/shared/components/notifications/NotificationDetailBits.js +205 -130
- package/dist/shared/components/notifications/NotificationRulesEditor.js +72 -52
- package/dist/shared/components/notifications/bundles.js +21 -19
- package/dist/shared/components/notifications/resolved-line.js +25 -0
- package/dist/shared/components/ops/OpsTasksView.js +45 -44
- package/dist/shared/components/panels/AccessGrantedNote.js +85 -0
- package/dist/shared/components/panels/AlertBanners.js +132 -0
- package/dist/shared/components/panels/AsyncUserPicker.js +54 -45
- package/dist/shared/components/panels/BranchLanes.js +82 -54
- package/dist/shared/components/panels/CommentAwareness.js +332 -0
- package/dist/shared/components/panels/CommentImages.js +219 -0
- package/dist/shared/components/panels/CommentPanel.js +649 -530
- package/dist/shared/components/panels/ExternalRequestsChip.js +98 -80
- package/dist/shared/components/panels/NewSinceChip.js +16 -0
- package/dist/shared/components/panels/OwnerOpenedLine.js +85 -0
- package/dist/shared/components/panels/PipelinePanel.js +1644 -1494
- package/dist/shared/components/panels/ResubmissionDiff.js +293 -0
- package/dist/shared/components/panels/SlaBreachBanner.js +30 -29
- package/dist/shared/components/panels/SlaClock.js +130 -99
- package/dist/shared/components/panels/TaskPanel.js +308 -287
- package/dist/shared/components/panels/unseen-move-check.js +101 -0
- package/dist/shared/components/pipeline/OwnerMatrix.js +80 -71
- package/dist/shared/components/pipeline/OwnerMatrixSheet.js +495 -0
- package/dist/shared/components/pipeline/PipelineEditorView.js +2050 -1942
- package/dist/shared/components/profile/AgentNameField.js +141 -0
- package/dist/shared/components/profile/AgentsPanel.js +55 -46
- package/dist/shared/components/profile/PersonAccess.js +398 -330
- package/dist/shared/components/profile/PersonAdminTools.js +127 -113
- package/dist/shared/components/profile/PersonProfile.js +81 -73
- package/dist/shared/components/profile/SignInTroubleshooter.js +361 -0
- package/dist/shared/components/queue/OwnerAvatars.js +9 -9
- package/dist/shared/components/queue/QueueBulkBar.js +101 -84
- package/dist/shared/components/queue/QueueItemSheet.js +66 -66
- package/dist/shared/components/queue/QueueTeamStrip.js +279 -0
- package/dist/shared/components/queue/QueueWorklist.js +2407 -1950
- package/dist/shared/components/queue/worklist-helpers.js +10 -6
- package/dist/shared/components/send-view/SendViewButton.js +136 -0
- package/dist/shared/components/send-view/SentViewCards.js +147 -0
- package/dist/shared/components/support/ReportProblem.js +1 -0
- package/dist/shared/components/support/ScreenShare.js +554 -0
- package/dist/shared/components/support/SupportView.js +160 -129
- package/dist/shared/components/support/TicketDetailSheet.js +101 -89
- package/dist/shared/components/ui/popover.js +53 -29
- package/dist/shared/components/watch-list/WatchDock.js +1044 -0
- package/dist/shared/components/watch-list/WatchExtras.js +723 -0
- package/dist/shared/components/watch-list/WatchListButton.js +46 -0
- package/dist/shared/components/watch-list/WatchPinButton.js +67 -0
- package/dist/shared/components/watch-list/WatchRows.js +348 -0
- package/dist/shared/lib/activity-sentence.js +87 -75
- package/dist/shared/lib/agent-presence.js +46 -0
- package/dist/shared/lib/approval-progress.js +49 -0
- package/dist/shared/lib/attention-prefs.js +27 -0
- package/dist/shared/lib/cell-locks.js +56 -0
- package/dist/shared/lib/co-edit.js +166 -0
- package/dist/shared/lib/coedit-registry.js +44 -0
- package/dist/shared/lib/comment-awareness.js +124 -0
- package/dist/shared/lib/comment-images.js +45 -0
- package/dist/shared/lib/config-watch.js +94 -0
- package/dist/shared/lib/copy-rules.js +65 -0
- package/dist/shared/lib/count-step.js +30 -0
- package/dist/shared/lib/deadline-ticker.js +68 -0
- package/dist/shared/lib/derived-causes.js +115 -0
- package/dist/shared/lib/draft-store.js +114 -85
- package/dist/shared/lib/error-hints.js +1 -0
- package/dist/shared/lib/field-merge.js +126 -0
- package/dist/shared/lib/filter-sentence.js +10 -10
- package/dist/shared/lib/focus-mode.js +16 -12
- package/dist/shared/lib/grid-cursors.js +77 -0
- package/dist/shared/lib/grid-presence.js +182 -0
- package/dist/shared/lib/idle-reload.js +100 -73
- package/dist/shared/lib/in-step.js +45 -0
- package/dist/shared/lib/integration-chip.js +19 -18
- package/dist/shared/lib/keep-row-focus.js +43 -0
- package/dist/shared/lib/line-locks.js +141 -0
- package/dist/shared/lib/line-split.js +41 -0
- package/dist/shared/lib/linked-changes.js +150 -0
- package/dist/shared/lib/list-return.js +231 -0
- package/dist/shared/lib/list-viewers.js +52 -0
- package/dist/shared/lib/live-announcer.js +86 -0
- package/dist/shared/lib/live-counts.js +85 -0
- package/dist/shared/lib/live-data-changed.js +108 -0
- package/dist/shared/lib/live-deltas.js +81 -0
- package/dist/shared/lib/live-findings.js +113 -0
- package/dist/shared/lib/live-groups.js +122 -0
- package/dist/shared/lib/live-link-labels.js +162 -0
- package/dist/shared/lib/live-list-flow.js +334 -0
- package/dist/shared/lib/live-list.js +143 -129
- package/dist/shared/lib/live-moves.js +51 -0
- package/dist/shared/lib/live-ops.js +26 -26
- package/dist/shared/lib/live-pickers.js +7 -0
- package/dist/shared/lib/live-preference.js +184 -0
- package/dist/shared/lib/live-queries.js +226 -181
- package/dist/shared/lib/live-screen.js +333 -0
- package/dist/shared/lib/live-search.js +108 -0
- package/dist/shared/lib/live-seen.js +35 -0
- package/dist/shared/lib/live-views.js +100 -0
- package/dist/shared/lib/live.js +159 -133
- package/dist/shared/lib/missed-updates.js +198 -0
- package/dist/shared/lib/newer-file.js +56 -0
- package/dist/shared/lib/notification-sound.js +42 -20
- package/dist/shared/lib/obligation-banner.js +17 -17
- package/dist/shared/lib/own-writes.js +59 -41
- package/dist/shared/lib/picker-badges.js +94 -0
- package/dist/shared/lib/presence-signals.js +131 -84
- package/dist/shared/lib/rail-menu-context.js +9 -0
- package/dist/shared/lib/realtime.js +49 -24
- package/dist/shared/lib/record-gaps.js +85 -0
- package/dist/shared/lib/record-outbox.js +369 -222
- package/dist/shared/lib/record-peek.js +75 -0
- package/dist/shared/lib/record-tabs.js +92 -72
- package/dist/shared/lib/relative-ticker.js +42 -0
- package/dist/shared/lib/request-gate.js +119 -119
- package/dist/shared/lib/rollup-recalc.js +107 -0
- package/dist/shared/lib/room-gaps.js +40 -36
- package/dist/shared/lib/row-surface.js +7 -0
- package/dist/shared/lib/rum.js +137 -87
- package/dist/shared/lib/save-progress.js +20 -0
- package/dist/shared/lib/scheduled-countdown.js +67 -0
- package/dist/shared/lib/screen-refresh.js +160 -0
- package/dist/shared/lib/screen-share.js +234 -0
- package/dist/shared/lib/seen-since.js +74 -0
- package/dist/shared/lib/selection-watch.js +205 -0
- package/dist/shared/lib/send-status.js +132 -0
- package/dist/shared/lib/send-view.js +23 -0
- package/dist/shared/lib/socket-liveness.js +155 -0
- package/dist/shared/lib/socket-realtime.js +168 -140
- package/dist/shared/lib/state-census.js +53 -0
- package/dist/shared/lib/summary-mode.js +61 -39
- package/dist/shared/lib/tab-attention.js +143 -32
- package/dist/shared/lib/table-density.js +64 -0
- package/dist/shared/lib/table-pins.js +20 -18
- package/dist/shared/lib/track-travel.js +40 -0
- package/dist/shared/lib/unseen-changes.js +68 -0
- package/dist/shared/lib/upload-file.js +62 -0
- package/dist/shared/lib/upload-presence.js +127 -0
- package/dist/shared/lib/urgent-chime.js +65 -0
- package/dist/shared/lib/use-below-md.js +29 -0
- package/dist/shared/lib/use-online-users.js +32 -11
- package/dist/shared/lib/user-sync.js +155 -39
- package/dist/shared/lib/waiting-count.js +44 -0
- package/dist/shared/lib/watch-desktop.js +83 -0
- package/dist/shared/lib/watch-list.js +447 -0
- package/dist/shared/lib/widget-image-render.js +64 -0
- package/dist/shared/lib/widget-image.js +111 -0
- package/dist/shared/lib/worker-socket.js +130 -104
- package/dist/shared/lib/write-to-screen.js +133 -0
- package/package.json +1 -1
- package/styles.css +49 -1
|
@@ -1,37 +1,68 @@
|
|
|
1
|
-
import { useQuery as
|
|
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
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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((
|
|
13
|
-
refetchInterval:
|
|
43
|
+
).then((i) => i.data),
|
|
44
|
+
refetchInterval: t
|
|
14
45
|
});
|
|
15
46
|
}
|
|
16
|
-
function
|
|
17
|
-
const e = r(), n =
|
|
18
|
-
return
|
|
19
|
-
mutationFn: () => e.request(
|
|
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
|
|
24
|
-
const e = r(), n =
|
|
25
|
-
return
|
|
26
|
-
mutationFn: (t) => e.request(
|
|
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
|
|
63
|
+
function N(e) {
|
|
33
64
|
const n = r();
|
|
34
|
-
return
|
|
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
|
|
73
|
+
function k(e) {
|
|
43
74
|
const n = r();
|
|
44
|
-
return
|
|
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
|
|
54
|
-
const e = r(), n =
|
|
55
|
-
return
|
|
56
|
-
mutationFn: (t) => e.request(
|
|
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
|
|
63
|
-
const e = r(), n =
|
|
93
|
+
function M() {
|
|
94
|
+
const e = r(), n = c();
|
|
64
95
|
return {
|
|
65
|
-
add:
|
|
66
|
-
mutationFn: (t) => e.request(
|
|
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:
|
|
70
|
-
mutationFn: (t) => e.request(
|
|
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 =
|
|
77
|
-
return
|
|
106
|
+
function Y() {
|
|
107
|
+
const e = r(), n = c();
|
|
108
|
+
return u({
|
|
78
109
|
mutationFn: (t) => e.request(
|
|
79
|
-
|
|
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
|
|
85
|
-
const e = r();
|
|
86
|
-
return
|
|
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((
|
|
91
|
-
refetchInterval:
|
|
121
|
+
).then((t) => t.data),
|
|
122
|
+
refetchInterval: n
|
|
92
123
|
});
|
|
93
124
|
}
|
|
94
|
-
function
|
|
125
|
+
function z(e) {
|
|
95
126
|
const n = r();
|
|
96
|
-
return
|
|
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
|
|
133
|
+
function G(e, n) {
|
|
103
134
|
const t = r();
|
|
104
|
-
return
|
|
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
|
|
112
|
-
function
|
|
113
|
-
const n = r();
|
|
114
|
-
return
|
|
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:
|
|
126
|
-
const
|
|
127
|
-
return e.provider &&
|
|
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: (
|
|
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:
|
|
133
|
-
refetchInterval:
|
|
163
|
+
placeholderData: g,
|
|
164
|
+
refetchInterval: t
|
|
134
165
|
});
|
|
135
166
|
}
|
|
136
|
-
function
|
|
167
|
+
function O(e) {
|
|
137
168
|
return "chainId" in e ? `chain:${e.chainId}` : `${e.source}:${e.id}`;
|
|
138
169
|
}
|
|
139
|
-
function
|
|
140
|
-
var
|
|
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
|
|
143
|
-
queryKey: t ? ["integration-event-path", "chain", t] : ["integration-event-path", i == null ? void 0 : i.source, i == null ? void 0 : i.id, (
|
|
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
|
|
177
|
+
let y;
|
|
147
178
|
if (t)
|
|
148
|
-
|
|
179
|
+
y = `/integration-events/chain/${encodeURIComponent(t)}/path`;
|
|
149
180
|
else if (i != null && i.record)
|
|
150
|
-
|
|
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
|
-
|
|
183
|
+
y = `/integration-events/${encodeURIComponent(i.source)}/${encodeURIComponent(i.id)}/path`;
|
|
153
184
|
else
|
|
154
185
|
return null;
|
|
155
|
-
return (await n.request(s(
|
|
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
|
|
193
|
+
function W(e, n, t) {
|
|
163
194
|
const i = r();
|
|
164
|
-
return
|
|
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:
|
|
203
|
+
placeholderData: g
|
|
173
204
|
});
|
|
174
205
|
}
|
|
175
|
-
function
|
|
176
|
-
const e = r(), n =
|
|
177
|
-
return
|
|
206
|
+
function j() {
|
|
207
|
+
const e = r(), n = c();
|
|
208
|
+
return u({
|
|
178
209
|
mutationFn: (t) => e.request(
|
|
179
|
-
|
|
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
|
|
187
|
-
function
|
|
217
|
+
const h = ["integration-signal-settings"], f = ["integration-signal-subscriptions"];
|
|
218
|
+
function J() {
|
|
188
219
|
const e = r();
|
|
189
|
-
return
|
|
190
|
-
queryKey:
|
|
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
|
|
195
|
-
const e = r(), n =
|
|
196
|
-
return
|
|
225
|
+
function X() {
|
|
226
|
+
const e = r(), n = c();
|
|
227
|
+
return u({
|
|
197
228
|
mutationFn: (t) => e.request(
|
|
198
|
-
|
|
229
|
+
K(`/integration-signals/settings/${encodeURIComponent(t.signal)}`, t.values)
|
|
199
230
|
),
|
|
200
231
|
onSettled: () => {
|
|
201
|
-
n.invalidateQueries({ queryKey:
|
|
232
|
+
n.invalidateQueries({ queryKey: h }), n.invalidateQueries({ queryKey: ["integration-signals"] }), n.invalidateQueries({ queryKey: $ });
|
|
202
233
|
}
|
|
203
234
|
});
|
|
204
235
|
}
|
|
205
|
-
function
|
|
236
|
+
function Z(e, n) {
|
|
206
237
|
const t = r();
|
|
207
|
-
return
|
|
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:
|
|
244
|
+
placeholderData: g,
|
|
214
245
|
staleTime: 3e4,
|
|
215
246
|
retry: !1
|
|
216
247
|
});
|
|
217
248
|
}
|
|
218
|
-
function
|
|
249
|
+
function ee() {
|
|
219
250
|
const e = r();
|
|
220
|
-
return
|
|
221
|
-
queryKey:
|
|
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
|
|
226
|
-
const e = r(), n =
|
|
227
|
-
return
|
|
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
|
-
|
|
231
|
-
) : t.id != null && await e.request(
|
|
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:
|
|
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
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
T as
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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
|
|
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
|
-
},
|
|
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
|
|
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
|
|
41
|
-
const r =
|
|
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
|
|
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(
|
|
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
|
-
|
|
74
|
+
_ as TONE_BORDER,
|
|
72
75
|
u as TONE_FILL,
|
|
73
76
|
m as TONE_SOFT,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
};
|