flowcat 1.6.2 → 1.6.3

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/core/fsm.ts CHANGED
@@ -16,7 +16,9 @@ export const transitionTable: Record<TaskStatus, Partial<Record<TaskAction, Task
16
16
  cancel: "cancelled",
17
17
  },
18
18
  completed: {},
19
- cancelled: {},
19
+ cancelled: {
20
+ start: "backlog",
21
+ },
20
22
  };
21
23
 
22
24
  export const getNextStatus = (current: TaskStatus, action: TaskAction): TaskStatus => {
package/dist/fcat.mjs CHANGED
@@ -81304,7 +81304,9 @@ var transitionTable = {
81304
81304
  cancel: "cancelled"
81305
81305
  },
81306
81306
  completed: {},
81307
- cancelled: {}
81307
+ cancelled: {
81308
+ start: "backlog"
81309
+ }
81308
81310
  };
81309
81311
  var getNextStatus = (current, action) => {
81310
81312
  const next = transitionTable[current][action];
@@ -83557,13 +83559,14 @@ var App3 = () => {
83557
83559
  children: "Select new status:"
83558
83560
  }, undefined, false, undefined, this),
83559
83561
  availableActions.map((action, idx) => {
83560
- const isSelected = idx === statusActionIndex && statusModalField === "action";
83562
+ const isSelected = idx === statusActionIndex;
83563
+ const isFocused = isSelected && statusModalField === "action";
83561
83564
  return /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("box", {
83562
83565
  children: /* @__PURE__ */ import_jsx_dev_runtime2.jsxDEV("text", {
83563
83566
  fg: isSelected ? COLOR3.green : undefined,
83564
83567
  attributes: isSelected ? TextAttributes.BOLD : 0,
83565
83568
  children: [
83566
- isSelected ? "> " : " ",
83569
+ isFocused ? "> " : isSelected ? "\u2713 " : " ",
83567
83570
  `${idx + 1}. ${action.label}`
83568
83571
  ]
83569
83572
  }, undefined, true, undefined, this)
package/dist/index.mjs CHANGED
@@ -30980,7 +30980,9 @@ var transitionTable = {
30980
30980
  cancel: "cancelled"
30981
30981
  },
30982
30982
  completed: {},
30983
- cancelled: {}
30983
+ cancelled: {
30984
+ start: "backlog"
30985
+ }
30984
30986
  };
30985
30987
  var getNextStatus = (current, action) => {
30986
30988
  const next = transitionTable[current][action];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowcat",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",