@industry-theme/file-city-panel 0.3.33 → 0.3.35

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.
Files changed (47) hide show
  1. package/dist/index.d.ts +4 -3
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/panels/CodeCityPanel.d.ts +3 -3
  4. package/dist/panels/CodeCityPanel.d.ts.map +1 -1
  5. package/dist/panels/FeedCodeCityPanel.d.ts +2 -12
  6. package/dist/panels/FeedCodeCityPanel.d.ts.map +1 -1
  7. package/dist/panels.bundle.js +13 -17
  8. package/dist/panels.bundle.js.map +1 -1
  9. package/dist/types/index.d.ts +129 -1
  10. package/dist/types/index.d.ts.map +1 -1
  11. package/package.json +1 -1
  12. package/dist/components/TourPlayer.stories.d.ts +0 -76
  13. package/dist/components/TourPlayer.stories.d.ts.map +0 -1
  14. package/dist/panels/AgentMailFileCityPanel.stories.d.ts +0 -34
  15. package/dist/panels/AgentMailFileCityPanel.stories.d.ts.map +0 -1
  16. package/dist/panels/AgentMailPanel.stories.d.ts +0 -42
  17. package/dist/panels/AgentMailPanel.stories.d.ts.map +0 -1
  18. package/dist/panels/CodeCityPanel.stories.d.ts +0 -114
  19. package/dist/panels/CodeCityPanel.stories.d.ts.map +0 -1
  20. package/dist/panels/FeedCodeCityPanel.stories.d.ts +0 -31
  21. package/dist/panels/FeedCodeCityPanel.stories.d.ts.map +0 -1
  22. package/dist/panels/StressTest.stories.d.ts +0 -49
  23. package/dist/panels/StressTest.stories.d.ts.map +0 -1
  24. package/dist/panels/components/AgentActivityView.stories.d.ts +0 -34
  25. package/dist/panels/components/AgentActivityView.stories.d.ts.map +0 -1
  26. package/dist/panels/components/FeedProjectHeader.stories.d.ts +0 -54
  27. package/dist/panels/components/FeedProjectHeader.stories.d.ts.map +0 -1
  28. package/dist/panels/components/FileCardList.stories.d.ts +0 -62
  29. package/dist/panels/components/FileCardList.stories.d.ts.map +0 -1
  30. package/dist/panels/components/GitChangesCardList.stories.d.ts +0 -30
  31. package/dist/panels/components/GitChangesCardList.stories.d.ts.map +0 -1
  32. package/dist/panels/components/GitChangesTree.stories.d.ts +0 -42
  33. package/dist/panels/components/GitChangesTree.stories.d.ts.map +0 -1
  34. package/dist/panels/components/LegendTabs.stories.d.ts +0 -38
  35. package/dist/panels/components/LegendTabs.stories.d.ts.map +0 -1
  36. package/dist/panels/components/MessageActivityFeed.stories.d.ts +0 -38
  37. package/dist/panels/components/MessageActivityFeed.stories.d.ts.map +0 -1
  38. package/dist/panels/components/PackageInfo.stories.d.ts +0 -50
  39. package/dist/panels/components/PackageInfo.stories.d.ts.map +0 -1
  40. package/dist/panels/components/PackageManagerIcon.stories.d.ts +0 -58
  41. package/dist/panels/components/PackageManagerIcon.stories.d.ts.map +0 -1
  42. package/dist/panels/components/PrChangesTree.stories.d.ts +0 -42
  43. package/dist/panels/components/PrChangesTree.stories.d.ts.map +0 -1
  44. package/dist/panels/components/ProjectInfoHeader.stories.d.ts +0 -46
  45. package/dist/panels/components/ProjectInfoHeader.stories.d.ts.map +0 -1
  46. package/dist/panels/components/ReservationsView.stories.d.ts +0 -42
  47. package/dist/panels/components/ReservationsView.stories.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -2,8 +2,9 @@ import type { PanelDefinition } from './types';
2
2
  /**
3
3
  * Export array of panel definitions.
4
4
  * This is the required export for panel extensions.
5
+ * Using generic types for v0.4.2+ typed actions and context.
5
6
  */
6
- export declare const panels: PanelDefinition[];
7
+ export declare const panels: PanelDefinition<any, any>[];
7
8
  /**
8
9
  * Optional: Called once when the entire package is loaded.
9
10
  * Use this for package-level initialization.
@@ -22,7 +23,7 @@ export { codeCityPanelTools, codeCityPanelToolsMetadata, focusBuildingTool, sele
22
23
  /**
23
24
  * Export types for host applications to create the fileCityColorModes slice.
24
25
  */
25
- export type { FileCityColorModesSliceData, QualitySliceData, ColorMode, ColorModeConfig, FileMetricData, HighlightLayer, } from './types';
26
+ export type { FileCityColorModesSliceData, QualitySliceData, ColorMode, ColorModeConfig, FileMetricData, HighlightLayer, CodeCityPanelPropsTyped, CodeCityPanelContext, } from './types';
26
27
  /**
27
28
  * Export color mode constants for host applications.
28
29
  */
