@industry-theme/repository-composition-panels 0.2.13 → 0.2.15
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 +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/panels/GitChangesPanel.d.ts +16 -0
- package/dist/panels/GitChangesPanel.d.ts.map +1 -1
- package/dist/panels/GitChangesPanel.stories.d.ts +1 -0
- package/dist/panels/GitChangesPanel.stories.d.ts.map +1 -1
- package/dist/panels/PackageCompositionPanel.d.ts.map +1 -1
- package/dist/panels/components/LensReadinessSection.d.ts +8 -0
- package/dist/panels/components/LensReadinessSection.d.ts.map +1 -0
- package/dist/panels/components/OtherScriptsSection.d.ts +9 -0
- package/dist/panels/components/OtherScriptsSection.d.ts.map +1 -0
- package/dist/panels/components/index.d.ts +2 -0
- package/dist/panels/components/index.d.ts.map +1 -1
- package/dist/panels.bundle.css +10 -0
- package/dist/panels.bundle.js +663 -266
- package/dist/panels.bundle.js.map +1 -1
- package/dist/types/composition.d.ts +2 -0
- package/dist/types/composition.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const onPackageLoad: () => Promise<void>;
|
|
|
13
13
|
*/
|
|
14
14
|
export declare const onPackageUnload: () => Promise<void>;
|
|
15
15
|
export { GitChangesPanel, GitChangesPanelContent, GitChangesPanelPreview } from './panels/GitChangesPanel';
|
|
16
|
-
export type { GitChangesPanelProps } from './panels/GitChangesPanel';
|
|
16
|
+
export type { GitChangesPanelProps, ContextMenuAction } from './panels/GitChangesPanel';
|
|
17
17
|
export { PackageCompositionPanel, PackageCompositionPanelContent, PackageCompositionPanelPreview } from './panels/PackageCompositionPanel';
|
|
18
18
|
export type { PackageCompositionPanelProps } from './panels/PackageCompositionPanel';
|
|
19
19
|
export { SearchPanel, SearchPanelContent, SearchPanelPreview } from './panels/SearchPanel';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,SAAS,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,eAAe,EA2FnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,qBAGzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,qBAG3B,CAAC;AAGF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC3G,YAAY,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,SAAS,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,eAAe,EA2FnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,qBAGzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,qBAG3B,CAAC;AAGF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC3G,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAC3I,YAAY,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC3F,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,YAAY,EACV,SAAS,EACT,wBAAwB,EACxB,aAAa,EACb,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,iBAAiB,GAClB,MAAM,SAAS,CAAC"}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type FileTree } from '@principal-ai/repository-abstraction';
|
|
3
3
|
import type { GitStatus, GitChangeSelectionStatus, PanelComponentProps } from '../types';
|
|
4
|
+
import './GitChangesPanel.css';
|
|
5
|
+
export type ContextMenuAction = {
|
|
6
|
+
type: 'copyFullPath';
|
|
7
|
+
path: string;
|
|
8
|
+
} | {
|
|
9
|
+
type: 'copyRelativePath';
|
|
10
|
+
path: string;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'openFile';
|
|
13
|
+
path: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: 'openFolder';
|
|
16
|
+
path: string;
|
|
17
|
+
};
|
|
4
18
|
export interface GitChangesPanelProps {
|
|
5
19
|
/** Git status data with categorized file paths */
|
|
6
20
|
gitStatus: GitStatus;
|
|
@@ -12,6 +26,8 @@ export interface GitChangesPanelProps {
|
|
|
12
26
|
isLoading?: boolean;
|
|
13
27
|
/** Callback when a file is clicked */
|
|
14
28
|
onFileClick?: (filePath: string, status?: GitChangeSelectionStatus) => void;
|
|
29
|
+
/** Callback when a context menu action is triggered */
|
|
30
|
+
onContextMenuAction?: (action: ContextMenuAction) => void;
|
|
15
31
|
/** Message to display when there are no changes */
|
|
16
32
|
emptyMessage?: string;
|
|
17
33
|
/** Message to display while loading */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitChangesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitChangesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GitChangesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitChangesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,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sB,EAAE,KAAK,CAAC,EAiD1C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAwDzD,CAAC"}
|
|
@@ -25,6 +25,7 @@ declare const meta: {
|
|
|
25
25
|
rootPath?: string | undefined;
|
|
26
26
|
isLoading?: boolean | undefined;
|
|
27
27
|
onFileClick?: ((filePath: string, status?: GitChangeSelectionStatus) => void) | undefined;
|
|
28
|
+
onContextMenuAction?: ((action: import("./GitChangesPanel").ContextMenuAction) => void) | undefined;
|
|
28
29
|
emptyMessage?: string | undefined;
|
|
29
30
|
loadingMessage?: string | undefined;
|
|
30
31
|
selectedFile?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitChangesPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/GitChangesPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAA0B,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpE;;;;;GAKG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GitChangesPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/GitChangesPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAA0B,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpE;;;;;GAKG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;gDA8BqB,CAAC;;;;;;CARe,CAAC;AAEhD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,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KAAK,IAAI,CAAC;CACtD;AAoiBD;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAoNjF,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAgClD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyCjE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LensReadiness } from '../../types/composition';
|
|
3
|
+
interface LensReadinessSectionProps {
|
|
4
|
+
lensReadiness?: Record<string, LensReadiness>;
|
|
5
|
+
}
|
|
6
|
+
export declare const LensReadinessSection: React.FC<LensReadinessSectionProps>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=LensReadinessSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LensReadinessSection.d.ts","sourceRoot":"","sources":["../../../src/panels/components/LensReadinessSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,aAAa,EAA2C,MAAM,yBAAyB,CAAC;AAEtG,UAAU,yBAAyB;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CAC/C;AA+LD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA2EpE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PackageCommand } from '../../types/composition';
|
|
3
|
+
interface OtherScriptsSectionProps {
|
|
4
|
+
commands: PackageCommand[];
|
|
5
|
+
onCommandClick?: (command: PackageCommand) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const OtherScriptsSection: React.FC<OtherScriptsSectionProps>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=OtherScriptsSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OtherScriptsSection.d.ts","sourceRoot":"","sources":["../../../src/panels/components/OtherScriptsSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,UAAU,wBAAwB;IAChC,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;CACpD;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA0HlE,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { DependencyInfoModal } from './DependencyInfoModal';
|
|
2
2
|
export { DependencyRow } from './DependencyRow';
|
|
3
3
|
export { FilterBar } from './FilterBar';
|
|
4
|
+
export { LensReadinessSection } from './LensReadinessSection';
|
|
5
|
+
export { OtherScriptsSection } from './OtherScriptsSection';
|
|
4
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|