@kud/gh-ink 0.45.10 → 0.46.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 +7 -1
- package/dist/index.js +35 -27
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -77,8 +77,14 @@ type Sidebar = {
|
|
|
77
77
|
* against a budget, and a budget that does not know the rail is there overflows
|
|
78
78
|
* by the rail's whole width — which in a frame sized to fill the terminal
|
|
79
79
|
* scrolls the panel rather than clipping a row.
|
|
80
|
+
*
|
|
81
|
+
* Widened from 40 once the rail carried real initiative titles: at 40 the label
|
|
82
|
+
* line had 33 columns to spend, which cut the summary of nearly every epic mid
|
|
83
|
+
* word and left the rail listing keys with an ellipsis after them. The key line
|
|
84
|
+
* was never the constraint — the label is what makes a key readable, and a rail
|
|
85
|
+
* you cannot read is forty columns spent on nothing.
|
|
80
86
|
*/
|
|
81
|
-
declare const SIDEBAR_COLS =
|
|
87
|
+
declare const SIDEBAR_COLS = 52;
|
|
82
88
|
/**
|
|
83
89
|
* The dim figures after the key: how far through, and how much is moving.
|
|
84
90
|
*
|
package/dist/index.js
CHANGED
|
@@ -586,7 +586,7 @@ var HealthPanel = ({
|
|
|
586
586
|
] });
|
|
587
587
|
};
|
|
588
588
|
var ACCENT = "#FF8700";
|
|
589
|
-
var SIDEBAR_COLS =
|
|
589
|
+
var SIDEBAR_COLS = 52;
|
|
590
590
|
var RULE = 1;
|
|
591
591
|
var PAD = 2;
|
|
592
592
|
var CONTENT = SIDEBAR_COLS - RULE - PAD;
|
|
@@ -3038,32 +3038,40 @@ var BrowseScreen = ({
|
|
|
3038
3038
|
width: listCols,
|
|
3039
3039
|
flexShrink: 0,
|
|
3040
3040
|
children: [
|
|
3041
|
-
/* @__PURE__ */ jsxs(
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3041
|
+
/* @__PURE__ */ jsxs(
|
|
3042
|
+
Backdrop,
|
|
3043
|
+
{
|
|
3044
|
+
dimmed: !!overlay || railActive,
|
|
3045
|
+
absolute: !!overlay,
|
|
3046
|
+
height: listHeight,
|
|
3047
|
+
children: [
|
|
3048
|
+
/* @__PURE__ */ jsx(Box, { flexDirection: "column", flexGrow: 1, children: visibleItems.map((item, i) => /* @__PURE__ */ jsx(
|
|
3049
|
+
ItemRow,
|
|
3050
|
+
{
|
|
3051
|
+
item,
|
|
3052
|
+
active: viewStart + i === cursor,
|
|
3053
|
+
login,
|
|
3054
|
+
merged: (item.kind === "pr" || item.kind === "issue") && !!mergedUrls?.includes(item.url),
|
|
3055
|
+
leaving: (item.kind === "pr" || item.kind === "issue") && !!leavingUrls?.includes(item.url),
|
|
3056
|
+
transient: transientOf(transients, item, section.id),
|
|
3057
|
+
transitAt: "url" in item ? transitSince?.get(item.url) : void 0,
|
|
3058
|
+
prefix: treePrefix(section.items, viewStart + i),
|
|
3059
|
+
parent: item.kind === "task" && depthOf(section.items[viewStart + i + 1]) > depthOf(item),
|
|
3060
|
+
sparkFrame,
|
|
3061
|
+
cols: listCols,
|
|
3062
|
+
gap: i > 0 && gapsAbove(section.items, viewStart + i)
|
|
3063
|
+
},
|
|
3064
|
+
`${viewStart + i}:${rowKey(item)}`
|
|
3065
|
+
)) }),
|
|
3066
|
+
hasMore && /* @__PURE__ */ jsxs(Text3, { dimColor: true, children: [
|
|
3067
|
+
" ",
|
|
3068
|
+
"\u2193 ",
|
|
3069
|
+
section.items.length - viewStart - visibleCount,
|
|
3070
|
+
" more"
|
|
3071
|
+
] })
|
|
3072
|
+
]
|
|
3073
|
+
}
|
|
3074
|
+
),
|
|
3067
3075
|
overlay ? /* @__PURE__ */ jsx(
|
|
3068
3076
|
Box,
|
|
3069
3077
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/gh-ink",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.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",
|