@nivaro/react 0.3.67 → 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 (26) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +7 -0
  4. package/dist/index.js +836 -835
  5. package/dist/shared/components/ConformanceView.js +34 -34
  6. package/dist/shared/components/ReportView.js +196 -196
  7. package/dist/shared/components/SlaRulesView.js +36 -36
  8. package/dist/shared/components/chat/ChatPanel.js +484 -487
  9. package/dist/shared/components/chat/ChatViews.js +66 -66
  10. package/dist/shared/components/chat/RoomParts.js +159 -157
  11. package/dist/shared/components/help-videos/editor/StatsTab.js +48 -47
  12. package/dist/shared/components/help-videos/editor/VersionsTab.js +17 -16
  13. package/dist/shared/components/imports/CollectionImportPanel.js +72 -72
  14. package/dist/shared/components/item-edit/FieldRow.js +87 -87
  15. package/dist/shared/components/item-edit/FilePickerField.js +281 -297
  16. package/dist/shared/components/item-edit/RecordInsights.js +90 -91
  17. package/dist/shared/components/item-edit/SummaryPanel.js +31 -31
  18. package/dist/shared/components/layout-editor/assist/ExplainDiff.js +12 -12
  19. package/dist/shared/components/panels/AddendumPanel.js +409 -411
  20. package/dist/shared/components/panels/CommentPanel.js +169 -162
  21. package/dist/shared/components/panels/PipelinePanel.js +75 -75
  22. package/dist/shared/components/panels/RevisionsPanel.js +103 -103
  23. package/dist/shared/components/queue/QueueWorklist.js +142 -141
  24. package/dist/shared/lib/format-value.js +15 -15
  25. package/dist/shared/lib/utils.js +58 -53
  26. 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
  };