@nivaro/react 0.3.66 → 0.3.68
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 +15 -1
- package/dist/index.js +836 -835
- package/dist/shared/components/ActivityEntry.js +28 -28
- package/dist/shared/components/CollectionBrowserView.js +584 -585
- package/dist/shared/components/ConformanceView.js +34 -34
- package/dist/shared/components/ItemEditForm.js +1758 -1758
- package/dist/shared/components/RecordCompare.js +149 -129
- package/dist/shared/components/ReportView.js +196 -196
- package/dist/shared/components/SlaRulesView.js +36 -36
- package/dist/shared/components/bulk/BulkCompareButton.js +16 -16
- package/dist/shared/components/chat/ChatPanel.js +484 -487
- package/dist/shared/components/chat/ChatViews.js +66 -66
- package/dist/shared/components/chat/RoomParts.js +159 -157
- package/dist/shared/components/help-videos/editor/StatsTab.js +48 -47
- package/dist/shared/components/help-videos/editor/VersionsTab.js +17 -16
- package/dist/shared/components/imports/CollectionImportPanel.js +72 -72
- package/dist/shared/components/integrations/IntegrationObligationsView.js +199 -187
- package/dist/shared/components/integrations/console/EventsView.js +22 -24
- package/dist/shared/components/integrations/console/SubmissionRow.js +6 -13
- package/dist/shared/components/integrations/console/drill/SubmissionDrill.js +29 -28
- package/dist/shared/components/integrations/console/tone.js +22 -21
- package/dist/shared/components/item-edit/FieldRow.js +188 -188
- package/dist/shared/components/item-edit/FilePickerField.js +281 -297
- package/dist/shared/components/item-edit/GroupSection.js +209 -209
- package/dist/shared/components/item-edit/RecordInsights.js +101 -101
- package/dist/shared/components/item-edit/SummaryPanel.js +31 -31
- package/dist/shared/components/layout-editor/assist/ExplainDiff.js +12 -12
- package/dist/shared/components/panels/AddendumPanel.js +409 -411
- package/dist/shared/components/panels/BranchLanes.js +7 -7
- package/dist/shared/components/panels/CommentPanel.js +204 -197
- package/dist/shared/components/panels/PipelinePanel.js +264 -264
- package/dist/shared/components/panels/RecordIntegrityBanner.js +78 -78
- package/dist/shared/components/panels/RevisionsPanel.js +229 -229
- package/dist/shared/components/panels/TaskPanel.js +75 -75
- package/dist/shared/components/queue/QueueWorklist.js +591 -589
- package/dist/shared/lib/compare-value.js +73 -0
- package/dist/shared/lib/format-value.js +18 -17
- package/dist/shared/lib/utils.js +87 -80
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { GitBranch as N, Check as _, GitMerge as j } from "lucide-react";
|
|
3
3
|
import { serverNow as $ } from "../../lib/server-clock.js";
|
|
4
|
-
import { formatRelative as w,
|
|
5
|
-
import { OwnerAvatars as
|
|
4
|
+
import { formatRelative as w, formatDateTime as v, humanHours as C } from "../../lib/utils.js";
|
|
5
|
+
import { OwnerAvatars as T } from "../queue/OwnerAvatars.js";
|
|
6
6
|
function k(e, l) {
|
|
7
7
|
if (!e) return null;
|
|
8
8
|
const n = (l ? new Date(l).getTime() : $()) - new Date(e).getTime();
|
|
9
9
|
if (!Number.isFinite(n) || n < 0) return null;
|
|
10
10
|
const i = Math.floor(n / 6e4);
|
|
11
|
-
return i < 60 ? `${Math.max(1, i)}m` :
|
|
11
|
+
return i < 60 ? `${Math.max(1, i)}m` : C(n / 36e5);
|
|
12
12
|
}
|
|
13
13
|
function y({
|
|
14
14
|
color: e,
|
|
@@ -29,7 +29,7 @@ function y({
|
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function J({ data: e }) {
|
|
33
33
|
var i, d, m, p;
|
|
34
34
|
if (e.lanes.length === 0) return null;
|
|
35
35
|
const l = ((i = e.split_state) == null ? void 0 : i.color) ?? "#94a3b8", o = ((d = e.join_state) == null ? void 0 : d.color) ?? "#94a3b8", n = e.lanes.filter((t) => e.waiting_on.includes(t.instance_id));
|
|
@@ -91,7 +91,7 @@ function B({ data: e }) {
|
|
|
91
91
|
backgroundColor: !g || t.terminal ? s.state.color ?? "#94a3b8" : "transparent",
|
|
92
92
|
border: `1.5px solid ${s.state.color ?? "#94a3b8"}`
|
|
93
93
|
},
|
|
94
|
-
"data-tip": `${s.state.label} · entered ${
|
|
94
|
+
"data-tip": `${s.state.label} · entered ${v(s.entered_at)}${s.by ? ` by ${s.by}` : ""}`,
|
|
95
95
|
children: (!g || t.terminal) && /* @__PURE__ */ r(_, { className: "h-2.5 w-2.5 text-white", strokeWidth: 3 })
|
|
96
96
|
}
|
|
97
97
|
)
|
|
@@ -110,7 +110,7 @@ function B({ data: e }) {
|
|
|
110
110
|
}
|
|
111
111
|
),
|
|
112
112
|
c && /* @__PURE__ */ r("span", { className: "text-[11px] tabular-nums text-slate-500 dark:text-slate-400", children: t.terminal ? `done in ${c}` : `${c} in this state` }),
|
|
113
|
-
!t.terminal && /* @__PURE__ */ r("span", { className: "ml-auto", children: /* @__PURE__ */ r(
|
|
113
|
+
!t.terminal && /* @__PURE__ */ r("span", { className: "ml-auto", children: /* @__PURE__ */ r(T, { owners: t.owners ?? [], max: 3, emptyLabel: "No owners" }) })
|
|
114
114
|
]
|
|
115
115
|
},
|
|
116
116
|
t.instance_id
|
|
@@ -137,5 +137,5 @@ function B({ data: e }) {
|
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
139
|
export {
|
|
140
|
-
|
|
140
|
+
J as BranchLanes
|
|
141
141
|
};
|