@kud/gh-ink 0.28.0 → 0.29.1
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 +2 -0
- package/dist/index.js +16 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1060,8 +1060,13 @@ var treeUrls = (items, i) => {
|
|
|
1060
1060
|
while (root > 0 && isChildRow(items[root])) root -= 1;
|
|
1061
1061
|
const urls = [];
|
|
1062
1062
|
for (let j = root; j < items.length; j += 1) {
|
|
1063
|
-
|
|
1064
|
-
|
|
1063
|
+
const item = items[j];
|
|
1064
|
+
if (j > root && !isChildRow(item)) break;
|
|
1065
|
+
if (item.kind === "show-more") {
|
|
1066
|
+
for (const child of item.hidden) if (child.url) urls.push(child.url);
|
|
1067
|
+
continue;
|
|
1068
|
+
}
|
|
1069
|
+
const url = item.url;
|
|
1065
1070
|
if (url) urls.push(url);
|
|
1066
1071
|
}
|
|
1067
1072
|
return urls;
|
|
@@ -1628,7 +1633,12 @@ var buildActions = (item, login, showFlash, jiraBase, jiraKeyRe, jiraTransitions
|
|
|
1628
1633
|
actions.push({
|
|
1629
1634
|
label: e.title,
|
|
1630
1635
|
hint: e.key,
|
|
1631
|
-
run: () => ext?.onOpenExt?.(e.id, {
|
|
1636
|
+
run: () => ext?.onOpenExt?.(e.id, {
|
|
1637
|
+
item,
|
|
1638
|
+
login,
|
|
1639
|
+
onRemove: (row) => onRemove?.(row),
|
|
1640
|
+
showFlash
|
|
1641
|
+
})
|
|
1632
1642
|
});
|
|
1633
1643
|
return actions;
|
|
1634
1644
|
};
|
|
@@ -2420,7 +2430,9 @@ var BrowseScreen = ({
|
|
|
2420
2430
|
onOpenExt?.(ext.id, {
|
|
2421
2431
|
item: activeItem ?? void 0,
|
|
2422
2432
|
ciJob: ciStatus?.job,
|
|
2423
|
-
login
|
|
2433
|
+
login,
|
|
2434
|
+
onRemove: (row) => removeItemFromSections(row),
|
|
2435
|
+
showFlash
|
|
2424
2436
|
});
|
|
2425
2437
|
return;
|
|
2426
2438
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/gh-ink",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.1",
|
|
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",
|