@@ -35,7 +36,7 @@ export type { ProjectInfo } from './panels/components/ProjectInfoHeader';
35
36
  export { FeedProjectHeader, FeedProjectHeaderSkeleton } from './panels/components/FeedProjectHeader';
36
37
  export type { GitHubRepoInfo, RootPackageInfo } from './panels/components/FeedProjectHeader';
37
38
  export { FeedCodeCityPanel } from './panels/FeedCodeCityPanel';
38
- export type { FeedProjectSliceData } from './panels/FeedCodeCityPanel';
39
+ export type { FeedProjectSliceData, FeedCodeCityPanelPropsTyped, FeedCodeCityPanelContext } from './types';
39
40
  export { FileCardList } from './panels/components/FileCardList';
40
41
  export type { FileCardItem } from './panels/components/FileCardList';
41
42
  export { GitChangesCardList } from './panels/components/GitChangesCardList';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,SAAS,CAAC;AAGlE;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,eAAe,EAyEnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,qBAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAG3B,CAAC;AAEF;;;GAGG;AACH,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,GACd,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,YAAY,EACV,2BAA2B,EAC3B,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,cAAc,EACd,cAAc,GACf,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,OAAO,EAAE,iBAAiB,EA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,wCAAwC,CAAC;AAC5E,YAAY,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,YAAY,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,YAAY,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAE1F;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACzF,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,YAAY,EACV,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { PanelComponentProps } from '../types';
2
+ import type { CodeCityPanelPropsTyped } from '../types';
3
3
  /**
4
4
  * Packages slice data - package information from codebase-composition
5
5
  */
@@ -83,7 +83,7 @@ export type { StoryboardContextSliceData } from '@principal-ai/principal-view-co
83
83
  /**
84
84
  * CodeCityPanelContent - Internal component that uses theme
85
85
  */
86
- declare const CodeCityPanelContent: React.FC<PanelComponentProps>;
86
+ declare const CodeCityPanelContent: React.FC<CodeCityPanelPropsTyped>;
87
87
  /**
88
88
  * CodeCityPanelContent - Internal component that uses theme
89
89
  * Exported separately for flexibility
@@ -100,7 +100,7 @@ export { CodeCityPanelContent };
100
100
  *
101
101
  * Note: This component expects to be rendered within a ThemeProvider from the host.
102
102
  */
103
- export declare const CodeCityPanel: React.FC<PanelComponentProps>;
103
+ export declare const CodeCityPanel: React.FC<CodeCityPanelPropsTyped>;
104
104
  /**
105
105
  * Preview component for panel selection
106
106
  */
