@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,52 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import { UploadCloud as o } from "lucide-react";
|
|
3
3
|
import { useClaimUploadField as s, useRemoteUploads as i, uploadSentence as m } from "../../lib/upload-presence.js";
|
|
4
|
-
import { cn as
|
|
5
|
-
function
|
|
4
|
+
import { cn as c } from "../../lib/utils.js";
|
|
5
|
+
function k({
|
|
6
6
|
collection: e,
|
|
7
|
-
item:
|
|
7
|
+
item: t,
|
|
8
8
|
field: r
|
|
9
9
|
}) {
|
|
10
|
-
s(e,
|
|
11
|
-
const l = i(e,
|
|
12
|
-
return !r || l.length === 0 ? null : /* @__PURE__ */
|
|
10
|
+
s(e, t, r);
|
|
11
|
+
const l = i(e, t, r ?? void 0);
|
|
12
|
+
return !r || l.length === 0 ? null : /* @__PURE__ */ a("div", { className: "mt-1.5 flex flex-col gap-1", "data-remote-uploads": r, children: l.map((n) => /* @__PURE__ */ a(p, { upload: n }, n.key)) });
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
const
|
|
14
|
+
function p({ upload: e }) {
|
|
15
|
+
const t = e.pct != null && e.pct > 0;
|
|
16
16
|
return /* @__PURE__ */ d(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
19
|
role: "status",
|
|
20
20
|
"data-remote-upload": e.key,
|
|
21
|
-
className: "nvr-fade-in rounded-md border border-
|
|
21
|
+
className: "nvr-fade-in rounded-md border border-slate-200 bg-slate-50/70 px-2 py-1.5 dark:border-border dark:bg-muted/40",
|
|
22
22
|
children: [
|
|
23
23
|
/* @__PURE__ */ d("div", { className: "flex items-center gap-1.5 text-[11.5px] leading-4 text-slate-600 dark:text-slate-300", children: [
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
/* @__PURE__ */ a(
|
|
25
|
+
o,
|
|
26
|
+
{
|
|
27
|
+
className: "h-3.5 w-3.5 shrink-0 text-cyan-700 dark:text-nvr-cyan",
|
|
28
|
+
"aria-hidden": !0
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ a("span", { className: "min-w-0 flex-1 truncate", children: m({ ...e, pct: null }) }),
|
|
32
|
+
t && /* @__PURE__ */ d("span", { className: "shrink-0 tabular-nums text-slate-500 dark:text-slate-400", children: [
|
|
27
33
|
e.pct,
|
|
28
34
|
"%"
|
|
29
35
|
] })
|
|
30
36
|
] }),
|
|
31
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ a(
|
|
32
38
|
"div",
|
|
33
39
|
{
|
|
34
40
|
className: "mt-1 h-[3px] overflow-hidden rounded-full bg-slate-200/80 dark:bg-white/10",
|
|
35
41
|
"aria-hidden": !0,
|
|
36
|
-
children: /* @__PURE__ */
|
|
42
|
+
children: /* @__PURE__ */ a(
|
|
37
43
|
"div",
|
|
38
44
|
{
|
|
39
|
-
className:
|
|
45
|
+
className: c(
|
|
40
46
|
"h-full rounded-full bg-nvr-cyan transition-[width] duration-500 ease-out motion-reduce:transition-none",
|
|
41
|
-
!
|
|
47
|
+
!t && "w-1/4 animate-pulse"
|
|
42
48
|
),
|
|
43
|
-
style:
|
|
49
|
+
style: t ? { width: `${Math.max(4, e.pct ?? 0)}%` } : void 0
|
|
44
50
|
}
|
|
45
51
|
)
|
|
46
52
|
}
|
|
@@ -50,6 +56,6 @@ function c({ upload: e }) {
|
|
|
50
56
|
);
|
|
51
57
|
}
|
|
52
58
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
59
|
+
p as RemoteUploadRow,
|
|
60
|
+
k as RemoteUploadRows
|
|
55
61
|
};
|
|
@@ -1,86 +1,96 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { X as
|
|
3
|
-
import { toast as
|
|
4
|
-
import { formatRelative as
|
|
5
|
-
import {
|
|
6
|
-
function
|
|
1
|
+
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Copy as p, X as u } from "lucide-react";
|
|
3
|
+
import { toast as s } from "sonner";
|
|
4
|
+
import { formatRelative as h } from "../../lib/utils.js";
|
|
5
|
+
import { removedLineName as x, removedLineText as g, unsavedLineText as f } from "./removed-line.js";
|
|
6
|
+
function C({
|
|
7
7
|
state: e,
|
|
8
|
-
labelOf:
|
|
9
|
-
selfId:
|
|
8
|
+
labelOf: n,
|
|
9
|
+
selfId: l,
|
|
10
10
|
readOnly: d,
|
|
11
11
|
onRestore: m,
|
|
12
12
|
onDismiss: b
|
|
13
13
|
}) {
|
|
14
14
|
var o;
|
|
15
|
-
const
|
|
16
|
-
|
|
15
|
+
const i = Object.keys(e.changes), c = [
|
|
16
|
+
x(e.label, e.lineNumber),
|
|
17
|
+
(o = e.by) != null && o.at ? h(e.by.at) : ""
|
|
18
|
+
].filter((t) => t.trim() !== "");
|
|
19
|
+
return /* @__PURE__ */ r(
|
|
17
20
|
"div",
|
|
18
21
|
{
|
|
19
22
|
"data-line-removed": e.rowId,
|
|
20
23
|
role: "status",
|
|
21
|
-
className: "nvr-expand-in flex
|
|
24
|
+
className: "nvr-expand-in flex items-start gap-2.5 rounded-lg border border-slate-200 bg-slate-50 py-2 pr-1.5 pl-3 text-[11.5px] text-slate-700 dark:border-border dark:bg-muted/40 dark:text-slate-200",
|
|
22
25
|
children: [
|
|
23
|
-
/* @__PURE__ */ r("
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
" ",
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
/* @__PURE__ */ r("div", { className: "flex min-h-6 min-w-0 flex-1 flex-wrap items-center gap-x-3 gap-y-1.5", children: [
|
|
27
|
+
/* @__PURE__ */ r("p", { className: "min-w-0 leading-snug", children: [
|
|
28
|
+
/* @__PURE__ */ a(
|
|
29
|
+
"span",
|
|
30
|
+
{
|
|
31
|
+
"aria-hidden": !0,
|
|
32
|
+
className: "mr-2 inline-block h-1.5 w-1.5 rounded-full bg-slate-400 align-middle dark:bg-slate-500"
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ a("span", { className: "font-medium", children: g(e.by, l) }),
|
|
36
|
+
c.map((t) => /* @__PURE__ */ r("span", { className: "text-slate-500 dark:text-slate-400", children: [
|
|
37
|
+
" · ",
|
|
38
|
+
t
|
|
39
|
+
] }, t))
|
|
40
|
+
] }),
|
|
41
|
+
i.length > 0 && /* @__PURE__ */ r(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
"data-line-removed-kept": "",
|
|
45
|
+
className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1.5 rounded-md border border-amber-200 bg-amber-50 py-1 pr-1 pl-2 text-amber-900 dark:border-amber-400/30 dark:bg-amber-400/10 dark:text-amber-100",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ r("span", { className: "min-w-0 leading-snug", children: [
|
|
48
|
+
"Your unsaved changes to the removed line:",
|
|
49
|
+
" ",
|
|
50
|
+
/* @__PURE__ */ a("span", { className: "font-medium", children: i.map(n).join(", ") })
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ r("span", { className: "flex shrink-0 items-center gap-1", children: [
|
|
53
|
+
/* @__PURE__ */ r(
|
|
54
|
+
"button",
|
|
55
|
+
{
|
|
56
|
+
type: "button",
|
|
57
|
+
"data-line-removed-copy": "",
|
|
58
|
+
onClick: () => {
|
|
59
|
+
navigator.clipboard.writeText(f(e.changes, n)).then(
|
|
60
|
+
() => s.success("Copied your changes"),
|
|
61
|
+
() => s.error("Could not copy")
|
|
62
|
+
);
|
|
63
|
+
},
|
|
64
|
+
className: "inline-flex h-6 items-center gap-1 rounded-md border border-amber-300 bg-white px-2 text-[11px] font-medium text-amber-900 hover:bg-amber-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-400/60 dark:border-amber-400/40 dark:bg-transparent dark:text-amber-100 dark:hover:bg-amber-400/15",
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ a(p, { "aria-hidden": !0, className: "h-3 w-3" }),
|
|
67
|
+
"Copy"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
!d && /* @__PURE__ */ a(
|
|
72
|
+
"button",
|
|
73
|
+
{
|
|
74
|
+
type: "button",
|
|
75
|
+
"data-line-removed-restore": "",
|
|
76
|
+
onClick: () => m(e.row),
|
|
77
|
+
className: "inline-flex h-6 items-center rounded-md bg-amber-600 px-2 text-[11px] font-semibold text-white hover:bg-amber-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-400/60",
|
|
78
|
+
children: "Restore as new line"
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] })
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
)
|
|
36
85
|
] }),
|
|
37
|
-
|
|
38
|
-
"span",
|
|
39
|
-
{
|
|
40
|
-
"data-line-removed-kept": "",
|
|
41
|
-
className: "inline-flex flex-wrap items-center gap-1.5 rounded-md border border-amber-200 bg-amber-50 py-0.5 pl-2 pr-1 text-amber-900 dark:border-amber-400/30 dark:bg-amber-400/10 dark:text-amber-100",
|
|
42
|
-
children: [
|
|
43
|
-
/* @__PURE__ */ a("span", { children: [
|
|
44
|
-
"Your unsaved changes to the removed line:",
|
|
45
|
-
" ",
|
|
46
|
-
/* @__PURE__ */ r("span", { className: "font-medium", children: n.map(t).join(", ") })
|
|
47
|
-
] }),
|
|
48
|
-
/* @__PURE__ */ r(
|
|
49
|
-
"button",
|
|
50
|
-
{
|
|
51
|
-
type: "button",
|
|
52
|
-
"data-line-removed-copy": "",
|
|
53
|
-
onClick: () => {
|
|
54
|
-
navigator.clipboard.writeText(x(e.changes, t)).then(
|
|
55
|
-
() => l.success("Copied your changes"),
|
|
56
|
-
() => l.error("Could not copy")
|
|
57
|
-
);
|
|
58
|
-
},
|
|
59
|
-
className: "rounded px-1.5 py-0.5 text-[11px] font-medium hover:bg-amber-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-400/60 dark:hover:bg-amber-400/15",
|
|
60
|
-
children: "Copy"
|
|
61
|
-
}
|
|
62
|
-
),
|
|
63
|
-
!d && /* @__PURE__ */ r(
|
|
64
|
-
"button",
|
|
65
|
-
{
|
|
66
|
-
type: "button",
|
|
67
|
-
"data-line-removed-restore": "",
|
|
68
|
-
onClick: () => m(e.row),
|
|
69
|
-
className: "rounded bg-amber-600 px-1.5 py-0.5 text-[11px] font-semibold text-white hover:bg-amber-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-400/60",
|
|
70
|
-
children: "Restore as new line"
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
),
|
|
76
|
-
/* @__PURE__ */ r(
|
|
86
|
+
/* @__PURE__ */ a(
|
|
77
87
|
"button",
|
|
78
88
|
{
|
|
79
89
|
type: "button",
|
|
80
90
|
"aria-label": "Dismiss",
|
|
81
91
|
onClick: b,
|
|
82
|
-
className: "
|
|
83
|
-
children: /* @__PURE__ */
|
|
92
|
+
className: "inline-flex h-6 w-6 shrink-0 items-center justify-center rounded text-slate-400 hover:bg-slate-200/70 hover:text-slate-600 dark:hover:bg-muted dark:hover:text-slate-300",
|
|
93
|
+
children: /* @__PURE__ */ a(u, { className: "h-3.5 w-3.5" })
|
|
84
94
|
}
|
|
85
95
|
)
|
|
86
96
|
]
|
|
@@ -88,5 +98,5 @@ function y({
|
|
|
88
98
|
);
|
|
89
99
|
}
|
|
90
100
|
export {
|
|
91
|
-
|
|
101
|
+
C as RemovedLineNote
|
|
92
102
|
};
|