@industry-theme/backlogmd-kanban-panel 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/adapters/BacklogAdapter.d.ts +50 -0
- package/dist/adapters/BacklogAdapter.d.ts.map +1 -0
- package/dist/adapters/backlog-parser.d.ts +23 -0
- package/dist/adapters/backlog-parser.d.ts.map +1 -0
- package/dist/adapters/index.d.ts +10 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/types.d.ts +115 -0
- package/dist/adapters/types.d.ts.map +1 -0
- package/dist/panels/KanbanPanel.d.ts.map +1 -1
- package/dist/panels/KanbanPanel.stories.d.ts +9 -4
- package/dist/panels/KanbanPanel.stories.d.ts.map +1 -1
- package/dist/panels/kanban/components/EmptyState.d.ts +12 -0
- package/dist/panels/kanban/components/EmptyState.d.ts.map +1 -0
- package/dist/panels/kanban/components/KanbanColumn.d.ts.map +1 -1
- package/dist/panels/kanban/hooks/useKanbanData.d.ts +10 -2
- package/dist/panels/kanban/hooks/useKanbanData.d.ts.map +1 -1
- package/dist/panels.bundle.js +7149 -309
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BacklogAdapter
|
|
3
|
+
*
|
|
4
|
+
* Provides a clean interface for accessing Backlog.md data from a repository.
|
|
5
|
+
* Encapsulates all Backlog.md-specific logic and file parsing.
|
|
6
|
+
*/
|
|
7
|
+
import type { FileAccessFunctions, IBacklogAdapter, BacklogConfig, Task } from './types';
|
|
8
|
+
export declare class BacklogAdapter implements IBacklogAdapter {
|
|
9
|
+
private fileAccess;
|
|
10
|
+
private configCache;
|
|
11
|
+
private tasksCache;
|
|
12
|
+
constructor(fileAccess: FileAccessFunctions);
|
|
13
|
+
/**
|
|
14
|
+
* Check if the repository is a Backlog.md project
|
|
15
|
+
*/
|
|
16
|
+
isBacklogProject(): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Get the Backlog.md project configuration
|
|
19
|
+
*/
|
|
20
|
+
getConfig(): Promise<BacklogConfig>;
|
|
21
|
+
/**
|
|
22
|
+
* Get the list of status columns from config
|
|
23
|
+
*/
|
|
24
|
+
getStatuses(): Promise<string[]>;
|
|
25
|
+
/**
|
|
26
|
+
* Get all tasks from the backlog
|
|
27
|
+
*/
|
|
28
|
+
getTasks(includeCompleted?: boolean): Promise<Task[]>;
|
|
29
|
+
/**
|
|
30
|
+
* Get tasks grouped by status
|
|
31
|
+
*/
|
|
32
|
+
getTasksByStatus(includeCompleted?: boolean): Promise<Map<string, Task[]>>;
|
|
33
|
+
/**
|
|
34
|
+
* Clear all caches (useful for refresh)
|
|
35
|
+
*/
|
|
36
|
+
clearCache(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Find all task files in the repository
|
|
39
|
+
*/
|
|
40
|
+
private findTaskFiles;
|
|
41
|
+
/**
|
|
42
|
+
* Check if a file path is a task file
|
|
43
|
+
*/
|
|
44
|
+
private isTaskFile;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Factory function to create a BacklogAdapter
|
|
48
|
+
*/
|
|
49
|
+
export declare function createBacklogAdapter(fileAccess: FileAccessFunctions): IBacklogAdapter;
|
|
50
|
+
//# sourceMappingURL=BacklogAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BacklogAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/BacklogAdapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,IAAI,EACL,MAAM,SAAS,CAAC;AAQjB,qBAAa,cAAe,YAAW,eAAe;IACpD,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,WAAW,CAA8B;IACjD,OAAO,CAAC,UAAU,CAAuB;gBAE7B,UAAU,EAAE,mBAAmB;IAI3C;;OAEG;IACI,gBAAgB,IAAI,OAAO;IAiBlC;;OAEG;IACU,SAAS,IAAI,OAAO,CAAC,aAAa,CAAC;IAkDhD;;OAEG;IACU,WAAW,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAK7C;;OAEG;IACU,QAAQ,CAAC,gBAAgB,UAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAmD/D;;OAEG;IACU,gBAAgB,CAC3B,gBAAgB,UAAO,GACtB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAwC/B;;OAEG;IACI,UAAU,IAAI,IAAI;IAKzB;;OAEG;IACH,OAAO,CAAC,aAAa;IAwBrB;;OAEG;IACH,OAAO,CAAC,UAAU;CAUnB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,mBAAmB,GAC9B,eAAe,CAEjB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backlog Parser Utilities
|
|
3
|
+
*
|
|
4
|
+
* Functions for parsing Backlog.md YAML frontmatter and markdown content.
|
|
5
|
+
*/
|
|
6
|
+
import type { Task, BacklogConfig } from './types';
|
|
7
|
+
/**
|
|
8
|
+
* Parse YAML string using the yaml library
|
|
9
|
+
*/
|
|
10
|
+
export declare function parseYaml(yamlString: string): Record<string, unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* Parse Backlog.md config.yml file
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseBacklogConfig(content: string): BacklogConfig;
|
|
15
|
+
/**
|
|
16
|
+
* Parse a Backlog.md task file
|
|
17
|
+
*/
|
|
18
|
+
export declare function parseTaskFile(content: string, filepath: string): Task;
|
|
19
|
+
/**
|
|
20
|
+
* Sort tasks within a status column
|
|
21
|
+
*/
|
|
22
|
+
export declare function sortTasks(tasks: Task[]): Task[];
|
|
23
|
+
//# sourceMappingURL=backlog-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backlog-parser.d.ts","sourceRoot":"","sources":["../../src/adapters/backlog-parser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EACV,IAAI,EAEJ,aAAa,EAEd,MAAM,SAAS,CAAC;AAGjB;;GAEG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAErE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,CAgCjE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAwCrE;AAsGD;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CAqB/C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backlog.md Adapter Module
|
|
3
|
+
*
|
|
4
|
+
* Exports all adapter-related types and utilities.
|
|
5
|
+
*/
|
|
6
|
+
export { BacklogAdapter, createBacklogAdapter } from './BacklogAdapter';
|
|
7
|
+
export type { FileAccessFunctions, IBacklogAdapter, BacklogConfig, Task, TaskMetadata, AcceptanceCriterion, } from './types';
|
|
8
|
+
export { BacklogAdapterError } from './types';
|
|
9
|
+
export { parseYaml, parseBacklogConfig, parseTaskFile, sortTasks, } from './backlog-parser';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxE,YAAY,EACV,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,IAAI,EACJ,YAAY,EACZ,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,aAAa,EACb,SAAS,GACV,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapter Types
|
|
3
|
+
*
|
|
4
|
+
* Defines the interfaces and types used by the BacklogAdapter
|
|
5
|
+
* to provide a clean abstraction over Backlog.md file access.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* File access functions provided to the adapter
|
|
9
|
+
*/
|
|
10
|
+
export interface FileAccessFunctions {
|
|
11
|
+
/**
|
|
12
|
+
* Fetch the content of a file by path
|
|
13
|
+
* @param path - Relative path from repository root (e.g., "backlog/config.yml")
|
|
14
|
+
* @returns Promise resolving to file content as string
|
|
15
|
+
*/
|
|
16
|
+
fetchFile: (path: string) => Promise<string>;
|
|
17
|
+
/**
|
|
18
|
+
* List all files in the repository
|
|
19
|
+
* @returns Array of file paths relative to repository root
|
|
20
|
+
*/
|
|
21
|
+
listFiles: () => string[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Backlog.md project configuration
|
|
25
|
+
*/
|
|
26
|
+
export interface BacklogConfig {
|
|
27
|
+
project_name: string;
|
|
28
|
+
default_status: string;
|
|
29
|
+
statuses: string[];
|
|
30
|
+
labels?: string[];
|
|
31
|
+
milestones?: string[];
|
|
32
|
+
date_format?: string;
|
|
33
|
+
default_editor?: string;
|
|
34
|
+
auto_commit?: boolean;
|
|
35
|
+
zero_padded_ids?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Task metadata from YAML frontmatter
|
|
39
|
+
*/
|
|
40
|
+
export interface TaskMetadata {
|
|
41
|
+
id: string;
|
|
42
|
+
title: string;
|
|
43
|
+
status: string;
|
|
44
|
+
assignee: string[];
|
|
45
|
+
created_date: string;
|
|
46
|
+
updated_date?: string;
|
|
47
|
+
labels: string[];
|
|
48
|
+
dependencies: string[];
|
|
49
|
+
priority?: 'low' | 'medium' | 'high';
|
|
50
|
+
ordinal?: number;
|
|
51
|
+
parent?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Complete task with parsed content
|
|
55
|
+
*/
|
|
56
|
+
export interface Task extends TaskMetadata {
|
|
57
|
+
createdDate: string;
|
|
58
|
+
updatedDate?: string;
|
|
59
|
+
parentTaskId?: string;
|
|
60
|
+
body: string;
|
|
61
|
+
rawContent?: string;
|
|
62
|
+
description?: string;
|
|
63
|
+
acceptanceCriteriaItems?: AcceptanceCriterion[];
|
|
64
|
+
implementationPlan?: string;
|
|
65
|
+
implementationNotes?: string;
|
|
66
|
+
subtasks?: string[];
|
|
67
|
+
reporter?: string;
|
|
68
|
+
milestone?: string;
|
|
69
|
+
branch?: string;
|
|
70
|
+
filePath?: string;
|
|
71
|
+
lastModified?: Date;
|
|
72
|
+
source?: 'local' | 'remote' | 'completed';
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Acceptance criterion from task
|
|
76
|
+
*/
|
|
77
|
+
export interface AcceptanceCriterion {
|
|
78
|
+
index: number;
|
|
79
|
+
text: string;
|
|
80
|
+
checked: boolean;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Main adapter interface
|
|
84
|
+
*/
|
|
85
|
+
export interface IBacklogAdapter {
|
|
86
|
+
/**
|
|
87
|
+
* Get the Backlog.md project configuration
|
|
88
|
+
*/
|
|
89
|
+
getConfig(): Promise<BacklogConfig>;
|
|
90
|
+
/**
|
|
91
|
+
* Get all tasks from the backlog
|
|
92
|
+
* @param includeCompleted - Whether to include completed tasks (default: true)
|
|
93
|
+
*/
|
|
94
|
+
getTasks(includeCompleted?: boolean): Promise<Task[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Get the list of status columns from config
|
|
97
|
+
*/
|
|
98
|
+
getStatuses(): Promise<string[]>;
|
|
99
|
+
/**
|
|
100
|
+
* Get tasks grouped by status
|
|
101
|
+
* @param includeCompleted - Whether to include completed tasks (default: true)
|
|
102
|
+
*/
|
|
103
|
+
getTasksByStatus(includeCompleted?: boolean): Promise<Map<string, Task[]>>;
|
|
104
|
+
/**
|
|
105
|
+
* Check if the repository is a Backlog.md project
|
|
106
|
+
*/
|
|
107
|
+
isBacklogProject(): boolean;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Error thrown when Backlog.md files are not found or invalid
|
|
111
|
+
*/
|
|
112
|
+
export declare class BacklogAdapterError extends Error {
|
|
113
|
+
constructor(message: string);
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/adapters/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanPanel.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"KanbanPanel.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAiHpD;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMrD,CAAC"}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { StoryObj } from '@storybook/react';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
|
-
component:
|
|
5
|
+
component: React.FC<import("@principal-ade/panel-framework-core").PanelComponentProps>;
|
|
5
6
|
parameters: {
|
|
6
7
|
layout: string;
|
|
7
8
|
};
|
|
9
|
+
decorators: ((Story: import("@storybook/core/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
10
|
+
context: import("@principal-ade/panel-framework-core").PanelContextValue;
|
|
11
|
+
actions: import("@principal-ade/panel-framework-core").PanelActions;
|
|
12
|
+
events: import("@principal-ade/panel-framework-core").PanelEventEmitter;
|
|
13
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
8
14
|
tags: string[];
|
|
9
15
|
};
|
|
10
16
|
export default meta;
|
|
11
17
|
type Story = StoryObj<typeof meta>;
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const Loading: Story;
|
|
18
|
+
export declare const EmptyState: Story;
|
|
19
|
+
export declare const WithMockData: Story;
|
|
15
20
|
//# sourceMappingURL=KanbanPanel.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"KanbanPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,QAAA,MAAM,IAAI;;;;;;;;;;;;CAc0B,CAAC;AAErC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA0HnC,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAC;AAKF,eAAO,MAAM,YAAY,EAAE,KAa1B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface EmptyStateProps {
|
|
3
|
+
message?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
showBacklogLink?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* EmptyState component displayed when no tasks are found
|
|
9
|
+
*/
|
|
10
|
+
export declare const EmptyState: React.FC<EmptyStateProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../../src/panels/kanban/components/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoHhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../../src/panels/kanban/components/KanbanColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../../src/panels/kanban/components/KanbanColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmMpD,CAAC"}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import type { Task } from '../backlog-types';
|
|
2
|
+
import type { PanelContextValue, PanelActions } from '../../../types';
|
|
2
3
|
export interface UseKanbanDataResult {
|
|
3
4
|
tasks: Task[];
|
|
4
5
|
statuses: string[];
|
|
5
6
|
isLoading: boolean;
|
|
6
7
|
error: string | null;
|
|
8
|
+
isBacklogProject: boolean;
|
|
7
9
|
tasksByStatus: Map<string, Task[]>;
|
|
8
10
|
refreshData: () => Promise<void>;
|
|
9
11
|
updateTaskStatus: (taskId: string, newStatus: string) => Promise<void>;
|
|
10
12
|
}
|
|
13
|
+
interface UseKanbanDataOptions {
|
|
14
|
+
context?: PanelContextValue;
|
|
15
|
+
actions?: PanelActions;
|
|
16
|
+
}
|
|
11
17
|
/**
|
|
12
18
|
* Hook for managing kanban board data
|
|
13
|
-
*
|
|
19
|
+
* Integrates with Backlog.md via the BacklogAdapter
|
|
20
|
+
* Falls back to mock data if no Backlog.md project is detected
|
|
14
21
|
*/
|
|
15
|
-
export declare function useKanbanData(): UseKanbanDataResult;
|
|
22
|
+
export declare function useKanbanData(options?: UseKanbanDataOptions): UseKanbanDataResult;
|
|
23
|
+
export {};
|
|
16
24
|
//# sourceMappingURL=useKanbanData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKanbanData.d.ts","sourceRoot":"","sources":["../../../../src/panels/kanban/hooks/useKanbanData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"useKanbanData.d.ts","sourceRoot":"","sources":["../../../../src/panels/kanban/hooks/useKanbanData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEtE,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IACnC,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxE;AAED,UAAU,oBAAoB;IAC5B,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,mBAAmB,CAqNjF"}
|