@@ -1 +1 @@
1
- {"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAkCjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAgBpD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,KAAK,CAAC;QACd,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE;YACX,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,cAAc,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;YACpG,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACzC,iBAAiB,CAAC,EAAE,KAAK,CAAC;gBAAE,IAAI,EAAE,MAAM,CAAC;gBAAC,OAAO,EAAE,MAAM,CAAA;aAAE,CAAC,CAAC;YAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;SAC1B,CAAC;KACH,CAAC,CAAC;IACH,OAAO,EAAE;QACP,UAAU,EAAE,OAAO,C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D,CAAC;IACF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE;QACb,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;IACF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAGD,YAAY,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAmCpF;;GAEG;AACH,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAy+D3D,CAAC;AAEF;;;GAGG;AACH,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAE3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
@@ -1,15 +1,5 @@
1
1
  import React from 'react';
2
- import { GitHubRepoInfo, RootPackageInfo } from './components/FeedProjectHeader';
3
- import type { PanelComponentProps } from '../types';
4
- /**
5
- * Slice data for feed project info
6
- */
7
- export interface FeedProjectSliceData {
8
- /** GitHub repository information */
9
- repo: GitHubRepoInfo;
10
- /** Root package information (optional) */
11
- rootPackage?: RootPackageInfo;
12
- }
2
+ import type { FeedCodeCityPanelPropsTyped } from '../types';
13
3
  /**
14
4
  * FeedCodeCityPanel - A file city panel designed for feed view context.
15
5
  *
@@ -21,7 +11,7 @@ export interface FeedProjectSliceData {
21
11
  * Emits:
22
12
  * - project:open - When the "Open" button is clicked
23
13
  */
24
- export declare const FeedCodeCityPanel: React.FC<PanelComponentProps>;
14
+ export declare const FeedCodeCityPanel: React.FC<FeedCodeCityPanelPropsTyped>;
25
15
  /**
26
16
  * Preview component for panel selection
27
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"FeedCodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/FeedCodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EAAgD,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAgB/H,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,UAAU,CAAC;AAsBpE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,IAAI,EAAE,cAAc,CAAC;IACrB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AA8WD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAE3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EA8B5C,CAAC"}
1
+ {"version":3,"file":"FeedCodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/FeedCodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAmBjF,OAAO,KAAK,EAAE,2BAA2B,EAAwC,MAAM,UAAU,CAAC;AAkYlG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAEnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EA8B5C,CAAC"}
@@ -98712,7 +98712,7 @@ const CodeCityPanelContent = ({
98712
98712
  const [tourHighlightLayers, setTourHighlightLayers] = useState([]);
98713
98713
  const [tourColorMode, setTourColorMode] = useState(null);
98714
98714
  const hasAutoShownTourRef = useRef(false);
98715
- const sliceSelectedColorMode = (_b = (_a = context.getSlice("fileCityColorModes")) == null ? void 0 : _a.data) == null ? void 0 : _b.selectedColorMode;
98715
+ const sliceSelectedColorMode = (_b = (_a = context.fileCityColorModes) == null ? void 0 : _a.data) == null ? void 0 : _b.selectedColorMode;
98716
98716
  const colorMode = tourColorMode || sliceSelectedColorMode || "fileTypes";
98717
98717
  const [hoveredPackagePath, setHoveredPackagePath] = useState(null);
98718
98718
  const [selectedPackagePath, setSelectedPackagePath] = useState(null);
@@ -98754,15 +98754,15 @@ const CodeCityPanelContent = ({
98754
98754
  return { mapSize, legendPosition: "top" };
98755
98755
  }
98756
98756
  }, [containerSize]);
98757
- const fileTreeSlice = context.getSlice("fileTree");
98758
- const gitSlice = context.getSlice("gitStatusWithFiles");
98759
- const prFilesSlice = context.getSlice("prFiles");
98760
- const commitFilesSlice = context.getSlice("commitFiles");
98761
- const storyboardContextSlice = context.getSlice("storyboardContext");
98762
- const agentHighlightLayersSlice = context.getSlice("agentHighlightLayers");
98763
- const colorModesSlice = context.getSlice("fileCityColorModes");
98757
+ const fileTreeSlice = context.fileTree;
98758
+ const gitSlice = context.gitStatusWithFiles;
98759
+ const prFilesSlice = context.prFiles;
98760
+ const commitFilesSlice = context.commitFiles;
98761
+ const storyboardContextSlice = context.storyboardContext;
98762
+ const agentHighlightLayersSlice = context.agentHighlightLayers;
98763
+ const colorModesSlice = context.fileCityColorModes;
98764
98764
  const qualityData = (_c = colorModesSlice == null ? void 0 : colorModesSlice.data) == null ? void 0 : _c.qualityData;
98765
- const packagesSlice = context.getSlice("packages");
98765
+ const packagesSlice = context.packages;
98766
98766
  const fileColorLayersRegistered = useRef(false);
98767
98767
  const gitLayersRegistered = useRef(false);
98768
98768
  const prFilesLayersRegistered = useRef(false);
@@ -100690,7 +100690,7 @@ const FeedCodeCityPanelContent = ({
100690
100690
  const [feedProjectLoading, setFeedProjectLoading] = useState(false);
100691
100691
  useEffect(() => {
100692
100692
  const syncSlice = () => {
100693
- const slice = context.getSlice("feedProject");
100693
+ const slice = context.feedProject;
100694
100694
  if (slice) {
100695
100695
  setFeedProjectData(slice.data ?? null);
100696
100696
  setFeedProjectLoading(slice.loading);
@@ -100734,7 +100734,7 @@ const FeedCodeCityPanelContent = ({
100734
100734
  return { mapSize, legendPosition: "bottom" };
100735
100735
  }
100736
100736
  }, [containerSize]);
100737
- const fileTreeSlice = context.getSlice("fileTree");
100737
+ const fileTreeSlice = context.fileTree;
100738
100738
  useEffect(() => {
100739
100739
  if (!(fileTreeSlice == null ? void 0 : fileTreeSlice.data) || fileTreeSlice.loading) {
100740
100740
  return;
@@ -101652,9 +101652,7 @@ const panels = [
101652
101652
  "File City Panel mounted",
101653
101653
  (_a = context.currentScope.repository) == null ? void 0 : _a.path
101654
101654
  );
101655
- if (context.hasSlice("fileTree") && !context.isSliceLoading("fileTree")) {
101656
- await context.refresh("repository", "fileTree");
101657
- }
101655
+ await context.refresh("repository", "fileTree");
101658
101656
  },
101659
101657
  // Optional: Called when this specific panel is unmounted
101660
101658
  onUnmount: async (_context) => {
@@ -101681,9 +101679,7 @@ const panels = [
101681
101679
  "Feed File City Panel mounted",
101682
101680
  (_a = context.currentScope.repository) == null ? void 0 : _a.path
101683
101681
  );
101684
- if (context.hasSlice("fileTree") && !context.isSliceLoading("fileTree")) {
101685
- await context.refresh("repository", "fileTree");
101686
- }
101682
+ await context.refresh("repository", "fileTree");
101687
101683
  },
101688
101684
  onUnmount: async (_context) => {
101689
101685
  console.log("Feed File City Panel unmounting");