@kud/gh-ink 0.52.0 → 0.52.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React2, { createContext, useState, useRef, useEffect, useMemo, useContext } from 'react';
2
- import { useWindowSize, useInput, Text, Box } from 'ink';
2
+ import { useWindowSize, useInput, Text, Box, useApp } from 'ink';
3
3
  import { colors, ScrollView, TextInput, LoadingScreen, StatusMessage, FooterHints, useListCursor, Tabs, pillWidth, Pill } from '@kud/ink-ui';
4
4
  import { isPassCheck, isFailCheck, isInconclusiveCheck, resolveThread, unresolveThread, replyToThread, rerunFailedRun, mergePr, reRequestReviewer } from '@kud/gh';
5
5
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
@@ -2367,6 +2367,7 @@ var BrowseScreen = ({
2367
2367
  sidebar
2368
2368
  }) => {
2369
2369
  const { rows } = useWindowSize();
2370
+ const { exit } = useApp();
2370
2371
  const applyWork = (secs) => origin ? filterByOrigin(secs, origin.show, origin.match, login) : secs;
2371
2372
  const initialSections = applyWork(sections);
2372
2373
  const [localSections, setLocalSections] = useState(initialSections);
@@ -2697,7 +2698,7 @@ var BrowseScreen = ({
2697
2698
  setTabIdx(
2698
2699
  (i) => (i + (key.shift ? -1 : 1) + localSections.length) % localSections.length
2699
2700
  );
2700
- if (input === "q") process.exit(0);
2701
+ if (input === "q") exit();
2701
2702
  if (input === "r") {
2702
2703
  onRefresh?.();
2703
2704
  return;
@@ -3132,8 +3133,9 @@ var NoRowsScreen = ({
3132
3133
  detail,
3133
3134
  onRetry
3134
3135
  }) => {
3136
+ const { exit } = useApp();
3135
3137
  useInput((input) => {
3136
- if (input === "q") process.exit(0);
3138
+ if (input === "q") exit();
3137
3139
  if (input === "r") onRetry();
3138
3140
  });
3139
3141
  return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/gh-ink",
3
- "version": "0.52.0",
3
+ "version": "0.52.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",
@@ -49,8 +49,8 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@kud/gh": "0.16.0",
52
- "@kud/gh-workflow": "0.10.0",
53
- "@kud/ink-ui": "0.26.0",
52
+ "@kud/gh-workflow": "0.11.0",
53
+ "@kud/ink-ui": "0.28.2",
54
54
  "zx": "8.8.5"
55
55
  },
56
56
  "devDependencies": {