@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,45 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { fieldMergeKind as
|
|
5
|
-
import { liveMotionAllowed as
|
|
6
|
-
import { htmlToText as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { jsx as t, jsxs as s, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
+
import { GitMerge as W, History as G } from "lucide-react";
|
|
3
|
+
import { useRef as F, useEffect as j, useState as S, useMemo as R } from "react";
|
|
4
|
+
import { fieldMergeKind as H, mergeSetValues as U, diffTextBlocks as z, setValueLike as Q, mergedSet as X, mergedText as Z, autoMerge as J, setItemKey as O } from "../../lib/field-merge.js";
|
|
5
|
+
import { liveMotionAllowed as ee } from "../../lib/live-preference.js";
|
|
6
|
+
import { htmlToText as B } from "../../lib/sanitize-html.js";
|
|
7
|
+
import { diffWindow as te } from "../../lib/text-diff-window.js";
|
|
8
|
+
import { cn as y, choiceLabel as re, formatRelative as ae, formatDate as ne, formatDateTime as se } from "../../lib/utils.js";
|
|
9
|
+
import { RelativeTime as L } from "../RelativeTime.js";
|
|
10
|
+
import { Popover as oe, PopoverTrigger as le, PopoverContent as ie } from "../ui/popover.js";
|
|
11
|
+
import { parseJson as de } from "./helpers.js";
|
|
12
|
+
import { useRecordLabels as ce } from "./useRecordLabels.js";
|
|
13
|
+
const P = (e, r = 80) => {
|
|
13
14
|
if (e == null || e === "") return "empty";
|
|
14
15
|
if (typeof e == "boolean") return e ? "Yes" : "No";
|
|
15
|
-
if (Array.isArray(e)) return e.length === 0 ? "empty" : e.map((
|
|
16
|
+
if (Array.isArray(e)) return e.length === 0 ? "empty" : e.map((d) => P(d, 30)).join(", ");
|
|
16
17
|
if (typeof e == "object")
|
|
17
18
|
try {
|
|
18
|
-
const
|
|
19
|
-
return
|
|
19
|
+
const d = JSON.stringify(e);
|
|
20
|
+
return d.length > r ? `${d.slice(0, r)}…` : d;
|
|
20
21
|
} catch {
|
|
21
22
|
return String(e);
|
|
22
23
|
}
|
|
23
|
-
const
|
|
24
|
-
return
|
|
24
|
+
const a = String(e), l = (/[<&]/.test(a) ? B(a).trim() : a).replace(/\s+/g, " ");
|
|
25
|
+
return l.length > r ? `${l.slice(0, r)}…` : l;
|
|
25
26
|
};
|
|
26
|
-
function
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
return new Map(((
|
|
27
|
+
function M(e, r, a) {
|
|
28
|
+
const o = ce(r, a, !!r), l = R(() => {
|
|
29
|
+
const d = de(e == null ? void 0 : e.options);
|
|
30
|
+
return new Map(((d == null ? void 0 : d.choices) ?? []).map((c) => [String(c.value), re(c.text)]));
|
|
30
31
|
}, [e == null ? void 0 : e.options]);
|
|
31
|
-
return (
|
|
32
|
-
if (
|
|
33
|
-
const m = String(
|
|
34
|
-
if (
|
|
35
|
-
if (
|
|
32
|
+
return (d, c) => {
|
|
33
|
+
if (d != null && typeof d != "object") {
|
|
34
|
+
const m = String(d);
|
|
35
|
+
if (o.has(m)) return o.get(m);
|
|
36
|
+
if (l.has(m)) return l.get(m);
|
|
36
37
|
}
|
|
37
|
-
return
|
|
38
|
+
return P(d, c);
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
|
-
const
|
|
41
|
-
function
|
|
42
|
-
!e || typeof e.animate != "function" ||
|
|
41
|
+
const me = () => !ee();
|
|
42
|
+
function pe(e) {
|
|
43
|
+
!e || typeof e.animate != "function" || me() || e.animate(
|
|
43
44
|
[
|
|
44
45
|
{ boxShadow: "0 0 0 3px rgba(0, 206, 255, 0.28)", borderRadius: "6px" },
|
|
45
46
|
{ boxShadow: "0 0 0 3px rgba(0, 206, 255, 0)", borderRadius: "6px" }
|
|
@@ -47,134 +48,131 @@ function se(e) {
|
|
|
47
48
|
{ duration: 1600, easing: "ease-out" }
|
|
48
49
|
);
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
-
const
|
|
52
|
-
return `${
|
|
51
|
+
function ue(e, r, a = (o) => P(o)) {
|
|
52
|
+
const o = e.by ?? "Someone", l = ae(e.at);
|
|
53
|
+
return `${o} changed this ${l === "just now" ? "just now" : l}: ${a(e.was)} → ${a(r)}`;
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function je({
|
|
55
56
|
change: e,
|
|
56
|
-
now:
|
|
57
|
-
field:
|
|
58
|
-
relatedCollection:
|
|
59
|
-
onDismiss:
|
|
57
|
+
now: r,
|
|
58
|
+
field: a,
|
|
59
|
+
relatedCollection: o,
|
|
60
|
+
onDismiss: l
|
|
60
61
|
}) {
|
|
61
|
-
const
|
|
62
|
-
return
|
|
63
|
-
var
|
|
64
|
-
const
|
|
62
|
+
const d = F(null), c = M(a, o ?? null, [e.was, r]), m = ue(e, r, (p) => c(p, 60));
|
|
63
|
+
return j(() => {
|
|
64
|
+
var b;
|
|
65
|
+
const p = (b = d.current) == null ? void 0 : b.closest("[data-field]"), u = (p == null ? void 0 : p.querySelector("[data-field-control]")) ?? (p == null ? void 0 : p.querySelector(
|
|
65
66
|
'input, textarea, [contenteditable="true"], button[role="combobox"]'
|
|
66
67
|
));
|
|
67
|
-
|
|
68
|
+
pe(u ?? p);
|
|
68
69
|
}, [e.at]), /* @__PURE__ */ t(
|
|
69
70
|
"button",
|
|
70
71
|
{
|
|
71
|
-
ref:
|
|
72
|
+
ref: d,
|
|
72
73
|
type: "button",
|
|
73
74
|
"data-remote-change-mark": !0,
|
|
74
75
|
"data-tip": `${m} · click to clear`,
|
|
75
76
|
"aria-label": m,
|
|
76
|
-
onClick:
|
|
77
|
+
onClick: l,
|
|
77
78
|
className: "group inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full outline-none focus-visible:ring-2 focus-visible:ring-sky-400/60",
|
|
78
79
|
children: /* @__PURE__ */ t("span", { className: "h-1.5 w-1.5 rounded-full bg-sky-500 transition-transform group-hover:scale-125 dark:bg-sky-400" })
|
|
79
80
|
}
|
|
80
81
|
);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function Re({
|
|
83
84
|
change: e,
|
|
84
|
-
mine:
|
|
85
|
-
field:
|
|
86
|
-
relatedCollection:
|
|
87
|
-
locked:
|
|
88
|
-
onKeepMine:
|
|
89
|
-
onTakeTheirs:
|
|
85
|
+
mine: r,
|
|
86
|
+
field: a,
|
|
87
|
+
relatedCollection: o,
|
|
88
|
+
locked: l,
|
|
89
|
+
onKeepMine: d,
|
|
90
|
+
onTakeTheirs: c,
|
|
90
91
|
onMerge: m
|
|
91
92
|
}) {
|
|
92
|
-
const [
|
|
93
|
-
return /* @__PURE__ */
|
|
93
|
+
const [p, u] = S(!1), b = M(a, o ?? null, [e.theirs, r]), g = H(a, r, e.theirs), k = !l && !!m && g !== "none", i = "inline-flex h-7 shrink-0 items-center gap-1 rounded-md border px-2.5 text-[11.5px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-400/60 [@media(pointer:coarse)]:h-11 [@media(pointer:coarse)]:px-3.5", f = "border-slate-300 bg-white text-slate-700 hover:bg-slate-50 dark:border-border dark:bg-card dark:text-slate-200 dark:hover:bg-muted";
|
|
94
|
+
return /* @__PURE__ */ s(
|
|
94
95
|
"div",
|
|
95
96
|
{
|
|
96
97
|
"data-remote-change-ghost": !0,
|
|
97
98
|
"data-remote-conflict": !0,
|
|
98
99
|
className: "nvr-expand-in rounded-md border border-amber-200/80 bg-amber-50/60 px-2 py-1.5 text-[11.5px] text-slate-700 dark:border-amber-400/25 dark:bg-amber-400/[0.06] dark:text-slate-200",
|
|
99
100
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
/* @__PURE__ */ t(
|
|
107
|
-
"span",
|
|
108
|
-
{
|
|
109
|
-
className: "font-medium text-slate-900 dark:text-slate-50",
|
|
110
|
-
"data-tip": o(e.theirs, 400),
|
|
111
|
-
children: o(e.theirs)
|
|
112
|
-
}
|
|
113
|
-
),
|
|
114
|
-
/* @__PURE__ */ a("span", { className: "text-slate-500 dark:text-slate-400", children: [
|
|
101
|
+
/* @__PURE__ */ s("div", { className: "flex flex-col items-start gap-1.5", children: [
|
|
102
|
+
/* @__PURE__ */ s("span", { className: "flex w-full min-w-0 items-start gap-2", children: [
|
|
103
|
+
/* @__PURE__ */ t("span", { className: "mt-[5px] h-1.5 w-1.5 shrink-0 rounded-full bg-amber-500 dark:bg-amber-400" }),
|
|
104
|
+
/* @__PURE__ */ s("span", { className: "min-w-0", children: [
|
|
105
|
+
/* @__PURE__ */ t("span", { className: "font-medium", children: e.by ?? "Someone" }),
|
|
106
|
+
" saved",
|
|
115
107
|
" ",
|
|
116
|
-
|
|
117
|
-
|
|
108
|
+
/* @__PURE__ */ t(
|
|
109
|
+
"span",
|
|
110
|
+
{
|
|
111
|
+
className: "font-medium text-slate-900 dark:text-slate-50",
|
|
112
|
+
"data-tip": b(e.theirs, 400),
|
|
113
|
+
children: b(e.theirs)
|
|
114
|
+
}
|
|
115
|
+
),
|
|
116
|
+
/* @__PURE__ */ s("span", { className: "text-slate-500 dark:text-slate-400", children: [
|
|
117
|
+
" ",
|
|
118
|
+
"· ",
|
|
119
|
+
/* @__PURE__ */ t(L, { value: e.at })
|
|
120
|
+
] })
|
|
118
121
|
] })
|
|
119
122
|
] }),
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
!
|
|
123
|
+
/* @__PURE__ */ s("span", { className: "flex flex-wrap items-center gap-1.5 pl-3.5", children: [
|
|
124
|
+
!l && /* @__PURE__ */ t(
|
|
122
125
|
"button",
|
|
123
126
|
{
|
|
124
127
|
type: "button",
|
|
125
|
-
onClick:
|
|
128
|
+
onClick: d,
|
|
126
129
|
"data-remote-keep-mine": !0,
|
|
127
|
-
className:
|
|
128
|
-
x,
|
|
129
|
-
"text-slate-600 hover:bg-amber-100/80 dark:text-slate-300 dark:hover:bg-amber-400/10"
|
|
130
|
-
),
|
|
130
|
+
className: y(i, f),
|
|
131
131
|
children: "Keep mine"
|
|
132
132
|
}
|
|
133
133
|
),
|
|
134
|
-
|
|
134
|
+
c && /* @__PURE__ */ t(
|
|
135
135
|
"button",
|
|
136
136
|
{
|
|
137
137
|
type: "button",
|
|
138
|
-
onClick:
|
|
138
|
+
onClick: c,
|
|
139
139
|
"data-remote-take-theirs": !0,
|
|
140
|
-
className:
|
|
141
|
-
|
|
142
|
-
"text-
|
|
140
|
+
className: y(
|
|
141
|
+
i,
|
|
142
|
+
"border-amber-300 bg-amber-100 text-amber-950 hover:bg-amber-200/70 dark:border-amber-400/40 dark:bg-amber-400/15 dark:text-amber-100 dark:hover:bg-amber-400/25"
|
|
143
143
|
),
|
|
144
144
|
children: "Take theirs"
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
|
-
|
|
147
|
+
k && /* @__PURE__ */ s(
|
|
148
148
|
"button",
|
|
149
149
|
{
|
|
150
150
|
type: "button",
|
|
151
|
-
onClick: () =>
|
|
151
|
+
onClick: () => u((h) => !h),
|
|
152
152
|
"data-remote-merge": !0,
|
|
153
|
-
"aria-expanded":
|
|
154
|
-
className:
|
|
155
|
-
x,
|
|
156
|
-
"inline-flex items-center gap-1 border border-amber-300 bg-white text-amber-900 hover:bg-amber-50 dark:border-amber-400/30 dark:bg-transparent dark:text-amber-100 dark:hover:bg-amber-400/10"
|
|
157
|
-
),
|
|
153
|
+
"aria-expanded": p,
|
|
154
|
+
className: y(i, f),
|
|
158
155
|
children: [
|
|
159
|
-
/* @__PURE__ */ t(
|
|
156
|
+
/* @__PURE__ */ t(W, { className: "h-3 w-3" }),
|
|
160
157
|
"Merge"
|
|
161
158
|
]
|
|
162
159
|
}
|
|
163
160
|
)
|
|
164
161
|
] })
|
|
165
162
|
] }),
|
|
166
|
-
|
|
167
|
-
|
|
163
|
+
p && k && /* @__PURE__ */ t(
|
|
164
|
+
be,
|
|
168
165
|
{
|
|
169
|
-
kind:
|
|
166
|
+
kind: g,
|
|
170
167
|
base: e.was,
|
|
171
|
-
mine:
|
|
168
|
+
mine: r,
|
|
172
169
|
theirs: e.theirs,
|
|
173
170
|
by: e.by ?? "Someone",
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
171
|
+
flat: !0,
|
|
172
|
+
shown: (h) => b(h, 120),
|
|
173
|
+
onCancel: () => u(!1),
|
|
174
|
+
onApply: (h) => {
|
|
175
|
+
u(!1), m == null || m(h);
|
|
178
176
|
}
|
|
179
177
|
}
|
|
180
178
|
)
|
|
@@ -182,142 +180,156 @@ function ke({
|
|
|
182
180
|
}
|
|
183
181
|
);
|
|
184
182
|
}
|
|
185
|
-
function
|
|
183
|
+
function be({
|
|
186
184
|
kind: e,
|
|
187
|
-
base:
|
|
188
|
-
mine:
|
|
189
|
-
theirs:
|
|
190
|
-
by:
|
|
191
|
-
shown:
|
|
192
|
-
|
|
193
|
-
|
|
185
|
+
base: r,
|
|
186
|
+
mine: a,
|
|
187
|
+
theirs: o,
|
|
188
|
+
by: l,
|
|
189
|
+
shown: d,
|
|
190
|
+
flat: c,
|
|
191
|
+
onApply: m,
|
|
192
|
+
onCancel: p
|
|
194
193
|
}) {
|
|
195
|
-
const
|
|
196
|
-
() => e === "set" ?
|
|
197
|
-
[e,
|
|
198
|
-
),
|
|
199
|
-
() => e === "text" || e === "rich" ?
|
|
200
|
-
[e,
|
|
201
|
-
), [
|
|
202
|
-
|
|
203
|
-
const C = e === "text" &&
|
|
204
|
-
|
|
205
|
-
var
|
|
206
|
-
(
|
|
194
|
+
const u = e === "rich", b = R(
|
|
195
|
+
() => e === "set" ? U(r, a, o) : [],
|
|
196
|
+
[e, r, a, o]
|
|
197
|
+
), g = R(
|
|
198
|
+
() => e === "text" || e === "rich" ? z(r, a, o, u) : [],
|
|
199
|
+
[e, r, a, o, u]
|
|
200
|
+
), [k, i] = S(() => /* @__PURE__ */ new Map()), [f, h] = S(() => /* @__PURE__ */ new Map()), _ = e === "set" ? Q(X(b, k), a) : e === "text" || e === "rich" ? Z(g, f, u) : J(e, r, a, o), [A, E] = S(null);
|
|
201
|
+
j(() => E(null), [f]);
|
|
202
|
+
const C = e === "text" && A !== null ? A : _, Y = F(null);
|
|
203
|
+
j(() => {
|
|
204
|
+
var n, x;
|
|
205
|
+
(x = (n = Y.current) == null ? void 0 : n.querySelector("button, input, textarea")) == null || x.focus();
|
|
207
206
|
}, []);
|
|
208
|
-
const
|
|
209
|
-
return /* @__PURE__ */
|
|
207
|
+
const T = (n) => (u ? B(n).trim() : n) || "(blank line)";
|
|
208
|
+
return /* @__PURE__ */ s(
|
|
210
209
|
"div",
|
|
211
210
|
{
|
|
212
|
-
ref:
|
|
211
|
+
ref: Y,
|
|
213
212
|
"data-field-merge": !0,
|
|
214
|
-
className:
|
|
213
|
+
className: y(
|
|
214
|
+
"mt-2 space-y-2",
|
|
215
|
+
c ? "border-t border-amber-200/80 pt-2 dark:border-amber-400/20" : "rounded-md border border-slate-200 bg-white p-2 dark:border-border dark:bg-card"
|
|
216
|
+
),
|
|
215
217
|
children: [
|
|
216
|
-
e === "set" && /* @__PURE__ */ t("ul", { className: "flex flex-wrap gap-1.5", "aria-label": "Merged values", children:
|
|
217
|
-
const
|
|
218
|
-
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */
|
|
218
|
+
e === "set" && /* @__PURE__ */ t("ul", { className: "flex flex-wrap gap-1.5", "aria-label": "Merged values", children: b.map((n) => {
|
|
219
|
+
const x = O(n.value), N = k.get(x) ?? n.keep, w = n.removedBy === "theirs" ? `removed by ${l}` : n.removedBy === "mine" ? "removed by you" : n.addedBy === "theirs" ? `added by ${l}` : n.addedBy === "mine" ? "added by you" : null;
|
|
220
|
+
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ s(
|
|
219
221
|
"button",
|
|
220
222
|
{
|
|
221
223
|
type: "button",
|
|
222
|
-
"aria-pressed":
|
|
223
|
-
"data-merge-item": String(
|
|
224
|
-
onClick: () =>
|
|
225
|
-
className:
|
|
226
|
-
"inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[
|
|
227
|
-
|
|
224
|
+
"aria-pressed": N,
|
|
225
|
+
"data-merge-item": String(n.value),
|
|
226
|
+
onClick: () => i((v) => new Map(v).set(x, !N)),
|
|
227
|
+
className: y(
|
|
228
|
+
"inline-flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-[11.5px] transition-colors [@media(pointer:coarse)]:min-h-[44px]",
|
|
229
|
+
N ? "border-nvr-cyan/50 bg-nvr-cyan/10 text-slate-800 dark:text-slate-100" : "border-slate-200 bg-white text-slate-500 dark:border-border dark:bg-transparent dark:text-slate-400"
|
|
228
230
|
),
|
|
229
231
|
children: [
|
|
230
|
-
/* @__PURE__ */ t("span", { children: n
|
|
231
|
-
|
|
232
|
+
/* @__PURE__ */ t("span", { className: N ? void 0 : "line-through", children: d(n.value) }),
|
|
233
|
+
w && /* @__PURE__ */ s("span", { className: "text-[11px] text-slate-500 dark:text-slate-400", children: [
|
|
232
234
|
"· ",
|
|
233
|
-
|
|
235
|
+
w
|
|
234
236
|
] })
|
|
235
237
|
]
|
|
236
238
|
}
|
|
237
|
-
) },
|
|
239
|
+
) }, x);
|
|
238
240
|
}) }),
|
|
239
|
-
(e === "text" || e === "rich") && /* @__PURE__ */ t("ol", { className: "max-h-64 space-y-1 overflow-y-auto pr-1", "aria-label": "Parts that differ", children:
|
|
240
|
-
if (
|
|
241
|
+
(e === "text" || e === "rich") && /* @__PURE__ */ t("ol", { className: "max-h-64 space-y-1 overflow-y-auto pr-1", "aria-label": "Parts that differ", children: g.map((n, x) => {
|
|
242
|
+
if (n.same)
|
|
241
243
|
return /* @__PURE__ */ t(
|
|
242
244
|
"li",
|
|
243
245
|
{
|
|
244
246
|
className: "truncate px-1 text-[11px] text-slate-500 dark:text-slate-400",
|
|
245
|
-
children:
|
|
247
|
+
children: n.mine.length === 1 ? T(n.mine[0]) : `${n.mine.length} unchanged ${u ? "paragraphs" : "lines"}`
|
|
246
248
|
},
|
|
247
|
-
|
|
249
|
+
x
|
|
248
250
|
);
|
|
249
|
-
const
|
|
251
|
+
const N = f.get(x) ?? n.pick, w = (v, K) => /* @__PURE__ */ t(
|
|
250
252
|
"button",
|
|
251
253
|
{
|
|
252
254
|
type: "button",
|
|
253
|
-
"aria-pressed":
|
|
255
|
+
"aria-pressed": N === v,
|
|
254
256
|
"data-merge-pick": v,
|
|
255
|
-
onClick: () =>
|
|
256
|
-
className:
|
|
257
|
-
"rounded px-
|
|
258
|
-
|
|
257
|
+
onClick: () => h((V) => new Map(V).set(x, v)),
|
|
258
|
+
className: y(
|
|
259
|
+
"inline-flex h-6 items-center rounded px-2 text-[11px] font-medium [@media(pointer:coarse)]:h-11 [@media(pointer:coarse)]:px-3.5",
|
|
260
|
+
N === v ? "bg-[#0f172a] text-[#ffffff] dark:bg-[#e2e8f0] dark:text-[#0f172a]" : "text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-muted"
|
|
259
261
|
),
|
|
260
|
-
children:
|
|
262
|
+
children: K
|
|
261
263
|
}
|
|
262
264
|
);
|
|
263
|
-
return /* @__PURE__ */
|
|
265
|
+
return /* @__PURE__ */ s(
|
|
264
266
|
"li",
|
|
265
267
|
{
|
|
266
268
|
"data-merge-hunk": !0,
|
|
267
|
-
"data-merge-conflict":
|
|
268
|
-
className:
|
|
269
|
+
"data-merge-conflict": n.conflict ? "" : void 0,
|
|
270
|
+
className: y(
|
|
269
271
|
"rounded border px-1.5 py-1",
|
|
270
|
-
|
|
272
|
+
n.conflict ? "border-amber-200 dark:border-amber-400/30" : "border-slate-100 dark:border-border"
|
|
271
273
|
),
|
|
272
274
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
274
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ s("div", { className: "grid gap-1 text-[11.5px] sm:grid-cols-2", children: [
|
|
276
|
+
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
275
277
|
/* @__PURE__ */ t("p", { className: "text-[10px] uppercase tracking-wide text-slate-500 dark:text-slate-400", children: "Yours" }),
|
|
276
|
-
/* @__PURE__ */ t("p", { className: "whitespace-pre-wrap break-words text-slate-700 dark:text-slate-200", children:
|
|
278
|
+
/* @__PURE__ */ t("p", { className: "whitespace-pre-wrap break-words text-slate-700 dark:text-slate-200", children: n.mine.length ? n.mine.map(T).join(`
|
|
277
279
|
`) : "(nothing)" })
|
|
278
280
|
] }),
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
-
/* @__PURE__ */ t("p", { className: "text-[10px] uppercase tracking-wide text-slate-500 dark:text-slate-400", children:
|
|
281
|
-
/* @__PURE__ */ t("p", { className: "whitespace-pre-wrap break-words text-slate-700 dark:text-slate-200", children:
|
|
281
|
+
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
282
|
+
/* @__PURE__ */ t("p", { className: "text-[10px] uppercase tracking-wide text-slate-500 dark:text-slate-400", children: l }),
|
|
283
|
+
/* @__PURE__ */ t("p", { className: "whitespace-pre-wrap break-words text-slate-700 dark:text-slate-200", children: n.theirs.length ? n.theirs.map(T).join(`
|
|
282
284
|
`) : "(nothing)" })
|
|
283
285
|
] })
|
|
284
286
|
] }),
|
|
285
|
-
/* @__PURE__ */
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
287
|
+
/* @__PURE__ */ s("div", { className: "mt-1 flex flex-wrap items-center gap-x-1.5 gap-y-1", children: [
|
|
288
|
+
n.conflict && /* @__PURE__ */ t("span", { className: "text-[11px] text-amber-700 dark:text-amber-300", children: "You both changed this" }),
|
|
289
|
+
/* @__PURE__ */ s(
|
|
290
|
+
"span",
|
|
291
|
+
{
|
|
292
|
+
role: "group",
|
|
293
|
+
"aria-label": "Which version to keep",
|
|
294
|
+
className: "inline-flex items-center gap-0.5 rounded-md border border-slate-200 bg-white p-0.5 dark:border-border dark:bg-card",
|
|
295
|
+
children: [
|
|
296
|
+
w("mine", "Yours"),
|
|
297
|
+
w("theirs", "Theirs"),
|
|
298
|
+
w("both", "Both")
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
)
|
|
290
302
|
] })
|
|
291
303
|
]
|
|
292
304
|
},
|
|
293
|
-
|
|
305
|
+
x
|
|
294
306
|
);
|
|
295
307
|
}) }),
|
|
296
|
-
e === "text" && /* @__PURE__ */
|
|
308
|
+
e === "text" && /* @__PURE__ */ s("label", { className: "block", children: [
|
|
297
309
|
/* @__PURE__ */ t("span", { className: "text-[10.5px] font-medium text-slate-500 dark:text-slate-400", children: "Result — edit it before you use it if you like" }),
|
|
298
310
|
/* @__PURE__ */ t(
|
|
299
311
|
"textarea",
|
|
300
312
|
{
|
|
301
313
|
"data-merge-result": !0,
|
|
302
314
|
value: String(C ?? ""),
|
|
303
|
-
onChange: (
|
|
315
|
+
onChange: (n) => E(n.target.value),
|
|
304
316
|
rows: Math.min(8, Math.max(3, String(C ?? "").split(`
|
|
305
317
|
`).length)),
|
|
306
318
|
className: "mt-0.5 w-full rounded border border-slate-200 bg-white px-2 py-1 text-[12px] text-slate-800 focus:outline-none focus:ring-2 focus:ring-nvr-cyan/40 dark:border-border dark:bg-background dark:text-slate-100"
|
|
307
319
|
}
|
|
308
320
|
)
|
|
309
321
|
] }),
|
|
310
|
-
e === "rich" && /* @__PURE__ */
|
|
322
|
+
e === "rich" && /* @__PURE__ */ s("div", { className: "rounded bg-slate-50 px-2 py-1 text-[11.5px] text-slate-700 dark:bg-muted/40 dark:text-slate-200", children: [
|
|
311
323
|
/* @__PURE__ */ t("p", { className: "text-[10.5px] font-medium text-slate-500 dark:text-slate-400", children: "Result" }),
|
|
312
|
-
/* @__PURE__ */ t("p", { className: "whitespace-pre-wrap", children:
|
|
324
|
+
/* @__PURE__ */ t("p", { className: "whitespace-pre-wrap", children: B(String(C ?? "")).trim() || "empty" })
|
|
313
325
|
] }),
|
|
314
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ s("div", { className: "flex items-center justify-end gap-1.5", children: [
|
|
315
327
|
/* @__PURE__ */ t(
|
|
316
328
|
"button",
|
|
317
329
|
{
|
|
318
330
|
type: "button",
|
|
319
|
-
onClick:
|
|
320
|
-
className: "rounded px-2
|
|
331
|
+
onClick: p,
|
|
332
|
+
className: "inline-flex h-7 items-center rounded-md px-2.5 text-[11.5px] text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-muted [@media(pointer:coarse)]:h-11",
|
|
321
333
|
children: "Cancel"
|
|
322
334
|
}
|
|
323
335
|
),
|
|
@@ -326,8 +338,8 @@ function oe({
|
|
|
326
338
|
{
|
|
327
339
|
type: "button",
|
|
328
340
|
"data-merge-apply": !0,
|
|
329
|
-
onClick: () =>
|
|
330
|
-
className: "rounded bg-nvr-cyan px-
|
|
341
|
+
onClick: () => m(C),
|
|
342
|
+
className: "inline-flex h-7 items-center rounded-md bg-nvr-cyan px-3 text-[11.5px] font-medium text-white hover:brightness-95 [@media(pointer:coarse)]:h-11",
|
|
331
343
|
children: "Use merged"
|
|
332
344
|
}
|
|
333
345
|
)
|
|
@@ -336,90 +348,145 @@ function oe({
|
|
|
336
348
|
}
|
|
337
349
|
);
|
|
338
350
|
}
|
|
339
|
-
|
|
351
|
+
const he = /* @__PURE__ */ new Set([
|
|
352
|
+
"date_updated",
|
|
353
|
+
"updated_at",
|
|
354
|
+
"user_updated",
|
|
355
|
+
"updated_by",
|
|
356
|
+
"date_created",
|
|
357
|
+
"created_at",
|
|
358
|
+
"user_created",
|
|
359
|
+
"created_by",
|
|
360
|
+
"modified_at",
|
|
361
|
+
"modified_by",
|
|
362
|
+
"date_modified",
|
|
363
|
+
"last_modified",
|
|
364
|
+
"last_updated",
|
|
365
|
+
// EFP-style stamps: `changed` / `created` carry the save time on workflows.
|
|
366
|
+
"changed",
|
|
367
|
+
"created"
|
|
368
|
+
]);
|
|
369
|
+
function xe(e) {
|
|
370
|
+
return he.has(e);
|
|
371
|
+
}
|
|
372
|
+
const q = /* @__PURE__ */ new Set(["date"]), I = /* @__PURE__ */ new Set(["datetime", "dateTime", "timestamp", "time-stamp"]);
|
|
373
|
+
function D({
|
|
374
|
+
value: e,
|
|
375
|
+
field: r,
|
|
376
|
+
relatedCollection: a
|
|
377
|
+
}) {
|
|
378
|
+
const o = M(r, a, [e]);
|
|
379
|
+
if (e != null && e !== "" && r) {
|
|
380
|
+
if (q.has(r.type)) return /* @__PURE__ */ t($, { children: ne(String(e)) || "empty" });
|
|
381
|
+
if (I.has(r.type)) return /* @__PURE__ */ t($, { children: se(String(e)) || "empty" });
|
|
382
|
+
}
|
|
383
|
+
return /* @__PURE__ */ t($, { children: o(e, 60) });
|
|
384
|
+
}
|
|
385
|
+
function ge({
|
|
386
|
+
was: e,
|
|
387
|
+
now: r,
|
|
388
|
+
field: a,
|
|
389
|
+
relatedCollection: o
|
|
390
|
+
}) {
|
|
391
|
+
const l = M(a, o, [e, r]), c = (typeof e == "string" || e == null) && (typeof r == "string" || r == null) && !(a && (q.has(a.type) || I.has(a.type))) ? te(l(e, 1e5), l(r, 1e5)) : null;
|
|
392
|
+
return /* @__PURE__ */ s("p", { className: "mt-0.5 break-words text-slate-500 dark:text-slate-400", children: [
|
|
393
|
+
/* @__PURE__ */ t("span", { className: "line-through decoration-slate-300 dark:decoration-slate-600", children: c ? c.before : /* @__PURE__ */ t(D, { value: e, field: a, relatedCollection: o }) }),
|
|
394
|
+
" ",
|
|
395
|
+
"→",
|
|
396
|
+
" ",
|
|
397
|
+
/* @__PURE__ */ t("span", { className: "text-slate-700 dark:text-slate-200", children: c ? c.after : /* @__PURE__ */ t(D, { value: r, field: a, relatedCollection: o }) })
|
|
398
|
+
] });
|
|
399
|
+
}
|
|
400
|
+
function Be({
|
|
340
401
|
entries: e,
|
|
341
|
-
conflicts:
|
|
342
|
-
labelOf:
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
402
|
+
conflicts: r,
|
|
403
|
+
labelOf: a,
|
|
404
|
+
fieldOf: o,
|
|
405
|
+
relatedOf: l,
|
|
406
|
+
onKeepMine: d,
|
|
407
|
+
onTakeTheirs: c,
|
|
408
|
+
onJump: m
|
|
346
409
|
}) {
|
|
347
|
-
const [
|
|
348
|
-
if (
|
|
349
|
-
const
|
|
350
|
-
return /* @__PURE__ */
|
|
351
|
-
/* @__PURE__ */ t(
|
|
410
|
+
const [p, u] = S(!1), b = e.filter((i) => !xe(i.field));
|
|
411
|
+
if (b.length === 0) return null;
|
|
412
|
+
const g = Object.values(r).filter((i) => i.conflict).length, k = [...b].reverse();
|
|
413
|
+
return /* @__PURE__ */ s(oe, { open: p, onOpenChange: u, children: [
|
|
414
|
+
/* @__PURE__ */ t(le, { asChild: !0, children: /* @__PURE__ */ s(
|
|
352
415
|
"button",
|
|
353
416
|
{
|
|
354
417
|
type: "button",
|
|
355
418
|
"data-remote-changes-button": !0,
|
|
356
|
-
className:
|
|
357
|
-
"inline-flex h-
|
|
358
|
-
|
|
419
|
+
className: y(
|
|
420
|
+
"inline-flex h-9 items-center gap-1.5 rounded-md border px-2.5 text-[12px] font-medium shadow-sm transition-colors",
|
|
421
|
+
g > 0 ? "border-amber-300 text-amber-800 hover:bg-amber-50 dark:border-amber-400/30 dark:text-amber-200 dark:hover:bg-amber-400/10" : "border-slate-200 bg-white text-slate-700 hover:bg-slate-50 dark:border-border dark:bg-card dark:text-slate-100 dark:hover:bg-muted"
|
|
359
422
|
),
|
|
360
423
|
children: [
|
|
361
|
-
/* @__PURE__ */ t(
|
|
424
|
+
/* @__PURE__ */ t(G, { className: "h-3.5 w-3.5" }),
|
|
362
425
|
"See changes",
|
|
363
|
-
/* @__PURE__ */ t("span", { className: "rounded-full bg-slate-100 px-1.5 text-[10.5px] tabular-nums text-slate-
|
|
426
|
+
/* @__PURE__ */ t("span", { className: "rounded-full bg-slate-100 px-1.5 text-[10.5px] tabular-nums text-slate-700 dark:bg-slate-700 dark:text-slate-100", children: b.length })
|
|
364
427
|
]
|
|
365
428
|
}
|
|
366
429
|
) }),
|
|
367
|
-
/* @__PURE__ */
|
|
368
|
-
|
|
430
|
+
/* @__PURE__ */ s(
|
|
431
|
+
ie,
|
|
369
432
|
{
|
|
370
433
|
align: "end",
|
|
434
|
+
collisionPadding: 16,
|
|
371
435
|
className: "w-[360px] max-w-[calc(100vw-32px)] p-0",
|
|
372
436
|
"data-remote-changes-panel": !0,
|
|
373
437
|
children: [
|
|
374
|
-
/* @__PURE__ */
|
|
438
|
+
/* @__PURE__ */ s("div", { className: "border-b border-slate-100 px-3 py-2 dark:border-border", children: [
|
|
375
439
|
/* @__PURE__ */ t("p", { className: "text-[12.5px] font-semibold text-slate-900 dark:text-foreground", children: "Changed by others since you opened this" }),
|
|
376
|
-
|
|
377
|
-
|
|
440
|
+
g > 0 && /* @__PURE__ */ s("p", { className: "text-[11px] text-amber-700 dark:text-amber-300", children: [
|
|
441
|
+
g,
|
|
378
442
|
" ",
|
|
379
|
-
|
|
443
|
+
g === 1 ? "field you are also editing" : "fields you are also editing",
|
|
380
444
|
" — choose which value to keep."
|
|
381
445
|
] })
|
|
382
446
|
] }),
|
|
383
|
-
/* @__PURE__ */ t("ul", { className: "max-h-80 divide-y divide-slate-100 overflow-y-auto overscroll-contain dark:divide-border", children:
|
|
384
|
-
const
|
|
385
|
-
return /* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ t("ul", { className: "max-h-80 divide-y divide-slate-100 overflow-y-auto overscroll-contain dark:divide-border", children: k.map((i, f) => {
|
|
448
|
+
const h = r[i.field];
|
|
449
|
+
return /* @__PURE__ */ s(
|
|
386
450
|
"li",
|
|
387
451
|
{
|
|
388
452
|
className: "px-3 py-2 text-[11.5px]",
|
|
389
|
-
"data-remote-change-entry":
|
|
453
|
+
"data-remote-change-entry": i.field,
|
|
390
454
|
children: [
|
|
391
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ s("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
392
456
|
/* @__PURE__ */ t(
|
|
393
457
|
"button",
|
|
394
458
|
{
|
|
395
459
|
type: "button",
|
|
396
460
|
onClick: () => {
|
|
397
|
-
|
|
461
|
+
m == null || m(i.field), u(!1);
|
|
398
462
|
},
|
|
399
463
|
className: "truncate text-left font-medium text-slate-800 hover:underline dark:text-slate-100",
|
|
400
|
-
children:
|
|
464
|
+
children: a(i.field)
|
|
401
465
|
}
|
|
402
466
|
),
|
|
403
|
-
/* @__PURE__ */
|
|
404
|
-
|
|
467
|
+
/* @__PURE__ */ s("span", { className: "shrink-0 text-[10.5px] text-slate-500 dark:text-slate-400", children: [
|
|
468
|
+
i.by ?? "Someone",
|
|
405
469
|
" · ",
|
|
406
|
-
/* @__PURE__ */ t(
|
|
470
|
+
/* @__PURE__ */ t(L, { value: i.at })
|
|
407
471
|
] })
|
|
408
472
|
] }),
|
|
409
|
-
/* @__PURE__ */
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
473
|
+
/* @__PURE__ */ t(
|
|
474
|
+
ge,
|
|
475
|
+
{
|
|
476
|
+
was: i.was,
|
|
477
|
+
now: i.now,
|
|
478
|
+
field: (o == null ? void 0 : o(i.field)) ?? null,
|
|
479
|
+
relatedCollection: (l == null ? void 0 : l(i.field)) ?? null
|
|
480
|
+
}
|
|
481
|
+
),
|
|
482
|
+
(h == null ? void 0 : h.conflict) && f === k.findIndex((_) => _.field === i.field) && /* @__PURE__ */ s("div", { className: "mt-1.5 flex flex-wrap items-center gap-1.5", children: [
|
|
483
|
+
/* @__PURE__ */ t("span", { className: "mr-auto text-[11px] text-amber-700 dark:text-amber-300", children: "You changed this too" }),
|
|
417
484
|
/* @__PURE__ */ t(
|
|
418
485
|
"button",
|
|
419
486
|
{
|
|
420
487
|
type: "button",
|
|
421
|
-
onClick: () =>
|
|
422
|
-
className: "rounded
|
|
488
|
+
onClick: () => d(i.field),
|
|
489
|
+
className: "inline-flex h-7 items-center rounded-md border border-slate-300 bg-white px-2.5 text-[11px] font-medium text-slate-700 hover:bg-slate-50 dark:border-border dark:bg-card dark:text-slate-200 dark:hover:bg-muted [@media(pointer:coarse)]:h-11",
|
|
423
490
|
children: "Keep mine"
|
|
424
491
|
}
|
|
425
492
|
),
|
|
@@ -427,15 +494,15 @@ function ye({
|
|
|
427
494
|
"button",
|
|
428
495
|
{
|
|
429
496
|
type: "button",
|
|
430
|
-
onClick: () => i
|
|
431
|
-
className: "rounded border border-
|
|
497
|
+
onClick: () => c(i.field),
|
|
498
|
+
className: "inline-flex h-7 items-center rounded-md border border-amber-300 bg-amber-100 px-2.5 text-[11px] font-medium text-amber-950 hover:bg-amber-200/70 dark:border-amber-400/40 dark:bg-amber-400/15 dark:text-amber-100 dark:hover:bg-amber-400/25 [@media(pointer:coarse)]:h-11",
|
|
432
499
|
children: "Take theirs"
|
|
433
500
|
}
|
|
434
501
|
)
|
|
435
502
|
] })
|
|
436
503
|
]
|
|
437
504
|
},
|
|
438
|
-
`${
|
|
505
|
+
`${i.field}-${i.at}-${f}`
|
|
439
506
|
);
|
|
440
507
|
}) })
|
|
441
508
|
]
|
|
@@ -444,11 +511,12 @@ function ye({
|
|
|
444
511
|
] });
|
|
445
512
|
}
|
|
446
513
|
export {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
514
|
+
be as FieldMergePanel,
|
|
515
|
+
je as RemoteChangeMark,
|
|
516
|
+
Be as RemoteChangesButton,
|
|
517
|
+
Re as RemoteConflictNotice,
|
|
518
|
+
pe as fadeChangedField,
|
|
519
|
+
xe as isSystemStampField,
|
|
520
|
+
ue as remoteChangeText,
|
|
521
|
+
M as useShown
|
|
454
522
|
};
|