reifyui 0.13.2 → 0.13.3

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/graph.js CHANGED
@@ -1689,7 +1689,7 @@ var fmtDur = (ms) => {
1689
1689
  if (n < 6e4) return `${(n / 1e3).toFixed(1)}s`;
1690
1690
  return `${Math.floor(n / 6e4)}m ${Math.round(n % 6e4 / 1e3)}s`;
1691
1691
  };
1692
- function ActorChip({ actor, copilotMark: copilotMark2 }) {
1692
+ function ActorChip({ actor, copilotMark }) {
1693
1693
  const copilot = actor?.kind === "copilot";
1694
1694
  if (actor?.kind === "api_key" || actor?.type === "api_key") {
1695
1695
  const keyName = actor.name || "API key";
@@ -1700,7 +1700,7 @@ function ActorChip({ actor, copilotMark: copilotMark2 }) {
1700
1700
  }
1701
1701
  const name = copilot ? "Copilot" : actor?.name || "Someone";
1702
1702
  return /* @__PURE__ */ jsxs3("span", { className: "lg-actor", title: name, children: [
1703
- copilot ? /* @__PURE__ */ jsx4("span", { className: "lg-actor-mark", children: copilotMark2 ?? /* @__PURE__ */ jsx4(Bot, { size: 14 }) }) : /* @__PURE__ */ jsx4("span", { className: "lg-actor-av", children: (name[0] || "?").toUpperCase() }),
1703
+ copilot ? /* @__PURE__ */ jsx4("span", { className: "lg-actor-mark", children: copilotMark ?? /* @__PURE__ */ jsx4(Bot, { size: 14 }) }) : /* @__PURE__ */ jsx4("span", { className: "lg-actor-av", children: (name[0] || "?").toUpperCase() }),
1704
1704
  /* @__PURE__ */ jsx4("span", { className: "lg-actor-name", children: name })
1705
1705
  ] });
1706
1706
  }
@@ -1732,7 +1732,7 @@ function DetailBlock({ entry }) {
1732
1732
  hasArgs ? /* @__PURE__ */ jsx4(CodeBlock, { code: argsText, language: "json", className: "lg-json" }) : !entry.error && /* @__PURE__ */ jsx4("div", { className: "lg-detail-none", children: "No further detail for this action." })
1733
1733
  ] });
1734
1734
  }
1735
- function Row({ entry, open, onToggle }) {
1735
+ function Row({ entry, open, onToggle, copilotMark }) {
1736
1736
  const kind = opKind(entry.op, entry.status);
1737
1737
  return /* @__PURE__ */ jsxs3("div", { className: "lg-row-wrap" + (open ? " open" : ""), children: [
1738
1738
  /* @__PURE__ */ jsxs3("button", { type: "button", className: "lg-row", onClick: onToggle, "aria-expanded": open, children: [
@@ -1757,7 +1757,7 @@ function LogsSkeleton() {
1757
1757
  /* @__PURE__ */ jsx4("span", { className: "lg-skel-right", children: /* @__PURE__ */ jsx4(Skeleton, { w: 90, h: 12 }) })
1758
1758
  ] }, i)) });
1759
1759
  }
1760
- function LogsPane({ graphId, client, copilotMark: copilotMark2 }) {
1760
+ function LogsPane({ graphId, client, copilotMark }) {
1761
1761
  const [entries, setEntries] = useState4([]);
1762
1762
  const [nextCursor, setNextCursor] = useState4(null);
1763
1763
  const [loading, setLoading] = useState4(true);
@@ -1842,7 +1842,7 @@ function LogsPane({ graphId, client, copilotMark: copilotMark2 }) {
1842
1842
  /* @__PURE__ */ jsx4("div", { className: "big", children: q ? "No matching activity" : "No activity yet" }),
1843
1843
  /* @__PURE__ */ jsx4("div", { style: { maxWidth: 420 }, children: q ? "Nothing in this graph\u2019s history matches your search." : "Actions on this graph will appear here." })
1844
1844
  ] }) : /* @__PURE__ */ jsx4(Fragment2, { children: /* @__PURE__ */ jsxs3("div", { className: "lg-list scroll", children: [
1845
- entries.map((e) => /* @__PURE__ */ jsx4(Row, { entry: e, open: open.has(e.id), onToggle: () => toggle(e.id) }, e.id)),
1845
+ entries.map((e) => /* @__PURE__ */ jsx4(Row, { entry: e, open: open.has(e.id), onToggle: () => toggle(e.id), copilotMark }, e.id)),
1846
1846
  nextCursor && /* @__PURE__ */ jsx4("div", { className: "lg-more", children: /* @__PURE__ */ jsx4("button", { type: "button", className: "btn sm", onClick: loadMore, disabled: loadingMore, children: loadingMore ? "Loading\u2026" : "Load more" }) })
1847
1847
  ] }) })
1848
1848
  ] }) });