@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,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as r, jsx as s, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { Sparkles as x } from "lucide-react";
|
|
3
3
|
import { useState as c } from "react";
|
|
4
|
-
import { cn as u } from "../../../lib/utils.js";
|
|
5
|
-
import { useLayoutEditorHost as
|
|
6
|
-
import { parseSaveFailure as
|
|
7
|
-
import { useExplainLayoutDiff as
|
|
4
|
+
import { cn as u, toLocalDateString as p } from "../../../lib/utils.js";
|
|
5
|
+
import { useLayoutEditorHost as f } from "../host.js";
|
|
6
|
+
import { parseSaveFailure as h } from "../useLayoutDraft.js";
|
|
7
|
+
import { useExplainLayoutDiff as g } from "./assist-api.js";
|
|
8
8
|
const d = "text-[12px] leading-snug text-slate-500 dark:text-muted-foreground";
|
|
9
|
-
function
|
|
9
|
+
function y({ data: t }) {
|
|
10
10
|
const [i, o] = c(!t.summary), [a, l] = c(!1);
|
|
11
11
|
return t.sentences.length === 0 ? /* @__PURE__ */ r("p", { className: d, children: [
|
|
12
12
|
"Nothing differs between ",
|
|
@@ -53,19 +53,19 @@ function g({ data: t }) {
|
|
|
53
53
|
" · ",
|
|
54
54
|
e.note,
|
|
55
55
|
e.times ? ` (${e.times} saves)` : "",
|
|
56
|
-
e.at ? ` · ${
|
|
56
|
+
e.at ? ` · ${p(e.at)}` : "",
|
|
57
57
|
e.by ? ` · ${e.by}` : ""
|
|
58
58
|
] }, `${e.layout_id}:${e.version}`)) })
|
|
59
59
|
] })
|
|
60
60
|
] });
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function S({
|
|
63
63
|
a: t,
|
|
64
64
|
b: i,
|
|
65
65
|
label: o = "Explain in words",
|
|
66
66
|
className: a
|
|
67
67
|
}) {
|
|
68
|
-
const l =
|
|
68
|
+
const l = f(), e = g();
|
|
69
69
|
if (!l.isAdmin) return null;
|
|
70
70
|
const n = e.variables && JSON.stringify([e.variables.a, e.variables.b]) === JSON.stringify([t, i]);
|
|
71
71
|
return /* @__PURE__ */ r("div", { className: u("space-y-2", a), children: [
|
|
@@ -83,11 +83,11 @@ function E({
|
|
|
83
83
|
]
|
|
84
84
|
}
|
|
85
85
|
),
|
|
86
|
-
e.isError && /* @__PURE__ */ s("p", { className: "text-[12px] text-[#9c2f47] dark:text-[#f08aa1]", children:
|
|
87
|
-
e.data && n && /* @__PURE__ */ s(
|
|
86
|
+
e.isError && /* @__PURE__ */ s("p", { className: "text-[12px] text-[#9c2f47] dark:text-[#f08aa1]", children: h(e.error, "Could not explain the differences").message }),
|
|
87
|
+
e.data && n && /* @__PURE__ */ s(y, { data: e.data })
|
|
88
88
|
] });
|
|
89
89
|
}
|
|
90
90
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
S as ExplainDiffButton,
|
|
92
|
+
y as ExplainDiffView
|
|
93
93
|
};
|