@libxai/board 0.17.180 → 0.17.182

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
@@ -354,6 +354,14 @@ interface GanttConfig {
354
354
  * @default true
355
355
  */
356
356
  enableAutoCriticalPath?: boolean;
357
+ /**
358
+ * v0.17.181: Persist task expanded/collapsed state in localStorage
359
+ * When true, uses default key 'gantt-expanded-tasks'
360
+ * When string, uses that string as the localStorage key (useful for per-project persistence)
361
+ * When false/undefined, expanded state only persists during the current session
362
+ * @default false
363
+ */
364
+ persistExpandedState?: boolean | string;
357
365
  onThemeChange?: (theme: Theme$1) => void;
358
366
  onTaskClick?: (task: Task) => void;
359
367
  onTaskDblClick?: (task: Task) => void;
@@ -487,6 +495,30 @@ interface Subtask {
487
495
  * Card status types
488
496
  */
489
497
  type CardStatus = 'TODO' | 'IN_PROGRESS' | 'REVIEW' | 'DONE' | 'BLOCKED';
498
+ /**
499
+ * File attachment on a card
500
+ * v0.17.182: Moved before Card interface to allow usage in Card.attachments
501
+ */
502
+ interface Attachment {
503
+ /** Unique identifier */
504
+ id: string;
505
+ /** Card ID */
506
+ cardId: string;
507
+ /** File name */
508
+ name: string;
509
+ /** File size in bytes */
510
+ size: number;
511
+ /** MIME type */
512
+ type: string;
513
+ /** File URL or data URI */
514
+ url: string;
515
+ /** Upload timestamp */
516
+ uploadedAt: Date | string;
517
+ /** User who uploaded */
518
+ uploadedBy: string;
519
+ /** Thumbnail URL (for images) */
520
+ thumbnailUrl?: string;
521
+ }
490
522
  /**
491
523
  * Card entity
492
524
  * Represents a single task/item in the Kanban board
@@ -530,6 +562,8 @@ interface Card$1 {
530
562
  color?: string;
531
563
  /** v0.17.158: Tags with colors (ClickUp-style) */
532
564
  tags?: TaskTag[];
565
+ /** v0.17.182: Attachments for displaying thumbnails in card */
566
+ attachments?: Attachment[];
533
567
  /** Custom metadata */
534
568
  metadata?: Record<string, unknown>;
535
569
  createdAt?: Date | string;
@@ -847,29 +881,6 @@ interface Activity {
847
881
  /** Additional metadata */
848
882
  metadata?: Record<string, any>;
849
883
  }
850
- /**
851
- * File attachment on a card
852
- */
853
- interface Attachment {
854
- /** Unique identifier */
855
- id: string;
856
- /** Card ID */
857
- cardId: string;
858
- /** File name */
859
- name: string;
860
- /** File size in bytes */
861
- size: number;
862
- /** MIME type */
863
- type: string;
864
- /** File URL or data URI */
865
- url: string;
866
- /** Upload timestamp */
867
- uploadedAt: Date | string;
868
- /** User who uploaded */
869
- uploadedBy: string;
870
- /** Thumbnail URL (for images) */
871
- thumbnailUrl?: string;
872
- }
873
884
  /**
874
885
  * Bulk operations callbacks
875
886
  */
package/dist/index.d.ts CHANGED
@@ -354,6 +354,14 @@ interface GanttConfig {
354
354
  * @default true
355
355
  */
356
356
  enableAutoCriticalPath?: boolean;
357
+ /**
358
+ * v0.17.181: Persist task expanded/collapsed state in localStorage
359
+ * When true, uses default key 'gantt-expanded-tasks'
360
+ * When string, uses that string as the localStorage key (useful for per-project persistence)
361
+ * When false/undefined, expanded state only persists during the current session
362
+ * @default false
363
+ */
364
+ persistExpandedState?: boolean | string;
357
365
  onThemeChange?: (theme: Theme$1) => void;
358
366
  onTaskClick?: (task: Task) => void;
359
367
  onTaskDblClick?: (task: Task) => void;
@@ -487,6 +495,30 @@ interface Subtask {
487
495
  * Card status types
488
496
  */
489
497
  type CardStatus = 'TODO' | 'IN_PROGRESS' | 'REVIEW' | 'DONE' | 'BLOCKED';
498
+ /**
499
+ * File attachment on a card
500
+ * v0.17.182: Moved before Card interface to allow usage in Card.attachments
501
+ */
502
+ interface Attachment {
503
+ /** Unique identifier */
504
+ id: string;
505
+ /** Card ID */
506
+ cardId: string;
507
+ /** File name */
508
+ name: string;
509
+ /** File size in bytes */
510
+ size: number;
511
+ /** MIME type */
512
+ type: string;
513
+ /** File URL or data URI */
514
+ url: string;
515
+ /** Upload timestamp */
516
+ uploadedAt: Date | string;
517
+ /** User who uploaded */
518
+ uploadedBy: string;
519
+ /** Thumbnail URL (for images) */
520
+ thumbnailUrl?: string;
521
+ }
490
522
  /**
491
523
  * Card entity
492
524
  * Represents a single task/item in the Kanban board
@@ -530,6 +562,8 @@ interface Card$1 {
530
562
  color?: string;
531
563
  /** v0.17.158: Tags with colors (ClickUp-style) */
532
564
  tags?: TaskTag[];
565
+ /** v0.17.182: Attachments for displaying thumbnails in card */
566
+ attachments?: Attachment[];
533
567
  /** Custom metadata */
534
568
  metadata?: Record<string, unknown>;
535
569
  createdAt?: Date | string;
@@ -847,29 +881,6 @@ interface Activity {
847
881
  /** Additional metadata */
848
882
  metadata?: Record<string, any>;
849
883
  }
850
- /**
851
- * File attachment on a card
852
- */
853
- interface Attachment {
854
- /** Unique identifier */
855
- id: string;
856
- /** Card ID */
857
- cardId: string;
858
- /** File name */
859
- name: string;
860
- /** File size in bytes */
861
- size: number;
862
- /** MIME type */
863
- type: string;
864
- /** File URL or data URI */
865
- url: string;
866
- /** Upload timestamp */
867
- uploadedAt: Date | string;
868
- /** User who uploaded */
869
- uploadedBy: string;
870
- /** Thumbnail URL (for images) */
871
- thumbnailUrl?: string;
872
- }
873
884
  /**
874
885
  * Bulk operations callbacks
875
886
  */