@kud/gh-ink 0.28.0 → 0.29.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
@@ -38,6 +38,8 @@ type ExtensionTarget = {
38
38
  item?: AnyItem;
39
39
  ciJob?: string;
40
40
  login: string;
41
+ onRemove?: (item: AnyItem) => void;
42
+ showFlash?: (msg: string) => void;
41
43
  };
42
44
  interface InboxExtension {
43
45
  id: string;
package/dist/index.js CHANGED
@@ -1628,7 +1628,12 @@ var buildActions = (item, login, showFlash, jiraBase, jiraKeyRe, jiraTransitions
1628
1628
  actions.push({
1629
1629
  label: e.title,
1630
1630
  hint: e.key,
1631
- run: () => ext?.onOpenExt?.(e.id, { item, login })
1631
+ run: () => ext?.onOpenExt?.(e.id, {
1632
+ item,
1633
+ login,
1634
+ onRemove: (row) => onRemove?.(row),
1635
+ showFlash
1636
+ })
1632
1637
  });
1633
1638
  return actions;
1634
1639
  };
@@ -2420,7 +2425,9 @@ var BrowseScreen = ({
2420
2425
  onOpenExt?.(ext.id, {
2421
2426
  item: activeItem ?? void 0,
2422
2427
  ciJob: ciStatus?.job,
2423
- login
2428
+ login,
2429
+ onRemove: (row) => removeItemFromSections(row),
2430
+ showFlash
2424
2431
  });
2425
2432
  return;
2426
2433
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/gh-ink",
3
- "version": "0.28.0",
3
+ "version": "0.29.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",