@nivaro/react 0.3.117 → 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 +136 -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 +3757 -3695
- 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/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/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/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/OwnerMatrixSheet.js +400 -288
- package/dist/shared/components/pipeline/PipelineEditorView.js +7 -2
- 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/watch-list.js +210 -209
- package/dist/shared/lib/widget-image-render.js +72 -49
- package/package.json +1 -1
|
@@ -1,46 +1,71 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useLivePreference as
|
|
1
|
+
import { jsx as a, Fragment as p, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { useLivePreference as m } from "../../lib/live-preference.js";
|
|
3
3
|
import { cn as t } from "../../lib/utils.js";
|
|
4
|
-
function
|
|
5
|
-
if (!
|
|
6
|
-
const e =
|
|
4
|
+
function g(n) {
|
|
5
|
+
if (!n || typeof n != "object") return null;
|
|
6
|
+
const e = n.__recalc;
|
|
7
7
|
return e === "pending" || e === "landed" ? e : null;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
state:
|
|
9
|
+
function h({
|
|
10
|
+
state: n,
|
|
11
11
|
children: e,
|
|
12
|
-
className:
|
|
13
|
-
inline:
|
|
12
|
+
className: i,
|
|
13
|
+
inline: s
|
|
14
14
|
}) {
|
|
15
|
-
const { quiet:
|
|
16
|
-
|
|
15
|
+
const { quiet: d } = m();
|
|
16
|
+
if (n === "landed")
|
|
17
|
+
return /* @__PURE__ */ a(
|
|
18
|
+
"span",
|
|
19
|
+
{
|
|
20
|
+
"data-recalc": "landed",
|
|
21
|
+
className: t(
|
|
22
|
+
"nvr-value-pulse",
|
|
23
|
+
// Header strip: keep the value line's own gap (figure · Σ).
|
|
24
|
+
s && "inline-flex min-w-0 items-baseline gap-x-1.5",
|
|
25
|
+
i
|
|
26
|
+
),
|
|
27
|
+
children: e
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
if (n !== "pending") return /* @__PURE__ */ a(p, { children: e });
|
|
31
|
+
const l = "Updating — this total is being recalculated from the lines", o = /* @__PURE__ */ a(
|
|
32
|
+
"span",
|
|
33
|
+
{
|
|
34
|
+
"aria-hidden": !0,
|
|
35
|
+
className: t(
|
|
36
|
+
"h-1.5 w-1.5 shrink-0 rounded-full bg-nvr-cyan",
|
|
37
|
+
// Calm / Off: the state shows, it does not move.
|
|
38
|
+
!d && "motion-safe:animate-pulse"
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
), c = "min-w-0 text-slate-500 dark:text-slate-400 [&_*]:!text-inherit transition-colors duration-200";
|
|
42
|
+
return s ? /* @__PURE__ */ r(
|
|
43
|
+
"span",
|
|
44
|
+
{
|
|
45
|
+
"data-recalc": "pending",
|
|
46
|
+
"aria-busy": "true",
|
|
47
|
+
"data-tip": l,
|
|
48
|
+
className: t("inline-flex min-w-0 items-baseline gap-x-1.5", c, i),
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ a("span", { className: "inline-flex min-w-0 items-baseline gap-x-1.5 underline decoration-nvr-cyan decoration-dotted decoration-2 underline-offset-[3px]", children: e }),
|
|
51
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: "Updating…" })
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
) : /* @__PURE__ */ r(
|
|
17
55
|
"span",
|
|
18
56
|
{
|
|
19
57
|
"data-recalc": "pending",
|
|
20
58
|
"aria-busy": "true",
|
|
21
|
-
className: t("inline-flex min-w-0 items-center gap-1.5",
|
|
59
|
+
className: t("inline-flex min-w-0 items-center gap-1.5", i),
|
|
22
60
|
children: [
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ a("span", { className: c, children: e }),
|
|
62
|
+
/* @__PURE__ */ r(
|
|
25
63
|
"span",
|
|
26
64
|
{
|
|
27
|
-
className:
|
|
28
|
-
|
|
29
|
-
l ? "text-[10px]" : "text-[11px]"
|
|
30
|
-
),
|
|
31
|
-
"data-tip": "The lines changed — this total is being recalculated",
|
|
65
|
+
className: "inline-flex shrink-0 items-center gap-1 whitespace-nowrap text-[11px] font-medium text-slate-500 dark:text-slate-400",
|
|
66
|
+
"data-tip": l,
|
|
32
67
|
children: [
|
|
33
|
-
|
|
34
|
-
"span",
|
|
35
|
-
{
|
|
36
|
-
"aria-hidden": !0,
|
|
37
|
-
className: t(
|
|
38
|
-
"h-1.5 w-1.5 rounded-full bg-nvr-cyan",
|
|
39
|
-
// Calm / Off: the state shows, it does not move.
|
|
40
|
-
!c && "motion-safe:animate-pulse"
|
|
41
|
-
)
|
|
42
|
-
}
|
|
43
|
-
),
|
|
68
|
+
o,
|
|
44
69
|
"Updating…"
|
|
45
70
|
]
|
|
46
71
|
}
|
|
@@ -50,6 +75,6 @@ function f({
|
|
|
50
75
|
);
|
|
51
76
|
}
|
|
52
77
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
78
|
+
h as RecalcValue,
|
|
79
|
+
g as recalcStateOf
|
|
55
80
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o, jsxs as g, Fragment as k } from "react/jsx-runtime";
|
|
2
2
|
import { useQueryClient as x, useQuery as v } from "@tanstack/react-query";
|
|
3
3
|
import { LifeBuoy as $ } from "lucide-react";
|
|
4
4
|
import { useNivaroClient as C, useNavigation as q } from "../../context.js";
|
|
@@ -9,11 +9,11 @@ const h = (e, t) => [
|
|
|
9
9
|
e,
|
|
10
10
|
t
|
|
11
11
|
];
|
|
12
|
-
function
|
|
12
|
+
function K(e) {
|
|
13
13
|
const t = Array.isArray(e == null ? void 0 : e.tickets) ? e.tickets[0] : void 0;
|
|
14
14
|
if (!e || !t) return null;
|
|
15
|
-
const i = e.tickets.length - 1, c = t.requested_by,
|
|
16
|
-
return i > 0 ? `${
|
|
15
|
+
const i = e.tickets.length - 1, c = t.requested_by, s = c ? `Help requested by ${c}` : "Help requested";
|
|
16
|
+
return i > 0 ? `${s} +${i}` : s;
|
|
17
17
|
}
|
|
18
18
|
function y(e) {
|
|
19
19
|
const t = e.tickets[0];
|
|
@@ -23,48 +23,47 @@ function y(e) {
|
|
|
23
23
|
}
|
|
24
24
|
function Q({ collection: e, itemId: t }) {
|
|
25
25
|
var f;
|
|
26
|
-
const i = C(), c = x(),
|
|
27
|
-
queryKey: h(e,
|
|
26
|
+
const i = C(), c = x(), s = q(), a = t && t !== "new" ? String(t) : null, { data: n } = v({
|
|
27
|
+
queryKey: h(e, a ?? ""),
|
|
28
28
|
queryFn: () => i.request(
|
|
29
|
-
N(`/support/record/${encodeURIComponent(e)}/${encodeURIComponent(
|
|
29
|
+
N(`/support/record/${encodeURIComponent(e)}/${encodeURIComponent(a ?? "")}`)
|
|
30
30
|
).then((r) => {
|
|
31
31
|
var b;
|
|
32
32
|
return Array.isArray((b = r == null ? void 0 : r.data) == null ? void 0 : b.tickets) ? r.data : null;
|
|
33
33
|
}).catch(() => null),
|
|
34
|
-
enabled: !!
|
|
34
|
+
enabled: !!a && !/^(nivaro_|directus_)/.test(e),
|
|
35
35
|
staleTime: 6e4,
|
|
36
36
|
retry: !1
|
|
37
37
|
});
|
|
38
|
-
w(e,
|
|
38
|
+
w(e, a, [h(e, a ?? "")], {
|
|
39
39
|
aspects: [A.support],
|
|
40
40
|
includeOwn: !0,
|
|
41
41
|
client: c
|
|
42
42
|
});
|
|
43
|
-
const d =
|
|
44
|
-
if (!
|
|
45
|
-
const l =
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */ a("span", { className: "sr-only sm:hidden", children: d })
|
|
43
|
+
const d = K(n);
|
|
44
|
+
if (!n || !d) return null;
|
|
45
|
+
const l = n.tickets[0], u = l ? ((f = s.consoleUrl) == null ? void 0 : f.call(s, `/support?ticket=${l.id}`)) ?? (s.consoleUrl ? null : `/support?ticket=${l.id}`) : null, p = "nvr-fade-in relative inline-flex max-w-[16rem] shrink-0 items-center gap-1 rounded-full border border-amber-200 bg-amber-50 px-1 py-1 text-[10.5px] font-medium text-amber-800 sm:px-2 sm:py-px dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-200", m = /* @__PURE__ */ g(k, { children: [
|
|
46
|
+
/* @__PURE__ */ o($, { className: "h-3 w-3 shrink-0 text-amber-700 dark:text-amber-300", "aria-hidden": !0 }),
|
|
47
|
+
/* @__PURE__ */ o("span", { className: "hidden truncate sm:inline", children: d }),
|
|
48
|
+
/* @__PURE__ */ o("span", { className: "sr-only sm:hidden", children: d })
|
|
50
49
|
] });
|
|
51
|
-
return u ? /* @__PURE__ */
|
|
50
|
+
return u ? /* @__PURE__ */ o(
|
|
52
51
|
"a",
|
|
53
52
|
{
|
|
54
53
|
href: u,
|
|
55
|
-
"data-record-help":
|
|
56
|
-
"data-tip": y(
|
|
54
|
+
"data-record-help": n.open,
|
|
55
|
+
"data-tip": y(n),
|
|
57
56
|
onClick: (r) => {
|
|
58
|
-
r.metaKey || r.ctrlKey || r.shiftKey || /^https?:/.test(u) || (r.preventDefault(),
|
|
57
|
+
r.metaKey || r.ctrlKey || r.shiftKey || /^https?:/.test(u) || (r.preventDefault(), s.navigate(u));
|
|
59
58
|
},
|
|
60
59
|
className: `${p} hover:bg-amber-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-400 dark:hover:bg-amber-500/20`,
|
|
61
60
|
children: m
|
|
62
61
|
}
|
|
63
|
-
) : /* @__PURE__ */
|
|
62
|
+
) : /* @__PURE__ */ o("span", { "data-record-help": n.open, "data-tip": y(n), className: p, children: m });
|
|
64
63
|
}
|
|
65
64
|
export {
|
|
66
65
|
Q as RecordHelpChip,
|
|
67
|
-
|
|
66
|
+
K as helpChipText,
|
|
68
67
|
y as helpChipTip,
|
|
69
68
|
h as recordHelpKey
|
|
70
69
|
};
|