@1d1s/design-system 2.11.0 → 2.11.2

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.
@@ -24,9 +24,15 @@ export interface CommentThreadProps {
24
24
  replyCancelLabel?: string;
25
25
  replyButtonLabel?: string;
26
26
  loadMoreRepliesLabel?: string;
27
+ /**
28
+ * 답글 입력이 열릴 때 해당 입력으로 자동 포커스 (default `true`).
29
+ * 열린 입력은 `[data-reply-input]` 으로 타겟팅할 수 있다 — 닫힌 입력에는 붙지 않으므로
30
+ * 셀렉터는 항상 열려 있는 하나만 가리킨다.
31
+ */
32
+ autoFocusReply?: boolean;
27
33
  onDelete?(comment: CommentNode): void;
28
34
  onReport?(comment: CommentNode): void;
29
35
  onReplySubmit?(comment: CommentNode, content: string): void;
30
36
  onLoadMoreReplies?(comment: CommentNode): void;
31
37
  }
32
- export declare function CommentThread({ comments, currentUserId, className, replyPlaceholder, replySubmitLabel, replyCancelLabel, replyButtonLabel, loadMoreRepliesLabel, onReplySubmit, onLoadMoreReplies, onDelete, onReport, }: CommentThreadProps): React.ReactElement;
38
+ export declare function CommentThread({ comments, currentUserId, className, replyPlaceholder, replySubmitLabel, replyCancelLabel, replyButtonLabel, loadMoreRepliesLabel, autoFocusReply, onReplySubmit, onLoadMoreReplies, onDelete, onReport, }: CommentThreadProps): React.ReactElement;