@ehfuse/taskbox 0.5.254 → 0.5.256

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.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * 본문 양식(템플릿) 메뉴다 — "내용" 섹션 제목 오른쪽 ⋮ 로 연다.
3
+ *
4
+ * 같은 종류의 업무를 적을 때마다 "증상 / 재현 / 기대 결과" 같은 뼈대를 사람이 매번 다시 치고 있었다.
5
+ * 그 뼈대를 이름 붙여 저장해 두고 꺼내 쓰게 한다(Asana 의 업무 템플릿 중 **본문 서식** 부분에 해당).
6
+ *
7
+ * 제목줄에 버튼 두 개("양식 저장"·"불러오기")를 늘어놓지 않고 ⋮ 하나로 접은 이유는,
8
+ * 이 조작이 **가끔 쓰는 것**이고 제목줄은 좁아 본문 영역을 눌러서는 안 되기 때문이다.
9
+ */
10
+ import type { TaskContentTemplate } from "../types";
11
+ /** 본문 양식 메뉴 props 다. */
12
+ export interface TaskContentTemplateMenuProps {
13
+ content: string;
14
+ templates: TaskContentTemplate[];
15
+ onApply: (content: string) => void;
16
+ onSave?: (name: string, content: string) => void | Promise<void>;
17
+ onRemove?: (seq: number) => void;
18
+ }
19
+ /** 본문 양식 메뉴 컴포넌트다. */
20
+ export declare function TaskContentTemplateMenu({ content, templates, onApply, onSave, onRemove, }: TaskContentTemplateMenuProps): import("react").JSX.Element;
@@ -150,3 +150,12 @@ export interface TaskBoxItem {
150
150
  deleted_time?: string;
151
151
  deleted_by?: string;
152
152
  }
153
+ /**
154
+ * 본문 양식(템플릿)이다 — "증상 / 재현 / 기대 결과" 같은 뼈대를 이름 붙여 저장해 두고 꺼내 쓴다.
155
+ * 저장은 소비처가 맡는다(패키지는 목록을 받아 보여주고 고른 결과를 콜백으로 올릴 뿐이다).
156
+ */
157
+ export interface TaskContentTemplate {
158
+ seq: number;
159
+ name: string;
160
+ content: string;
161
+ }
@@ -34,6 +34,8 @@ export interface TaskRuleAction {
34
34
  notify_account_seq?: number;
35
35
  notify_name?: string;
36
36
  notify_message?: string;
37
+ apply_content_template_seq?: number;
38
+ apply_content_template_name?: string;
37
39
  }
38
40
  /** 자동화 규칙 1건이다. */
39
41
  export interface TaskRule {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.5.254",
3
+ "version": "0.5.256",
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",