@kud/gh-ink 0.12.0 → 0.13.0

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/index.d.ts CHANGED
@@ -85,6 +85,13 @@ type JiraRow = {
85
85
  age: string;
86
86
  indent: boolean;
87
87
  instanceKey?: string;
88
+ /**
89
+ * Trailing annotation, rendered dim after the summary — a recurrence marker,
90
+ * a source hint, anything secondary to the title. Its own node rather than
91
+ * part of `summary` so it can be dimmed, and so its width is measured
92
+ * separately instead of being smuggled past the truncation maths.
93
+ */
94
+ note?: string;
88
95
  };
89
96
  type RepoHeader = {
90
97
  kind: "repo-header";
package/dist/index.js CHANGED
@@ -1605,11 +1605,13 @@ var ItemRow = ({
1605
1605
  /* @__PURE__ */ jsx(Text2, { dimColor: true, children: "show less" })
1606
1606
  ] });
1607
1607
  if (item.kind === "jira") {
1608
- const titleMax2 = Math.max(20, COLS - item.key.length - 10);
1608
+ const note = item.note ?? "";
1609
+ const titleMax2 = Math.max(20, COLS - item.key.length - note.length - 10);
1609
1610
  return /* @__PURE__ */ jsxs(Box, { marginTop: gap ? 1 : 0, children: [
1610
1611
  /* @__PURE__ */ jsx(Text2, { color: "cyan", children: active ? "\u276F " : " " }),
1611
1612
  /* @__PURE__ */ jsx(Text2, { color: "#FF8700", bold: active, children: item.key + " " }),
1612
- /* @__PURE__ */ jsx(Text2, { bold: active, children: truncate(item.summary, titleMax2) })
1613
+ /* @__PURE__ */ jsx(Text2, { bold: active, children: truncate(item.summary, titleMax2) }),
1614
+ note ? /* @__PURE__ */ jsx(Text2, { dimColor: true, children: ` ${note}` }) : null
1613
1615
  ] });
1614
1616
  }
1615
1617
  const { glyph: healthIcon, color: healthColor2 } = healthDisplay[item.health];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/gh-ink",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Ink components for rendering GitHub PR review comments and health — controlled, presentation-only, built on @kud/ink-ui and fed by @kud/gh.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",