@nivaro/react 0.2.54 → 0.2.56
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +99 -98
- package/dist/index.d.ts +367 -2
- package/dist/index.js +645 -616
- package/dist/layout-editor.d.ts +4 -0
- package/dist/shared/components/BackgroundRunOffer.js +117 -0
- package/dist/shared/components/BroadcastView.js +214 -213
- package/dist/shared/components/CollectionBrowserView.js +2592 -2695
- package/dist/shared/components/ItemEditForm.js +4066 -3832
- package/dist/shared/components/JobsTray.js +100 -55
- package/dist/shared/components/MyWorkView.js +91 -89
- package/dist/shared/components/NotificationBell.js +80 -79
- package/dist/shared/components/ProfileView.js +568 -520
- package/dist/shared/components/RecordCompare.js +254 -0
- package/dist/shared/components/RecordReadView.js +599 -552
- package/dist/shared/components/ReportView.js +578 -543
- package/dist/shared/components/RowPresence.js +91 -0
- package/dist/shared/components/WidgetSlot.js +474 -458
- package/dist/shared/components/ai/AiAnalyticsView.js +16 -6
- package/dist/shared/components/ai/AskPanel.js +139 -119
- package/dist/shared/components/ai/FirstWeekCard.js +126 -0
- package/dist/shared/components/bulk/BulkFieldUpdate.js +289 -0
- package/dist/shared/components/bulk/bulk-field-options.js +45 -0
- package/dist/shared/components/charts/CumulativeFlowChart.js +176 -0
- package/dist/shared/components/chat/ChannelArchive.js +326 -0
- package/dist/shared/components/chat/ChannelExtras.js +141 -121
- package/dist/shared/components/chat/ChatAnalyticsView.js +112 -110
- package/dist/shared/components/chat/ChatPanel.js +1695 -1733
- package/dist/shared/components/chat/Composer.js +357 -303
- package/dist/shared/components/chat/MessageActions.js +92 -0
- package/dist/shared/components/chat/MessageFormat.js +290 -264
- package/dist/shared/components/chat/OutboxBubbles.js +146 -0
- package/dist/shared/components/chat/RequestIdCard.js +135 -0
- package/dist/shared/components/chat/RoomHeaderMenu.js +202 -0
- package/dist/shared/components/chat/RoomParts.js +213 -274
- package/dist/shared/components/chat/ScreenClip.js +184 -0
- package/dist/shared/components/chat/chat-core.js +402 -483
- package/dist/shared/components/chat/chat-drafts.js +59 -0
- package/dist/shared/components/chat/chat-emoji.js +348 -0
- package/dist/shared/components/chat/chat-local-time.js +41 -0
- package/dist/shared/components/chat/chat-outbox.js +303 -0
- package/dist/shared/components/chat/chat-window.js +163 -0
- package/dist/shared/components/chat/huddle/HuddleControls.js +143 -0
- package/dist/shared/components/chat/huddle/HuddleStage.js +164 -0
- package/dist/shared/components/chat/huddle/huddle-store.js +342 -0
- package/dist/shared/components/chat/huddle/useHuddle.js +58 -0
- package/dist/shared/components/help-videos/api.js +76 -73
- package/dist/shared/components/item-edit/CatalogPickerField.js +113 -112
- package/dist/shared/components/item-edit/ChangeReasonDialog.js +13 -13
- package/dist/shared/components/item-edit/FieldAffordances.js +2 -2
- package/dist/shared/components/item-edit/FieldRenderer.js +248 -245
- package/dist/shared/components/item-edit/FieldRow.js +292 -279
- package/dist/shared/components/item-edit/GroupSection.js +698 -574
- package/dist/shared/components/item-edit/InlineTableField.js +3 -1
- package/dist/shared/components/item-edit/RelationCombobox.js +186 -176
- package/dist/shared/components/item-edit/entry/EntryStrip.js +54 -0
- package/dist/shared/components/item-edit/entry/entry-keys.js +27 -0
- package/dist/shared/components/item-edit/entry/useEntryKeyboard.js +70 -0
- package/dist/shared/components/item-edit/entry/useEntryMode.js +59 -0
- package/dist/shared/components/item-edit/form-structure-ui.js +105 -0
- package/dist/shared/components/item-edit/lazy-sections.js +36 -0
- package/dist/shared/components/item-edit/lock-why.js +39 -32
- package/dist/shared/components/item-edit/picker-miss.js +26 -0
- package/dist/shared/components/item-edit/placement-behaviour.js +196 -0
- package/dist/shared/components/item-edit/useFormUsageBeacon.js +51 -45
- package/dist/shared/components/layout-editor/AddPanel.js +134 -117
- package/dist/shared/components/layout-editor/ChangeNote.js +25 -24
- package/dist/shared/components/layout-editor/CollabParts.js +80 -75
- package/dist/shared/components/layout-editor/DesignNode.js +126 -120
- package/dist/shared/components/layout-editor/EditorCanvas.js +30 -27
- package/dist/shared/components/layout-editor/EditorTopBar.js +203 -192
- package/dist/shared/components/layout-editor/HistoryPanel.js +120 -104
- package/dist/shared/components/layout-editor/LayoutEditor.js +768 -671
- package/dist/shared/components/layout-editor/RestorePiece.js +143 -0
- package/dist/shared/components/layout-editor/StagedChip.js +22 -0
- package/dist/shared/components/layout-editor/StructureMenu.js +237 -186
- package/dist/shared/components/layout-editor/collab/FormFollowShare.js +149 -103
- package/dist/shared/components/layout-editor/collab/collab-api.js +29 -26
- package/dist/shared/components/layout-editor/dnd/LayoutDndProvider.js +81 -80
- package/dist/shared/components/layout-editor/dnd/node.js +69 -57
- package/dist/shared/components/layout-editor/draft-recovery.js +113 -43
- package/dist/shared/components/layout-editor/entry/PlacementPresets.js +149 -0
- package/dist/shared/components/layout-editor/entry/entry-editor-context.js +10 -0
- package/dist/shared/components/layout-editor/entry/presets.js +71 -0
- package/dist/shared/components/layout-editor/entry/tab-order.js +110 -0
- package/dist/shared/components/layout-editor/entry/theme-preview.js +37 -0
- package/dist/shared/components/layout-editor/grid-guides.js +142 -0
- package/dist/shared/components/layout-editor/inspector/BehaviourSettings.js +402 -0
- package/dist/shared/components/layout-editor/inspector/BulkInspector.js +61 -57
- package/dist/shared/components/layout-editor/inspector/GroupInspector.js +247 -151
- package/dist/shared/components/layout-editor/inspector/Inspector.js +176 -155
- package/dist/shared/components/layout-editor/inspector/LookTab.js +167 -116
- package/dist/shared/components/layout-editor/inspector/PickerMisses.js +129 -0
- package/dist/shared/components/layout-editor/inspector/PickerTab.js +84 -82
- package/dist/shared/components/layout-editor/inspector/RulesTab.js +66 -62
- package/dist/shared/components/layout-editor/inspector/kit.js +69 -68
- package/dist/shared/components/layout-editor/outputs/OutputsButton.js +254 -0
- package/dist/shared/components/layout-editor/outputs/help-sheet.js +154 -0
- package/dist/shared/components/layout-editor/outputs/output-api.js +61 -0
- package/dist/shared/components/layout-editor/overview/describe-conditions.js +6 -0
- package/dist/shared/components/layout-editor/overview/purpose.js +15 -13
- package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
- package/dist/shared/components/layout-editor/restore-piece.js +192 -0
- package/dist/shared/components/layout-editor/section-structure.js +241 -0
- package/dist/shared/components/layout-editor/settings/EntrySection.js +296 -0
- package/dist/shared/components/layout-editor/settings/FormSettings.js +41 -39
- package/dist/shared/components/layout-editor/settings/ResolveSettings.js +255 -0
- package/dist/shared/components/layout-editor/settings/ToolsSection.js +147 -111
- package/dist/shared/components/layout-editor/settings/WhoSection.js +29 -26
- package/dist/shared/components/layout-editor/settings/settings-registry.js +114 -17
- package/dist/shared/components/layout-editor/staged-api.js +64 -0
- package/dist/shared/components/layout-editor/structure-ops.js +81 -77
- package/dist/shared/components/layout-editor/testing/TestingPanels.js +65 -60
- package/dist/shared/components/layout-editor/testing/testing-model.js +198 -185
- package/dist/shared/components/layout-editor/toolbar-kit.js +11 -11
- package/dist/shared/components/layout-editor/usage/AbTestSection.js +355 -0
- package/dist/shared/components/layout-editor/usage/UsagePanel.js +144 -70
- package/dist/shared/components/layout-editor/usage/ab-api.js +86 -0
- package/dist/shared/components/layout-editor/usage/suggest-collapse.js +32 -0
- package/dist/shared/components/layout-editor/useLayoutDraft.js +25 -24
- package/dist/shared/components/notifications/NotificationAnalyticsView.js +148 -77
- package/dist/shared/components/panels/ErpFailureBanner.js +18 -17
- package/dist/shared/components/panels/ExternalRequestsChip.js +63 -62
- package/dist/shared/components/pipeline/PipelineEditorView.js +106 -104
- package/dist/shared/components/profile/AgentsPanel.js +479 -0
- package/dist/shared/components/queue/QueueWorklist.js +1026 -1040
- package/dist/shared/components/support/SupportAnalytics.js +171 -0
- package/dist/shared/components/support/SupportView.js +75 -73
- package/dist/shared/lib/background-runs.js +150 -0
- package/dist/shared/lib/delivery-ack.js +9 -0
- package/dist/shared/lib/entry-badge-style.js +13 -0
- package/dist/shared/lib/entry-config.js +71 -0
- package/dist/shared/lib/form-sections.js +64 -0
- package/dist/shared/lib/form-structure.js +99 -0
- package/dist/shared/lib/form-usage-beacon.js +101 -52
- package/dist/shared/lib/jobs-tray.js +25 -23
- package/dist/shared/lib/keyset-pager.js +37 -0
- package/dist/shared/lib/layout-ops.js +84 -82
- package/dist/shared/lib/layout-resolve.js +113 -0
- package/dist/shared/lib/placement-behaviour.js +144 -0
- package/dist/shared/lib/prefetch.js +149 -0
- package/dist/shared/lib/presence-hooks.js +199 -0
- package/dist/shared/lib/record-outbox.js +82 -81
- package/dist/shared/lib/replay-socket.js +93 -0
- package/dist/shared/lib/request-gate.js +51 -50
- package/dist/shared/lib/room-gaps.js +96 -0
- package/dist/shared/lib/search-log.js +27 -0
- package/dist/shared/lib/socket-realtime.js +101 -80
- package/dist/shared/lib/stale-chunk.js +60 -0
- package/dist/shared/lib/worker-socket.js +200 -0
- package/package.json +1 -1
|
@@ -1,73 +1,74 @@
|
|
|
1
1
|
import { jsxs as o, jsx as t, Fragment as E } from "react/jsx-runtime";
|
|
2
|
-
import { useQueryClient as K, useQuery as
|
|
3
|
-
import { Satellite as
|
|
4
|
-
import { useState as f, useEffect as
|
|
2
|
+
import { useQueryClient as K, useQuery as L, useMutation as O } from "@tanstack/react-query";
|
|
3
|
+
import { Satellite as p } from "lucide-react";
|
|
4
|
+
import { useState as f, useEffect as F } from "react";
|
|
5
5
|
import { toast as c } from "sonner";
|
|
6
|
-
import { useNivaroClient as
|
|
7
|
-
import { get as
|
|
6
|
+
import { useNivaroClient as T } from "../../context.js";
|
|
7
|
+
import { get as _, post as I } from "../../lib/commands.js";
|
|
8
8
|
import { integrationChipSummary as j } from "../../lib/integration-chip.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
9
|
+
import { useLiveRefetchInterval as B } from "../../lib/live-queries.js";
|
|
10
|
+
import { cn as y, formatRelative as M } from "../../lib/utils.js";
|
|
11
|
+
import { SubmissionRow as V } from "../integrations/console/SubmissionRow.js";
|
|
12
|
+
import { useRecordObligations as A, IntegrationStatusLines as H } from "../integrations/IntegrationStatusLines.js";
|
|
13
|
+
import { OutboundPreviewSection as J } from "../integrations/RecordIntegrationPreview.js";
|
|
14
|
+
import { Dialog as U, DialogContent as W, DialogHeader as z, DialogTitle as G, DialogBody as X } from "../ui/dialog.js";
|
|
15
|
+
import { RecordEventPathSheet as Y } from "./IntegrationActivitySection.js";
|
|
16
|
+
function ge({
|
|
16
17
|
collection: r,
|
|
17
|
-
itemId:
|
|
18
|
+
itemId: s
|
|
18
19
|
}) {
|
|
19
|
-
const k =
|
|
20
|
-
|
|
21
|
-
if (!g ||
|
|
22
|
-
const e = document.querySelector(`[data-submission-id="${
|
|
20
|
+
const k = T(), u = K(), [g, l] = f(!1), [v, N] = f(null), [m, w] = f(null);
|
|
21
|
+
F(() => {
|
|
22
|
+
if (!g || m == null) return;
|
|
23
|
+
const e = document.querySelector(`[data-submission-id="${m}"]`);
|
|
23
24
|
e == null || e.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
24
|
-
}, [g,
|
|
25
|
-
const { data:
|
|
26
|
-
queryKey: ["erp-submissions", r, String(
|
|
25
|
+
}, [g, m]);
|
|
26
|
+
const S = B(6e4), { data: C, isLoading: R } = L({
|
|
27
|
+
queryKey: ["erp-submissions", r, String(s)],
|
|
27
28
|
queryFn: () => k.request(
|
|
28
|
-
|
|
29
|
+
_(`/erp-submissions/${r}/${encodeURIComponent(s)}`)
|
|
29
30
|
).then((e) => e.data ?? []),
|
|
30
|
-
enabled: !!r && !!
|
|
31
|
+
enabled: !!r && !!s,
|
|
31
32
|
staleTime: 15e3,
|
|
32
|
-
refetchInterval:
|
|
33
|
-
}), h =
|
|
34
|
-
mutationFn: (e) => k.request(
|
|
33
|
+
refetchInterval: S
|
|
34
|
+
}), h = O({
|
|
35
|
+
mutationFn: (e) => k.request(I(`/erp-submissions/${e}/retry`)),
|
|
35
36
|
onSuccess: (e) => {
|
|
36
37
|
var q;
|
|
37
38
|
const i = (q = e == null ? void 0 : e.data) == null ? void 0 : q.status;
|
|
38
|
-
i && i !== "failed" ? c.success("Submission retried successfully") : c.error("Retry failed — expand the request for the error"), u.invalidateQueries({ queryKey: ["erp-submissions", r, String(
|
|
39
|
-
queryKey: ["integration-obligations", "record", r, String(
|
|
39
|
+
i && i !== "failed" ? c.success("Submission retried successfully") : c.error("Retry failed — expand the request for the error"), u.invalidateQueries({ queryKey: ["erp-submissions", r, String(s)] }), u.invalidateQueries({ queryKey: ["erp-submission-attempts"] }), u.invalidateQueries({
|
|
40
|
+
queryKey: ["integration-obligations", "record", r, String(s)]
|
|
40
41
|
});
|
|
41
42
|
},
|
|
42
43
|
onError: () => c.error("Retry failed")
|
|
43
44
|
}), {
|
|
44
45
|
lines: x,
|
|
45
|
-
remediationEnabled:
|
|
46
|
-
isLoading:
|
|
47
|
-
} =
|
|
48
|
-
if (
|
|
46
|
+
remediationEnabled: $,
|
|
47
|
+
isLoading: P
|
|
48
|
+
} = A(r, s), d = C ?? [];
|
|
49
|
+
if (R || P)
|
|
49
50
|
return /* @__PURE__ */ o(
|
|
50
51
|
"span",
|
|
51
52
|
{
|
|
52
53
|
className: "flex shrink-0 items-center gap-1.5 self-center rounded-md border border-slate-200 px-2 py-1 text-[11px] text-slate-400 dark:border-border",
|
|
53
54
|
"data-nvr-external-requests": "loading",
|
|
54
55
|
children: [
|
|
55
|
-
/* @__PURE__ */ t(
|
|
56
|
+
/* @__PURE__ */ t(p, { className: "h-3.5 w-3.5 opacity-60" }),
|
|
56
57
|
/* @__PURE__ */ t("span", { className: "h-2.5 w-16 animate-pulse rounded bg-[hsl(var(--nvr-skeleton))]" })
|
|
57
58
|
]
|
|
58
59
|
}
|
|
59
60
|
);
|
|
60
|
-
const
|
|
61
|
+
const a = j(x, d, (e) => e ? M(e) : ""), b = /* @__PURE__ */ new Map();
|
|
61
62
|
for (const e of d) {
|
|
62
63
|
const i = (e.external_api_name ?? (e.external_api != null ? `#${e.external_api}` : "External")).toLowerCase();
|
|
63
64
|
b.has(i) || b.set(i, { id: e.id, status: e.status });
|
|
64
65
|
}
|
|
65
|
-
const Q = d.length === 0 &&
|
|
66
|
+
const Q = d.length === 0 && a.partners.length === 0, D = {
|
|
66
67
|
ok: "bg-emerald-500",
|
|
67
68
|
attention: "bg-red-500",
|
|
68
69
|
pending: "bg-sky-500",
|
|
69
70
|
neutral: "bg-slate-400 dark:bg-slate-500"
|
|
70
|
-
}, n =
|
|
71
|
+
}, n = a.attention;
|
|
71
72
|
return /* @__PURE__ */ o(E, { children: [
|
|
72
73
|
Q ? /* @__PURE__ */ o(
|
|
73
74
|
"button",
|
|
@@ -78,7 +79,7 @@ function pe({
|
|
|
78
79
|
"data-nvr-external-requests": "none",
|
|
79
80
|
"data-tip": "Nothing from this record has been sent to an outside system yet. Click to see what the first push would carry.",
|
|
80
81
|
children: [
|
|
81
|
-
/* @__PURE__ */ t(
|
|
82
|
+
/* @__PURE__ */ t(p, { className: "h-3.5 w-3.5 opacity-60" }),
|
|
82
83
|
"No external requests"
|
|
83
84
|
]
|
|
84
85
|
}
|
|
@@ -88,7 +89,7 @@ function pe({
|
|
|
88
89
|
type: "button",
|
|
89
90
|
onClick: () => l(!0),
|
|
90
91
|
"data-nvr-external-requests": !0,
|
|
91
|
-
"data-integrations-ok":
|
|
92
|
+
"data-integrations-ok": a.ok,
|
|
92
93
|
"data-integrations-attention": n,
|
|
93
94
|
className: y(
|
|
94
95
|
"flex shrink-0 items-center gap-1.5 self-center rounded-md border px-2 py-1 text-[11px] font-medium transition-colors",
|
|
@@ -96,8 +97,8 @@ function pe({
|
|
|
96
97
|
),
|
|
97
98
|
title: n > 0 ? `${n} integration ${n === 1 ? "issue needs" : "issues need"} attention — click for details` : "Integrations for this record — partner status and every request sent",
|
|
98
99
|
children: [
|
|
99
|
-
/* @__PURE__ */ t(
|
|
100
|
-
|
|
100
|
+
/* @__PURE__ */ t(p, { className: y("h-3.5 w-3.5", n > 0 ? "text-red-500" : "text-nvr-cyan") }),
|
|
101
|
+
a.partners.length <= 3 ? a.partners.map((e) => /* @__PURE__ */ o(
|
|
101
102
|
"span",
|
|
102
103
|
{
|
|
103
104
|
className: "inline-flex items-center gap-1",
|
|
@@ -111,20 +112,20 @@ function pe({
|
|
|
111
112
|
},
|
|
112
113
|
e.name
|
|
113
114
|
)) : /* @__PURE__ */ t("span", { children: "Integrations" }),
|
|
114
|
-
|
|
115
|
+
a.ok > 0 && /* @__PURE__ */ t(
|
|
115
116
|
"span",
|
|
116
117
|
{
|
|
117
118
|
"data-integrations-badge": "ok",
|
|
118
119
|
className: "rounded bg-emerald-50 px-1 text-[10.5px] font-semibold text-emerald-700 dark:bg-emerald-500/10 dark:text-emerald-400",
|
|
119
|
-
children:
|
|
120
|
+
children: a.ok
|
|
120
121
|
}
|
|
121
122
|
),
|
|
122
|
-
|
|
123
|
+
a.pending > 0 && /* @__PURE__ */ t(
|
|
123
124
|
"span",
|
|
124
125
|
{
|
|
125
126
|
"data-integrations-badge": "pending",
|
|
126
127
|
className: "rounded bg-sky-50 px-1 text-[10.5px] font-semibold text-sky-700 dark:bg-sky-500/10 dark:text-sky-400",
|
|
127
|
-
children:
|
|
128
|
+
children: a.pending
|
|
128
129
|
}
|
|
129
130
|
),
|
|
130
131
|
n > 0 && /* @__PURE__ */ t(
|
|
@@ -138,14 +139,14 @@ function pe({
|
|
|
138
139
|
]
|
|
139
140
|
}
|
|
140
141
|
),
|
|
141
|
-
g && /* @__PURE__ */ t(
|
|
142
|
-
/* @__PURE__ */ t(
|
|
143
|
-
/* @__PURE__ */ t(
|
|
142
|
+
g && /* @__PURE__ */ t(U, { open: !0, onOpenChange: (e) => !e && l(!1), children: /* @__PURE__ */ o(W, { className: "p-5", style: { width: "75%", maxWidth: "75%" }, children: [
|
|
143
|
+
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ o(G, { className: "flex items-center gap-2 text-[15px]", children: [
|
|
144
|
+
/* @__PURE__ */ t(p, { className: "h-4 w-4 text-nvr-cyan" }),
|
|
144
145
|
"Integrations",
|
|
145
146
|
/* @__PURE__ */ o("span", { className: "text-[12px] font-normal text-slate-400", children: [
|
|
146
|
-
|
|
147
|
+
a.partners.length,
|
|
147
148
|
" partner",
|
|
148
|
-
|
|
149
|
+
a.partners.length !== 1 ? "s" : "",
|
|
149
150
|
" ·",
|
|
150
151
|
" ",
|
|
151
152
|
d.length,
|
|
@@ -160,12 +161,12 @@ function pe({
|
|
|
160
161
|
] })
|
|
161
162
|
] })
|
|
162
163
|
] }) }),
|
|
163
|
-
/* @__PURE__ */ o(
|
|
164
|
+
/* @__PURE__ */ o(X, { className: "max-h-[65vh] space-y-2 overflow-y-auto", children: [
|
|
164
165
|
/* @__PURE__ */ t(
|
|
165
|
-
|
|
166
|
+
J,
|
|
166
167
|
{
|
|
167
168
|
collection: r,
|
|
168
|
-
itemId: String(
|
|
169
|
+
itemId: String(s),
|
|
169
170
|
onShowRequest: (e) => w(e),
|
|
170
171
|
onJump: () => l(!1)
|
|
171
172
|
}
|
|
@@ -173,12 +174,12 @@ function pe({
|
|
|
173
174
|
x.length > 0 && /* @__PURE__ */ o("div", { className: "space-y-1.5 pb-2", "data-integrations-partner-status": !0, children: [
|
|
174
175
|
/* @__PURE__ */ t("p", { className: "text-[10.5px] font-semibold uppercase tracking-wide text-slate-400", children: "Partner status" }),
|
|
175
176
|
/* @__PURE__ */ t(
|
|
176
|
-
|
|
177
|
+
H,
|
|
177
178
|
{
|
|
178
179
|
collection: r,
|
|
179
|
-
itemId:
|
|
180
|
+
itemId: s,
|
|
180
181
|
lines: x,
|
|
181
|
-
remediationEnabled:
|
|
182
|
+
remediationEnabled: $,
|
|
182
183
|
actions: {
|
|
183
184
|
newestSubmissionByApi: b,
|
|
184
185
|
onRetry: (e) => h.mutate(e),
|
|
@@ -189,10 +190,10 @@ function pe({
|
|
|
189
190
|
"integration-obligations",
|
|
190
191
|
"record",
|
|
191
192
|
r,
|
|
192
|
-
String(
|
|
193
|
+
String(s)
|
|
193
194
|
]
|
|
194
195
|
}), u.invalidateQueries({
|
|
195
|
-
queryKey: ["erp-submissions", r, String(
|
|
196
|
+
queryKey: ["erp-submissions", r, String(s)]
|
|
196
197
|
}), c.message("Checking with the partner status…");
|
|
197
198
|
},
|
|
198
199
|
// The pipeline panel takes over (save, requirements
|
|
@@ -205,27 +206,27 @@ function pe({
|
|
|
205
206
|
d.length > 0 && /* @__PURE__ */ t("p", { className: "pt-1 text-[10.5px] font-semibold uppercase tracking-wide text-slate-400", children: "Requests sent" }),
|
|
206
207
|
d.length === 0 && /* @__PURE__ */ t("p", { className: "text-[12px] text-slate-500 dark:text-muted-foreground", children: "No request has been sent from this record yet." }),
|
|
207
208
|
d.map((e) => /* @__PURE__ */ t(
|
|
208
|
-
|
|
209
|
+
V,
|
|
209
210
|
{
|
|
210
211
|
sub: e,
|
|
211
|
-
initialOpen:
|
|
212
|
+
initialOpen: m === e.id,
|
|
212
213
|
onRetry: (i) => h.mutate(i),
|
|
213
214
|
retrying: h.isPending,
|
|
214
215
|
onShowPath: (i) => {
|
|
215
216
|
l(!1), N(i);
|
|
216
217
|
}
|
|
217
218
|
},
|
|
218
|
-
`${e.id}:${
|
|
219
|
+
`${e.id}:${m === e.id ? "focus" : ""}`
|
|
219
220
|
))
|
|
220
221
|
] })
|
|
221
222
|
] }) }),
|
|
222
223
|
/* @__PURE__ */ t(
|
|
223
|
-
|
|
224
|
+
Y,
|
|
224
225
|
{
|
|
225
226
|
target: v != null ? {
|
|
226
227
|
source: "core:outbound",
|
|
227
228
|
id: String(v),
|
|
228
|
-
record: { collection: r, item: String(
|
|
229
|
+
record: { collection: r, item: String(s) }
|
|
229
230
|
} : null,
|
|
230
231
|
onClose: () => N(null)
|
|
231
232
|
}
|
|
@@ -233,5 +234,5 @@ function pe({
|
|
|
233
234
|
] });
|
|
234
235
|
}
|
|
235
236
|
export {
|
|
236
|
-
|
|
237
|
+
ge as ExternalRequestsChip
|
|
237
238
|
};
|