@nivaro/react 0.3.116 → 0.3.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +140 -14
- package/dist/index.js +488 -485
- package/dist/shared/components/ActivityEntry.js +130 -125
- package/dist/shared/components/AgentPresenceChip.js +36 -26
- package/dist/shared/components/CellCopyLayer.js +50 -45
- package/dist/shared/components/CollectionBrowserView.js +3855 -3785
- package/dist/shared/components/FilePreviewLightbox.js +96 -58
- package/dist/shared/components/InStep.js +18 -17
- package/dist/shared/components/ItemEditForm.js +4220 -4175
- package/dist/shared/components/JobsTray.js +8 -8
- package/dist/shared/components/LiveNewMatchesPill.js +21 -14
- package/dist/shared/components/LiveOffNote.js +3 -2
- package/dist/shared/components/LiveRowMark.js +53 -23
- package/dist/shared/components/LiveTraceView.js +162 -123
- package/dist/shared/components/MyWorkView.js +320 -299
- package/dist/shared/components/NotificationBell.js +14 -14
- package/dist/shared/components/OverflowRail.js +1 -1
- package/dist/shared/components/PageRenderer.js +120 -116
- package/dist/shared/components/ProfileView.js +203 -202
- package/dist/shared/components/RealtimeStatusBanner.js +31 -29
- package/dist/shared/components/RecordDrilldownSheet.js +7 -7
- package/dist/shared/components/RecordHoverCard.js +102 -84
- package/dist/shared/components/RecordReadView.js +146 -146
- package/dist/shared/components/ReportView.js +1086 -1091
- package/dist/shared/components/ScreenRefreshButton.js +34 -32
- package/dist/shared/components/TipLayer.js +65 -58
- package/dist/shared/components/WidgetImageMenu.js +83 -43
- package/dist/shared/components/activity/RecordActivityStream.js +175 -173
- package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
- package/dist/shared/components/cbv/column-totals.js +62 -57
- package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
- package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
- package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
- package/dist/shared/components/charts/category-axis.js +93 -0
- package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
- package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
- package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
- package/dist/shared/components/collections-directory/page-model.js +72 -67
- package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
- package/dist/shared/components/integrations/SendStatus.js +65 -59
- package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
- package/dist/shared/components/integrations/console/SignalCard.js +237 -230
- package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
- package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +131 -92
- package/dist/shared/components/item-edit/CloneDialog.js +191 -161
- package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
- package/dist/shared/components/item-edit/FieldComments.js +54 -53
- package/dist/shared/components/item-edit/FieldPointer.js +82 -67
- package/dist/shared/components/item-edit/FieldRow.js +106 -100
- package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
- package/dist/shared/components/item-edit/FilePickerField.js +452 -387
- package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
- package/dist/shared/components/item-edit/HeaderTools.js +94 -85
- package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
- package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
- package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
- package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
- package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
- package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
- package/dist/shared/components/item-edit/RecalcValue.js +57 -32
- package/dist/shared/components/item-edit/RecordHelpChip.js +21 -22
- package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
- package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
- package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
- package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
- package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
- package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
- package/dist/shared/components/item-edit/SectionPresence.js +18 -10
- package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
- package/dist/shared/components/item-edit/UserChip.js +1 -1
- package/dist/shared/components/item-edit/file-live.js +69 -54
- package/dist/shared/components/item-edit/layout-switch.js +98 -89
- package/dist/shared/components/item-edit/partner-needs.js +12 -12
- package/dist/shared/components/item-edit/removed-line.js +31 -25
- package/dist/shared/components/layout-editor/pickers/field-picker.js +112 -104
- package/dist/shared/components/list/ListViewers.js +46 -35
- package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
- package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
- package/dist/shared/components/panels/AlertBanners.js +82 -72
- package/dist/shared/components/panels/BranchLanes.js +22 -22
- package/dist/shared/components/panels/CommentImages.js +123 -102
- package/dist/shared/components/panels/CommentPanel.js +186 -185
- package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
- package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
- package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
- package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
- package/dist/shared/components/pipeline/BindingStartStateSettings.js +163 -0
- package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
- package/dist/shared/components/pipeline/PipelineEditorView.js +320 -299
- package/dist/shared/components/profile/AgentNameField.js +107 -81
- package/dist/shared/components/profile/AgentsPanel.js +184 -184
- package/dist/shared/components/profile/PersonAccess.js +599 -495
- package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
- package/dist/shared/components/profile/SignedInDevices.js +17 -17
- package/dist/shared/components/profile/primitives.js +1 -1
- package/dist/shared/components/queue/OwnerAvatars.js +91 -54
- package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
- package/dist/shared/components/queue/QueueWorklist.js +1002 -983
- package/dist/shared/components/support/AssignRules.js +1733 -0
- package/dist/shared/components/support/PersonPick.js +88 -0
- package/dist/shared/components/support/RequestList.js +790 -0
- package/dist/shared/components/support/ScreenShare.js +158 -152
- package/dist/shared/components/support/SupportRequestDialog.js +50 -48
- package/dist/shared/components/support/SupportView.js +140 -246
- package/dist/shared/components/support/TicketDetailSheet.js +82 -75
- package/dist/shared/components/support/TicketSlowScreens.js +9 -9
- package/dist/shared/components/support/assign-rules-text.js +171 -0
- package/dist/shared/components/support/support-list.js +125 -0
- package/dist/shared/components/ui/SimpleSelect.js +28 -20
- package/dist/shared/components/ui/checkbox.js +6 -6
- package/dist/shared/components/ui/select.js +43 -39
- package/dist/shared/components/ui/sheet.js +9 -9
- package/dist/shared/components/ui/switch.js +12 -11
- package/dist/shared/components/watch-list/WatchDock.js +532 -459
- package/dist/shared/components/watch-list/WatchExtras.js +332 -286
- package/dist/shared/components/watch-list/WatchRows.js +164 -140
- package/dist/shared/lib/activity-sentence.js +103 -91
- package/dist/shared/lib/agent-presence.js +27 -21
- package/dist/shared/lib/approval-progress.js +2 -2
- package/dist/shared/lib/copy-rules.js +31 -24
- package/dist/shared/lib/derived-causes.js +113 -78
- package/dist/shared/lib/grid-cursors.js +26 -26
- package/dist/shared/lib/label-flash.js +27 -0
- package/dist/shared/lib/list-return.js +137 -125
- package/dist/shared/lib/live-deltas.js +40 -34
- package/dist/shared/lib/live-groups.js +56 -52
- package/dist/shared/lib/live-preference.js +64 -59
- package/dist/shared/lib/live-screen.js +223 -192
- package/dist/shared/lib/partner-failure.js +11 -11
- package/dist/shared/lib/rollup-recalc.js +68 -64
- package/dist/shared/lib/screen-refresh.js +74 -68
- package/dist/shared/lib/screen-share.js +108 -104
- package/dist/shared/lib/send-status.js +77 -61
- package/dist/shared/lib/text-diff-window.js +29 -0
- package/dist/shared/lib/use-query-entry.js +17 -0
- package/dist/shared/lib/watch-list.js +210 -209
- package/dist/shared/lib/widget-image-render.js +72 -49
- package/package.json +1 -1
|
@@ -1,119 +1,120 @@
|
|
|
1
|
-
import { jsxs as r, jsx as
|
|
2
|
-
import { useQueryClient as
|
|
3
|
-
import { Pencil as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useNivaroClient as
|
|
6
|
-
import { patch as
|
|
7
|
-
import { userErrorMessage as
|
|
8
|
-
import { cn as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useQueryClient as D, useMutation as M } from "@tanstack/react-query";
|
|
3
|
+
import { Pencil as $, Loader2 as j, Check as q } from "lucide-react";
|
|
4
|
+
import { useState as y, useRef as F, useId as U, useEffect as I } from "react";
|
|
5
|
+
import { useNivaroClient as K } from "../../context.js";
|
|
6
|
+
import { patch as L } from "../../lib/commands.js";
|
|
7
|
+
import { userErrorMessage as O } from "../../lib/safe-error.js";
|
|
8
|
+
import { cn as u } from "../../lib/utils.js";
|
|
9
|
+
import { Popover as Q, PopoverAnchor as T, PopoverContent as _ } from "../ui/popover.js";
|
|
10
|
+
const G = 40;
|
|
11
|
+
function ee({
|
|
12
|
+
conn: m,
|
|
13
|
+
displayName: o,
|
|
14
|
+
customName: p,
|
|
14
15
|
appName: s,
|
|
15
|
-
forName:
|
|
16
|
-
scope:
|
|
17
|
-
trailing:
|
|
18
|
-
|
|
16
|
+
forName: N,
|
|
17
|
+
scope: C,
|
|
18
|
+
trailing: P,
|
|
19
|
+
editIn: l = "inline",
|
|
20
|
+
className: h
|
|
19
21
|
}) {
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const e =
|
|
23
|
-
!
|
|
24
|
-
}, [
|
|
25
|
-
const
|
|
26
|
-
mutationFn: (e) =>
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
const R = K(), A = D(), [a, c] = y(!1), [f, x] = y(o), v = F(null), b = U();
|
|
23
|
+
I(() => {
|
|
24
|
+
const e = v.current;
|
|
25
|
+
!a || !e || (e.focus(), e.setSelectionRange(e.value.length, e.value.length));
|
|
26
|
+
}, [a]);
|
|
27
|
+
const n = M({
|
|
28
|
+
mutationFn: (e) => R.request(
|
|
29
|
+
L(
|
|
30
|
+
C === "mine" ? `/mcp-connections/mine/${encodeURIComponent(m)}/name` : `/mcp-connections/${encodeURIComponent(m)}/name`,
|
|
29
31
|
{ name: e }
|
|
30
32
|
)
|
|
31
33
|
),
|
|
32
34
|
onSuccess: () => {
|
|
33
|
-
|
|
35
|
+
c(!1), A.invalidateQueries({ queryKey: ["nvr-mcp-connections"] });
|
|
34
36
|
}
|
|
35
|
-
}), i =
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"button",
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
y
|
|
62
|
-
] });
|
|
63
|
-
const E = i || s;
|
|
64
|
-
return /* @__PURE__ */ r(
|
|
37
|
+
}), i = f.trim(), g = i === o, E = () => {
|
|
38
|
+
x(o), n.reset(), c(!0);
|
|
39
|
+
}, d = () => {
|
|
40
|
+
c(!1), n.reset();
|
|
41
|
+
}, w = /* @__PURE__ */ r("span", { className: u("inline-flex min-w-0 items-center gap-1", h), children: [
|
|
42
|
+
/* @__PURE__ */ t(
|
|
43
|
+
"span",
|
|
44
|
+
{
|
|
45
|
+
className: "truncate text-[13px] font-semibold text-slate-800 dark:text-slate-100",
|
|
46
|
+
"data-tip": p ? `Named by its owner or an administrator · app: ${s}` : void 0,
|
|
47
|
+
children: o
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ t(
|
|
51
|
+
"button",
|
|
52
|
+
{
|
|
53
|
+
type: "button",
|
|
54
|
+
onClick: E,
|
|
55
|
+
"aria-label": `Rename ${o}`,
|
|
56
|
+
"data-tip": "Rename — the name records and notifications show for this agent",
|
|
57
|
+
className: "inline-flex h-6 w-6 shrink-0 items-center justify-center rounded text-slate-400 transition-colors hover:bg-muted hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/40 dark:text-slate-500 dark:hover:text-slate-200",
|
|
58
|
+
children: /* @__PURE__ */ t($, { className: "h-3.5 w-3.5", "aria-hidden": !0 })
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
P
|
|
62
|
+
] }), S = i || s, k = /* @__PURE__ */ r(
|
|
65
63
|
"form",
|
|
66
64
|
{
|
|
67
|
-
className:
|
|
65
|
+
className: u("flex w-full min-w-0 flex-col gap-1", l === "inline" && h),
|
|
68
66
|
"data-nvr-agent-name-edit": !0,
|
|
69
67
|
onSubmit: (e) => {
|
|
70
|
-
e.preventDefault(), !(
|
|
68
|
+
e.preventDefault(), !(g || !i) && n.mutate(i);
|
|
71
69
|
},
|
|
72
70
|
children: [
|
|
73
71
|
/* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
74
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ t(
|
|
75
73
|
"input",
|
|
76
74
|
{
|
|
77
|
-
ref:
|
|
78
|
-
value:
|
|
79
|
-
maxLength:
|
|
80
|
-
onChange: (e) =>
|
|
75
|
+
ref: v,
|
|
76
|
+
value: f,
|
|
77
|
+
maxLength: G,
|
|
78
|
+
onChange: (e) => x(e.target.value),
|
|
81
79
|
onKeyDown: (e) => {
|
|
82
|
-
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(),
|
|
80
|
+
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), d());
|
|
83
81
|
},
|
|
84
82
|
"aria-label": "Agent name",
|
|
85
|
-
"aria-describedby":
|
|
86
|
-
className:
|
|
83
|
+
"aria-describedby": b,
|
|
84
|
+
className: u(
|
|
85
|
+
"h-8 min-w-0 rounded-md border border-slate-200 bg-white px-2 text-[13px] text-slate-800 outline-none transition-colors focus:border-nvr-cyan focus-visible:ring-2 focus-visible:ring-nvr-cyan/25 dark:border-border dark:bg-background dark:text-slate-100",
|
|
86
|
+
l === "popover" ? "w-full basis-full" : "w-48"
|
|
87
|
+
)
|
|
87
88
|
}
|
|
88
89
|
),
|
|
89
90
|
/* @__PURE__ */ r(
|
|
90
91
|
"button",
|
|
91
92
|
{
|
|
92
93
|
type: "submit",
|
|
93
|
-
disabled:
|
|
94
|
+
disabled: g || !i || n.isPending,
|
|
94
95
|
className: "inline-flex h-8 items-center gap-1 rounded-md bg-nvr-cyan px-2.5 text-[12px] font-medium text-white transition-colors hover:bg-nvr-cyan/90 disabled:opacity-40",
|
|
95
96
|
children: [
|
|
96
|
-
|
|
97
|
+
n.isPending ? /* @__PURE__ */ t(j, { className: "h-3.5 w-3.5 animate-spin", "aria-hidden": !0 }) : /* @__PURE__ */ t(q, { className: "h-3.5 w-3.5", "aria-hidden": !0 }),
|
|
97
98
|
"Save"
|
|
98
99
|
]
|
|
99
100
|
}
|
|
100
101
|
),
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ t(
|
|
102
103
|
"button",
|
|
103
104
|
{
|
|
104
105
|
type: "button",
|
|
105
|
-
onClick:
|
|
106
|
+
onClick: d,
|
|
106
107
|
className: "h-8 rounded-md px-2 text-[12px] font-medium text-slate-600 transition-colors hover:bg-muted hover:text-slate-900 dark:text-slate-300 dark:hover:text-white",
|
|
107
108
|
children: "Cancel"
|
|
108
109
|
}
|
|
109
110
|
),
|
|
110
|
-
|
|
111
|
+
p && /* @__PURE__ */ r(
|
|
111
112
|
"button",
|
|
112
113
|
{
|
|
113
114
|
type: "button",
|
|
114
|
-
disabled:
|
|
115
|
-
onClick: () =>
|
|
116
|
-
className: "h-8 rounded-md px-2 text-[12px] font-medium text-slate-
|
|
115
|
+
disabled: n.isPending,
|
|
116
|
+
onClick: () => n.mutate(null),
|
|
117
|
+
className: "h-8 rounded-md border border-slate-200 px-2.5 text-[12px] font-medium text-slate-600 transition-colors hover:bg-muted hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/40 disabled:opacity-40 dark:border-border dark:text-slate-300 dark:hover:text-white",
|
|
117
118
|
children: [
|
|
118
119
|
"Use “",
|
|
119
120
|
s,
|
|
@@ -122,20 +123,45 @@ function B({
|
|
|
122
123
|
}
|
|
123
124
|
)
|
|
124
125
|
] }),
|
|
125
|
-
/* @__PURE__ */ r("p", { id:
|
|
126
|
+
/* @__PURE__ */ r("p", { id: b, className: "text-[11.5px] leading-snug text-slate-500 dark:text-slate-400", children: [
|
|
126
127
|
"Records it works on show “",
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ t("span", { className: "font-medium text-slate-700 dark:text-slate-200", children: S }),
|
|
128
129
|
" (for",
|
|
129
130
|
" ",
|
|
130
|
-
|
|
131
|
+
N,
|
|
131
132
|
") is updating this record”.",
|
|
132
|
-
|
|
133
|
+
n.isError && /* @__PURE__ */ t("span", { role: "alert", className: "ml-1 text-red-600 dark:text-red-400", children: O(n.error, "The name could not be saved") })
|
|
133
134
|
] })
|
|
134
135
|
]
|
|
135
136
|
}
|
|
136
137
|
);
|
|
138
|
+
return l === "popover" ? /* @__PURE__ */ r(
|
|
139
|
+
Q,
|
|
140
|
+
{
|
|
141
|
+
open: a,
|
|
142
|
+
onOpenChange: (e) => {
|
|
143
|
+
e || d();
|
|
144
|
+
},
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ t(T, { asChild: !0, children: w }),
|
|
147
|
+
/* @__PURE__ */ r(
|
|
148
|
+
_,
|
|
149
|
+
{
|
|
150
|
+
align: "start",
|
|
151
|
+
collisionPadding: 16,
|
|
152
|
+
className: "w-[min(360px,calc(100vw-2rem))] p-3",
|
|
153
|
+
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
154
|
+
children: [
|
|
155
|
+
/* @__PURE__ */ t("p", { className: "mb-2 text-[12px] font-medium text-slate-700 dark:text-slate-200", children: "Rename this agent" }),
|
|
156
|
+
k
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
) : a ? k : w;
|
|
137
163
|
}
|
|
138
164
|
export {
|
|
139
|
-
|
|
140
|
-
|
|
165
|
+
G as AGENT_NAME_MAX,
|
|
166
|
+
ee as AgentNameField
|
|
141
167
|
};
|