@ehfuse/taskbox 0.11.18 → 0.11.19

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.
@@ -5,6 +5,8 @@
5
5
  * 미주입 시 내장 AccountAvatar 폴백.
6
6
  */
7
7
  import type { TaskBoxAttachment, TaskBoxComment, TaskBoxCommentReactionKind } from "../types";
8
+ import type { ComponentType } from "react";
9
+ import type { TaskboxMentionCandidate, TaskboxSlashCommand } from "../types/provider";
8
10
  /** 댓글 섹션 props 다. */
9
11
  export interface TaskCommentsSectionProps {
10
12
  taskSeq: number;
@@ -27,9 +29,27 @@ export declare function TaskCommentsSection({ taskSeq, comments, currentUserName
27
29
  export interface TaskCommentInputProps {
28
30
  onSubmit: (text: string, files?: File[]) => void;
29
31
  rows?: 1 | 2;
32
+ /** 넓은 칸 안내문(commentInput.placeholder 보다 먼저). */
33
+ placeholder?: string;
34
+ /** 좁은 칸(폰 · 한 줄 칸) 안내문(commentInput.placeholderShort 보다 먼저). */
35
+ placeholderShort?: string;
36
+ /** 넓은 화면 서식 에디터를 쓸지(commentInput.richEditor 보다 먼저). 댓글을 평문으로만 그리는 소비처는 false. */
37
+ richEditor?: boolean;
38
+ /** "@" 언급 후보 — [] 를 주면 언급 도우미를 끈다(이름으로 알림을 보내지 않는 소비처). */
39
+ mentionCandidates?: TaskboxMentionCandidate[];
40
+ /** "/" 명령 — true 면 기본 이모지 명령, false 면 끈다. */
41
+ slashCommands?: boolean | TaskboxSlashCommand[];
42
+ /** 파일 · 이미지 첨부(단추 · 끌어놓기 · 붙여넣기)를 받을지. 기본 true. 첨부를 끈 게시판은 false. */
43
+ attachments?: boolean;
44
+ /** 이모지 판(slots.emojiPicker 보다 먼저). */
45
+ emojiPicker?: ComponentType<{
46
+ onPick: (emoji: string) => void;
47
+ }>;
48
+ /** 보내기를 막는다(보내는 중 등). 칸에 쓰는 것은 막지 않는다. */
49
+ disabled?: boolean;
30
50
  }
31
51
  /**
32
52
  * 드로어 하단 고정 댓글 입력이다 — 보내기 버튼은 입력칸 안 오른쪽에 플로팅으로 띄운다.
33
53
  * 파일/이미지 첨부 아이콘은 모바일(1줄)에서는 보내기 버튼 왼쪽에, 데스크톱에서는 입력칸 왼쪽 아래에 둔다.
34
54
  */
35
- export declare function TaskCommentInput({ onSubmit, rows }: TaskCommentInputProps): import("react").JSX.Element;
55
+ export declare function TaskCommentInput({ onSubmit, rows, placeholder, placeholderShort, richEditor, mentionCandidates, slashCommands, attachments, emojiPicker, disabled, }: TaskCommentInputProps): import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.11.18",
3
+ "version": "0.11.19",
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",