@ehfuse/taskbox 0.11.19 → 0.11.20

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.
@@ -7,6 +7,7 @@
7
7
  * - RichCommentBody: 서식 댓글을 허용 태그만 남겨 그린다. 링크는 소비처 열기(openExternalUrl), "@이름" 은 파랗게.
8
8
  */
9
9
  import { type ReactNode } from "react";
10
+ import type { TaskboxMentionCandidate, TaskboxSlashCommand } from "../types";
10
11
  export interface CommentRichEditorHandle {
11
12
  /** 저장할 댓글 글(서식 없으면 평문, 비었으면 ""). */
12
13
  getComment: () => string;
@@ -32,6 +33,9 @@ export interface CommentRichEditorProps {
32
33
  * boxed — 둥근 테두리 상자(댓글 고치기처럼 목록 사이에 놓일 때).
33
34
  */
34
35
  variant?: "bare" | "boxed";
36
+ /** "@" 언급 후보 · "/" 명령(0.11.20) — 안 주면 Provider 설정. 업무 상세 밖 소비처(게시판 댓글)가 TaskCommentInput 으로 준 값을 그대로 잇는다. */
37
+ mentionCandidates?: TaskboxMentionCandidate[];
38
+ slashCommands?: boolean | TaskboxSlashCommand[];
35
39
  }
36
40
  export declare const CommentRichEditor: import("react").ForwardRefExoticComponent<CommentRichEditorProps & import("react").RefAttributes<CommentRichEditorHandle>>;
37
41
  /** 서식 댓글 보기 — 허용 태그만 그리고, 링크는 소비처 열기로, "@이름" 은 파랗게. */
@@ -8,7 +8,12 @@
8
8
  * 쓰는 법 — 에디터를 감싼 상자에 `handlers`(onKeyDownCapture · onKeyUp · onMouseUp · onInput)를 펴 넣고 `popper` 를 옆에 그린다.
9
9
  */
10
10
  import { type KeyboardEvent, type ReactNode } from "react";
11
- export declare function useEditableAssist(): {
11
+ import type { TaskboxMentionCandidate, TaskboxSlashCommand } from "../types";
12
+ /**
13
+ * candidates · slashCommands — 소비처가 칸마다 준 언급 후보 · "/" 명령(0.11.20 — TaskCommentInput props 를 서식 칸까지 잇는다).
14
+ * 안 주면 Provider 설정을 따른다(업무 상세는 바뀌지 않는다).
15
+ */
16
+ export declare function useEditableAssist(candidates?: TaskboxMentionCandidate[], slashCommands?: boolean | TaskboxSlashCommand[]): {
12
17
  handlers: {
13
18
  onKeyDownCapture: (event: KeyboardEvent<HTMLElement>) => void;
14
19
  onKeyUp: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.11.19",
3
+ "version": "0.11.20",
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",