reifyui 0.1.0 → 0.2.0

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.ts CHANGED
@@ -81,6 +81,24 @@ export function useResizablePane(options?: Record<string, unknown>): {
81
81
  };
82
82
  export const PaneResizer: ComponentType<Record<string, unknown>>;
83
83
 
84
+ // ── task list ───────────────────────────────────────────────────────────────
85
+ export interface TaskListPage { items: unknown[]; cursor?: string; }
86
+ export interface TaskListProps {
87
+ fetchPage: (cursor: string) => Promise<TaskListPage> | TaskListPage;
88
+ selected?: string | null;
89
+ onSelect?: (id: string) => void;
90
+ onNew?: () => void;
91
+ onDelete?: (item: any) => void;
92
+ header?: ReactNode;
93
+ renderMeta?: (item: any) => ReactNode;
94
+ refreshNonce?: number;
95
+ emptyLabel?: string;
96
+ newLabel?: string;
97
+ idKey?: string; titleKey?: string; statusKey?: string; timeKey?: string;
98
+ }
99
+ export const TaskList: ComponentType<TaskListProps>;
100
+ export function taskStatusGroup(status: string): 'working' | 'done' | 'failed' | 'idle';
101
+
84
102
  // ── auth client (optional; couples to a /v1/auth-style backend) ──────────────
85
103
  export interface AuthConfig { engine: string; product: string; loginHash?: string; }
86
104
  export function configureAuth(cfg: Partial<AuthConfig> & { product: string; engine: string }): void;