@ehfuse/taskbox 0.5.66 → 0.5.68

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.
@@ -17,8 +17,14 @@ export interface TaskDetailDrawerProps extends Omit<TaskDetailHeaderProps, "task
17
17
  task: TaskBoxItem | null;
18
18
  onClose: () => void;
19
19
  onAddComment: (taskSeq: number, text: string, attachments?: TaskBoxAttachment[]) => void;
20
+ /**
21
+ * (모바일 ✓) 모아둔 수정을 **한 번에** 저장한다 — 지정하면 필드별 콜백 대신 이 콜백만 호출한다.
22
+ * ⚠️ 필드별 콜백을 연달아 부르면 PATCH 가 동시에 나가고, 서버가 같은 행을 각자 읽어 병합하면서
23
+ * 마지막 응답이 앞선 필드를 되돌린다(2026-08-09 마감기한 유실 사고). 반드시 1왕복으로 보내라.
24
+ */
25
+ onSaveFields?: (taskSeq: number, fields: Partial<TaskBoxItem>) => void;
20
26
  }
21
27
  /** 업무 상세 드로어 컴포넌트다. */
22
- export declare function TaskDetailDrawer({ open, task: taskProp, onClose, onAddComment, myAccountSeq, onToggleCompleted, onChangeTitle, onChangeIcon, onChangeIconColor, ...bodyProps }: TaskDetailDrawerProps): import("react").JSX.Element | null;
28
+ export declare function TaskDetailDrawer({ open, task: taskProp, onClose, onAddComment, onSaveFields, myAccountSeq, onToggleCompleted, onChangeTitle, onChangeIcon, onChangeIconColor, ...bodyProps }: TaskDetailDrawerProps): import("react").JSX.Element | null;
23
29
  /** 댓글 작성일시 헬퍼를 외부(레이아웃)에서도 쓰도록 내보낸다. */
24
30
  export { nowDateTimeString };