@ehfuse/taskbox 0.10.15 → 0.10.16

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.
@@ -1,3 +1,4 @@
1
+ import type { ReactNode } from "react";
1
2
  /** TaskboxProvider 설정·슬롯 타입이다. */
2
3
  import type { ComponentType } from "react";
3
4
  import type { TaskboxThemeInput } from "./theme";
@@ -154,6 +155,13 @@ export interface TaskboxConfig {
154
155
  unassignedGroupLabel?: string;
155
156
  /** 검수 완료 — 작성자가 결과를 확인했다고 표시한다(검수 대기 고정 영역에서 내림 — 알림 없음). */
156
157
  onReviewDone?: (task: TaskBoxItem) => void;
158
+ /**
159
+ * 간단히 보기에서 카드를 펼쳤을 때 속성 줄 아래에 그릴 본문(선택, 0.10.16). 목록 행에는 본문(content)이 없을 수 있어
160
+ * 펼칠 때 onNeedTaskDetail 로 받게 알리고, 받은 뒤 다시 그려진다. 본문 HTML 정제 · 모양은 소비처가 정한다(피드 카드와 같게).
161
+ */
162
+ renderTaskBodyPreview?: (task: TaskBoxItem) => ReactNode;
163
+ /** 업무 본문(상세)이 필요하다 — 간단히 보기에서 카드를 펼칠 때 부른다. 받아서 목록의 업무에 합치는 것은 소비처 몫이다. */
164
+ onNeedTaskDetail?: (taskSeq: number) => void;
157
165
  /**
158
166
  * 구글 캘린더 연동 시 만드는 전용 캘린더 이름 — 소비처(프로젝트)가 주입한다(예: "코드마켓", "코드샵").
159
167
  * 연동 다이얼로그 문구와 연결 요청에 쓰며, 이미 연결된 계정은 서버가 저장한 이름(calendar_name)이 우선이다.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.10.15",
3
+ "version": "0.10.16",
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",