@industry-theme/file-city-panel 0.2.30 → 0.2.32
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/panels/CodeCityPanel.d.ts.map +1 -1
- package/dist/panels/components/GitChangesTree.d.ts +30 -0
- package/dist/panels/components/GitChangesTree.d.ts.map +1 -0
- package/dist/panels/components/Legend.d.ts +19 -3
- package/dist/panels/components/Legend.d.ts.map +1 -1
- package/dist/panels.bundle.js +8452 -624
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAuBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQpD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAuBjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAQpD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAo2CD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAEvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FileTree } from '@principal-ai/repository-abstraction';
|
|
3
|
+
/** Git status data structure with categorized file paths */
|
|
4
|
+
export interface GitStatus {
|
|
5
|
+
staged: string[];
|
|
6
|
+
unstaged: string[];
|
|
7
|
+
untracked: string[];
|
|
8
|
+
deleted: string[];
|
|
9
|
+
}
|
|
10
|
+
/** Git status category for selection callbacks */
|
|
11
|
+
export type GitChangeSelectionStatus = 'staged' | 'unstaged' | 'untracked' | 'deleted';
|
|
12
|
+
interface GitChangesTreeProps {
|
|
13
|
+
/** Git status data with categorized file paths */
|
|
14
|
+
gitStatus: GitStatus;
|
|
15
|
+
/** Optional file tree for "Full Tree" view mode */
|
|
16
|
+
fileTree?: FileTree | null;
|
|
17
|
+
/** Root path for the repository (used for building file trees) */
|
|
18
|
+
rootPath?: string;
|
|
19
|
+
/** Callback when a file is clicked */
|
|
20
|
+
onFileClick?: (filePath: string, status?: GitChangeSelectionStatus) => void;
|
|
21
|
+
/** Callback when a node is hovered */
|
|
22
|
+
onNodeHover?: (nodePath: string | null, isFolder: boolean) => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* GitChangesTree component that displays git changes in a file tree format.
|
|
26
|
+
* Uses GitStatusFileTree from @principal-ade/dynamic-file-tree for rendering.
|
|
27
|
+
*/
|
|
28
|
+
export declare const GitChangesTree: React.FC<GitChangesTreeProps>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=GitChangesTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GitChangesTree.d.ts","sourceRoot":"","sources":["../../../src/panels/components/GitChangesTree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAwB,KAAK,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAE3F,4DAA4D;AAC5D,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,kDAAkD;AAClD,MAAM,MAAM,wBAAwB,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAAC;AAEvF,UAAU,mBAAmB;IAC3B,kDAAkD;IAClD,SAAS,EAAE,SAAS,CAAC;IACrB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC3B,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAC5E,sCAAsC;IACtC,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CACpE;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA6JxD,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { FileTree } from '@principal-ai/repository-abstraction';
|
|
2
3
|
import type { ColorMode } from '../utils/qualityLayers';
|
|
4
|
+
import { type GitStatus, type GitChangeSelectionStatus } from './GitChangesTree';
|
|
5
|
+
export type { GitStatus, GitChangeSelectionStatus } from './GitChangesTree';
|
|
3
6
|
export interface LegendFileType {
|
|
4
7
|
id: string;
|
|
5
8
|
name: string;
|
|
@@ -14,6 +17,12 @@ export interface LegendGitStatus {
|
|
|
14
17
|
color: string;
|
|
15
18
|
count: number;
|
|
16
19
|
enabled: boolean;
|
|
20
|
+
/** Optional: render as border only (true) or filled (false/undefined) */
|
|
21
|
+
borderOnly?: boolean;
|
|
22
|
+
/** Optional: opacity for fill (0-1) */
|
|
23
|
+
opacity?: number;
|
|
24
|
+
/** Optional: border width in pixels */
|
|
25
|
+
borderWidth?: number;
|
|
17
26
|
}
|
|
18
27
|
export interface LegendAgentLayer {
|
|
19
28
|
id: string;
|
|
@@ -31,12 +40,20 @@ export interface LegendQualityMetric {
|
|
|
31
40
|
}
|
|
32
41
|
interface LegendProps {
|
|
33
42
|
fileTypes: LegendFileType[];
|
|
34
|
-
|
|
43
|
+
/** Raw git status data with file path arrays */
|
|
44
|
+
gitStatus?: GitStatus | null;
|
|
45
|
+
/** File tree for expanding directories in git changes view */
|
|
46
|
+
fileTree?: FileTree | null;
|
|
47
|
+
/** Root path for building file trees */
|
|
48
|
+
rootPath?: string;
|
|
35
49
|
agentLayers?: LegendAgentLayer[];
|
|
36
50
|
qualityMetrics?: LegendQualityMetric[];
|
|
37
51
|
colorMode?: ColorMode;
|
|
38
52
|
onItemClick?: (id: string) => void;
|
|
39
|
-
|
|
53
|
+
/** Callback when a git file is clicked */
|
|
54
|
+
onGitFileClick?: (filePath: string, status?: GitChangeSelectionStatus) => void;
|
|
55
|
+
/** Callback when a git node is hovered */
|
|
56
|
+
onGitNodeHover?: (nodePath: string | null, isFolder: boolean) => void;
|
|
40
57
|
onAgentLayerClick?: (id: string) => void;
|
|
41
58
|
onQualityMetricClick?: (id: string) => void;
|
|
42
59
|
onClearAgentLayers?: () => void;
|
|
@@ -48,5 +65,4 @@ interface LegendProps {
|
|
|
48
65
|
* Supports both bottom and right positioning with responsive layout.
|
|
49
66
|
*/
|
|
50
67
|
export declare const Legend: React.FC<LegendProps>;
|
|
51
|
-
export {};
|
|
52
68
|
//# sourceMappingURL=Legend.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../src/panels/components/Legend.tsx"],"names":[],"m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