@libxai/board 0.17.252 → 0.17.254

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.
package/dist/index.d.cts CHANGED
@@ -796,6 +796,32 @@ interface KanbanBoardProps {
796
796
  onUploadAttachments?: (cardId: string, files: File[]) => Promise<void>;
797
797
  /** v0.17.241: Callback to delete an attachment */
798
798
  onDeleteAttachment?: (attachmentId: string) => Promise<void>;
799
+ /** v0.17.254: Comments for TaskDetailModal */
800
+ comments?: Array<{
801
+ id: string;
802
+ taskId: string;
803
+ userId: string;
804
+ content: string;
805
+ createdAt: Date;
806
+ updatedAt?: Date;
807
+ user?: {
808
+ id: string;
809
+ name: string;
810
+ email: string;
811
+ avatarUrl?: string;
812
+ };
813
+ }>;
814
+ /** v0.17.254: Callback to add a comment */
815
+ onAddComment?: (taskId: string, content: string) => Promise<void>;
816
+ /** v0.17.254: Current user info for comment input */
817
+ currentUser?: {
818
+ id: string;
819
+ name: string;
820
+ avatarUrl?: string;
821
+ color?: string;
822
+ };
823
+ /** v0.17.254: Callback when task is opened in modal (to load comments) */
824
+ onTaskOpen?: (taskId: string) => void;
799
825
  }
800
826
  /**
801
827
  * Drag event data
@@ -1166,7 +1192,7 @@ declare class KanbanViewAdapter extends BaseViewAdapter<ViewBoardData> {
1166
1192
  */
1167
1193
  declare function createKanbanView(config?: KanbanViewConfig): KanbanViewAdapter;
1168
1194
 
1169
- declare function KanbanBoard({ board, callbacks, onCardClick, renderProps, config, availableUsers, className, style, isLoading, error, children, availableTags, onCreateTag, attachmentsByCard, onUploadAttachments, onDeleteAttachment, }: KanbanBoardProps & {
1195
+ declare function KanbanBoard({ board, callbacks, onCardClick, renderProps, config, availableUsers, className, style, isLoading, error, children, availableTags, onCreateTag, attachmentsByCard, onUploadAttachments, onDeleteAttachment, comments, onAddComment, currentUser, onTaskOpen, }: KanbanBoardProps & {
1170
1196
  children?: React.ReactNode;
1171
1197
  }): react_jsx_runtime.JSX.Element;
1172
1198
 
@@ -3508,6 +3534,32 @@ interface CalendarBoardProps {
3508
3534
  onCreateTag?: (name: string, color: string) => Promise<TaskTag | null>;
3509
3535
  /** v0.17.241: Attachments map by task ID */
3510
3536
  attachmentsByTask?: Map<string, Attachment[]>;
3537
+ /** v0.17.254: Comments for TaskDetailModal */
3538
+ comments?: Array<{
3539
+ id: string;
3540
+ taskId: string;
3541
+ userId: string;
3542
+ content: string;
3543
+ createdAt: Date;
3544
+ updatedAt?: Date;
3545
+ user?: {
3546
+ id: string;
3547
+ name: string;
3548
+ email: string;
3549
+ avatarUrl?: string;
3550
+ };
3551
+ }>;
3552
+ /** v0.17.254: Callback to add a comment */
3553
+ onAddComment?: (taskId: string, content: string) => Promise<void>;
3554
+ /** v0.17.254: Current user info for comment input */
3555
+ currentUser?: {
3556
+ id: string;
3557
+ name: string;
3558
+ avatarUrl?: string;
3559
+ color?: string;
3560
+ };
3561
+ /** v0.17.254: Callback when task is opened in modal (to load comments) */
3562
+ onTaskOpen?: (taskId: string) => void;
3511
3563
  }
3512
3564
 
3513
3565
  /**
package/dist/index.d.ts CHANGED
@@ -796,6 +796,32 @@ interface KanbanBoardProps {
796
796
  onUploadAttachments?: (cardId: string, files: File[]) => Promise<void>;
797
797
  /** v0.17.241: Callback to delete an attachment */
798
798
  onDeleteAttachment?: (attachmentId: string) => Promise<void>;
799
+ /** v0.17.254: Comments for TaskDetailModal */
800
+ comments?: Array<{
801
+ id: string;
802
+ taskId: string;
803
+ userId: string;
804
+ content: string;
805
+ createdAt: Date;
806
+ updatedAt?: Date;
807
+ user?: {
808
+ id: string;
809
+ name: string;
810
+ email: string;
811
+ avatarUrl?: string;
812
+ };
813
+ }>;
814
+ /** v0.17.254: Callback to add a comment */
815
+ onAddComment?: (taskId: string, content: string) => Promise<void>;
816
+ /** v0.17.254: Current user info for comment input */
817
+ currentUser?: {
818
+ id: string;
819
+ name: string;
820
+ avatarUrl?: string;
821
+ color?: string;
822
+ };
823
+ /** v0.17.254: Callback when task is opened in modal (to load comments) */
824
+ onTaskOpen?: (taskId: string) => void;
799
825
  }
800
826
  /**
801
827
  * Drag event data
@@ -1166,7 +1192,7 @@ declare class KanbanViewAdapter extends BaseViewAdapter<ViewBoardData> {
1166
1192
  */
1167
1193
  declare function createKanbanView(config?: KanbanViewConfig): KanbanViewAdapter;
1168
1194
 
1169
- declare function KanbanBoard({ board, callbacks, onCardClick, renderProps, config, availableUsers, className, style, isLoading, error, children, availableTags, onCreateTag, attachmentsByCard, onUploadAttachments, onDeleteAttachment, }: KanbanBoardProps & {
1195
+ declare function KanbanBoard({ board, callbacks, onCardClick, renderProps, config, availableUsers, className, style, isLoading, error, children, availableTags, onCreateTag, attachmentsByCard, onUploadAttachments, onDeleteAttachment, comments, onAddComment, currentUser, onTaskOpen, }: KanbanBoardProps & {
1170
1196
  children?: React.ReactNode;
1171
1197
  }): react_jsx_runtime.JSX.Element;
1172
1198
 
@@ -3508,6 +3534,32 @@ interface CalendarBoardProps {
3508
3534
  onCreateTag?: (name: string, color: string) => Promise<TaskTag | null>;
3509
3535
  /** v0.17.241: Attachments map by task ID */
3510
3536
  attachmentsByTask?: Map<string, Attachment[]>;
3537
+ /** v0.17.254: Comments for TaskDetailModal */
3538
+ comments?: Array<{
3539
+ id: string;
3540
+ taskId: string;
3541
+ userId: string;
3542
+ content: string;
3543
+ createdAt: Date;
3544
+ updatedAt?: Date;
3545
+ user?: {
3546
+ id: string;
3547
+ name: string;
3548
+ email: string;
3549
+ avatarUrl?: string;
3550
+ };
3551
+ }>;
3552
+ /** v0.17.254: Callback to add a comment */
3553
+ onAddComment?: (taskId: string, content: string) => Promise<void>;
3554
+ /** v0.17.254: Current user info for comment input */
3555
+ currentUser?: {
3556
+ id: string;
3557
+ name: string;
3558
+ avatarUrl?: string;
3559
+ color?: string;
3560
+ };
3561
+ /** v0.17.254: Callback when task is opened in modal (to load comments) */
3562
+ onTaskOpen?: (taskId: string) => void;
3511
3563
  }
3512
3564
 
3513
3565
  /**