@kud/jira-ink 0.3.1 → 0.4.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -7
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -52,7 +52,6 @@ var IssueDetailView = ({
52
52
  const { active } = useTabs(tabs, { initial: "description" });
53
53
  const [scroll, setScroll] = useState(0);
54
54
  useInput((input, key) => {
55
- if (key.escape) return onBack();
56
55
  if (input === "t" && onTransition) return onTransition();
57
56
  if (input === "c" && onComment) return onComment();
58
57
  if (input === "a" && onAssign) return onAssign();
@@ -71,7 +70,7 @@ var IssueDetailView = ({
71
70
  ...onComment ? [["c", "comment"]] : [],
72
71
  ...onAssign ? [["a", "assign to me"]] : [],
73
72
  ...onOpenBrowser ? [["o", "browser"]] : [],
74
- ["esc", "back"]
73
+ ["\u232B", "back"]
75
74
  ];
76
75
  const body = /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
77
76
  /* @__PURE__ */ jsxs(Box, { flexDirection: "column", children: [
@@ -191,14 +190,10 @@ var IssueBody = ({
191
190
  live = false;
192
191
  };
193
192
  }, [client, baseUrl, issueKey]);
194
- useInput((input, key) => {
195
- if (input === "q") return onExit();
196
- if (key.escape && state.phase !== "ready") onExit();
197
- });
198
193
  const framed = (body) => frame ? frame({
199
194
  title: issueKey,
200
195
  subtitle: "",
201
- hints: [["esc", "back"]],
196
+ hints: [["\u232B", "back"]],
202
197
  body
203
198
  }) : body;
204
199
  if (state.phase === "loading")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kud/jira-ink",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Ink components for viewing Jira issues: the board and the issue detail screen, shared by jira-cli's TUI and cockpit",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@kud/ink-markdown": "0.3.0",
33
- "@kud/ink-ui": "0.25.0",
33
+ "@kud/ink-ui": "0.27.0",
34
34
  "@kud/jira": "0.4.0"
35
35
  },
36
36
  "devDependencies": {