@ehfuse/taskbox 0.5.233 → 0.5.235

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.
@@ -10,8 +10,9 @@
10
10
  *
11
11
  * 소비처가 넘긴 핸들러만 등록된다(안 넘긴 키는 아무 일도 하지 않는다).
12
12
  */
13
- /** 보기 전환 대상이다. */
14
- export type TaskboxShortcutView = "list" | "board" | "kanban" | "calendar" | "month" | "timeline";
13
+ import type { TaskBoxViewKind } from "../views/TaskBoxView";
14
+ /** 보기 전환 대상이다(보기 종류와 같은 값이라야 소비처가 그대로 보기모드로 쓸 수 있다). */
15
+ export type TaskboxShortcutView = TaskBoxViewKind;
15
16
  /** 단축키 핸들러 묶음이다 — 넘긴 것만 동작한다. */
16
17
  export interface TaskboxShortcutHandlers {
17
18
  onCreateTask?: () => void;
@@ -24,11 +25,19 @@ export interface TaskboxShortcutHandlers {
24
25
  /** 훅 옵션이다. */
25
26
  export interface TaskboxShortcutOptions {
26
27
  enabled?: boolean;
28
+ views?: TaskboxShortcutView[];
27
29
  }
28
30
  /** 업무함 단축키를 등록한다. */
29
31
  export declare function useTaskboxShortcuts(handlers: TaskboxShortcutHandlers, options?: TaskboxShortcutOptions): void;
30
- /** 도움말에 보여줄 단축키 목록이다(키, 설명). */
31
- export declare const TASKBOX_SHORTCUT_HELP: {
32
+ /** 도움말 한 줄이다. */
33
+ export interface TaskboxShortcutHelpItem {
32
34
  keys: string;
33
35
  description: string;
34
- }[];
36
+ }
37
+ /**
38
+ * 도움말에 보여줄 단축키 목록을 만든다.
39
+ * `views` 를 주면 그 보기의 전환 키만 남긴다 — 업무함 설정에서 끈 보기는 눌러도 안 되므로 도움말에도 두지 않는다.
40
+ */
41
+ export declare function buildTaskboxShortcutHelp(views?: TaskboxShortcutView[]): TaskboxShortcutHelpItem[];
42
+ /** 도움말 기본 목록이다(보기 전체 포함). */
43
+ export declare const TASKBOX_SHORTCUT_HELP: TaskboxShortcutHelpItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.5.233",
3
+ "version": "0.5.235",
4
4
  "description": "A React/MUI task inbox component with notices, per-user assignments, read tracking, and mobile card UI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,7 +26,9 @@
26
26
  "scripts": {
27
27
  "build": "node build.mjs",
28
28
  "type-check": "tsc --noEmit",
29
- "prepublishOnly": "npm run build"
29
+ "prepublishOnly": "npm run build",
30
+ "test": "vitest run",
31
+ "test:watch": "vitest"
30
32
  },
31
33
  "repository": {
32
34
  "type": "git",
@@ -108,6 +110,7 @@
108
110
  "@types/node": "^24.6.1",
109
111
  "@types/react": "^19.0.0",
110
112
  "@types/react-dom": "^19.0.0",
113
+ "@vitest/coverage-v8": "^4.1.10",
111
114
  "esbuild": "^0.27.0",
112
115
  "esbuild-plugin-d.ts": "^1.3.1",
113
116
  "exceljs": "^4.4.0",
@@ -117,7 +120,8 @@
117
120
  "react-virtuoso": "^4.14.1",
118
121
  "recharts": "^3.10.1",
119
122
  "tslib": "^2.8.1",
120
- "typescript": "~5.9.3"
123
+ "typescript": "~5.9.3",
124
+ "vitest": "^4.1.10"
121
125
  },
122
126
  "engines": {
123
127
  "node": ">=18.0.0"