@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.
Files changed (41) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +15 -1
  4. package/dist/index.js +836 -835
  5. package/dist/shared/components/ActivityEntry.js +28 -28
  6. package/dist/shared/components/CollectionBrowserView.js +584 -585
  7. package/dist/shared/components/ConformanceView.js +34 -34
  8. package/dist/shared/components/ItemEditForm.js +1758 -1758
  9. package/dist/shared/components/RecordCompare.js +149 -129
  10. package/dist/shared/components/ReportView.js +196 -196
  11. package/dist/shared/components/SlaRulesView.js +36 -36
  12. package/dist/shared/components/bulk/BulkCompareButton.js +16 -16
  13. package/dist/shared/components/chat/ChatPanel.js +484 -487
  14. package/dist/shared/components/chat/ChatViews.js +66 -66
  15. package/dist/shared/components/chat/RoomParts.js +159 -157
  16. package/dist/shared/components/help-videos/editor/StatsTab.js +48 -47
  17. package/dist/shared/components/help-videos/editor/VersionsTab.js +17 -16
  18. package/dist/shared/components/imports/CollectionImportPanel.js +72 -72
  19. package/dist/shared/components/integrations/IntegrationObligationsView.js +199 -187
  20. package/dist/shared/components/integrations/console/EventsView.js +22 -24
  21. package/dist/shared/components/integrations/console/SubmissionRow.js +6 -13
  22. package/dist/shared/components/integrations/console/drill/SubmissionDrill.js +29 -28
  23. package/dist/shared/components/integrations/console/tone.js +22 -21
  24. package/dist/shared/components/item-edit/FieldRow.js +188 -188
  25. package/dist/shared/components/item-edit/FilePickerField.js +281 -297
  26. package/dist/shared/components/item-edit/GroupSection.js +209 -209
  27. package/dist/shared/components/item-edit/RecordInsights.js +101 -101
  28. package/dist/shared/components/item-edit/SummaryPanel.js +31 -31
  29. package/dist/shared/components/layout-editor/assist/ExplainDiff.js +12 -12
  30. package/dist/shared/components/panels/AddendumPanel.js +409 -411
  31. package/dist/shared/components/panels/BranchLanes.js +7 -7
  32. package/dist/shared/components/panels/CommentPanel.js +204 -197
  33. package/dist/shared/components/panels/PipelinePanel.js +264 -264
  34. package/dist/shared/components/panels/RecordIntegrityBanner.js +78 -78
  35. package/dist/shared/components/panels/RevisionsPanel.js +229 -229
  36. package/dist/shared/components/panels/TaskPanel.js +75 -75
  37. package/dist/shared/components/queue/QueueWorklist.js +591 -589
  38. package/dist/shared/lib/compare-value.js +73 -0
  39. package/dist/shared/lib/format-value.js +18 -17
  40. package/dist/shared/lib/utils.js +87 -80
  41. 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 p } from "../host.js";
6
- import { parseSaveFailure as f } from "../useLayoutDraft.js";
7
- import { useExplainLayoutDiff as h } from "./assist-api.js";
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 g({ data: t }) {
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 ? ` · ${new Date(e.at).toLocaleDateString()}` : "",
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 E({
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 = p(), e = h();
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: f(e.error, "Could not explain the differences").message }),
87
- e.data && n && /* @__PURE__ */ s(g, { data: e.data })
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
- E as ExplainDiffButton,
92
- g as ExplainDiffView
91
+ S as ExplainDiffButton,
92
+ y as ExplainDiffView
93
93
  };