@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,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, humanHours as v } from "../../lib/utils.js";
5
- import { OwnerAvatars as C } from "../queue/OwnerAvatars.js";
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` : v(n / 36e5);
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 B({ data: e }) {
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 ${new Date(s.entered_at).toLocaleString()}${s.by ? ` by ${s.by}` : ""}`,
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(C, { owners: t.owners ?? [], max: 3, emptyLabel: "No owners" }) })
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
- B as BranchLanes
140
+ J as BranchLanes
141
141
  };