@industry-theme/file-city-panel 0.2.70 → 0.2.73
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/components/ContextContainer.d.ts +38 -0
- package/dist/components/ContextContainer.d.ts.map +1 -0
- package/dist/components/TourPlayer.d.ts +31 -0
- package/dist/components/TourPlayer.d.ts.map +1 -0
- package/dist/components/TourPlayer.stories.d.ts +56 -0
- package/dist/components/TourPlayer.stories.d.ts.map +1 -0
- package/dist/components/TourPlayerIntegration.d.ts +23 -0
- package/dist/components/TourPlayerIntegration.d.ts.map +1 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useTourPlayer.d.ts +55 -0
- package/dist/hooks/useTourPlayer.d.ts.map +1 -0
- package/dist/panels/CodeCityPanel.d.ts +9 -0
- package/dist/panels/CodeCityPanel.d.ts.map +1 -1
- package/dist/panels/CodeCityPanel.stories.d.ts +4 -0
- package/dist/panels/CodeCityPanel.stories.d.ts.map +1 -1
- package/dist/panels/components/CoverEditor.d.ts +22 -0
- package/dist/panels/components/CoverEditor.d.ts.map +1 -0
- package/dist/panels/components/Legend.d.ts.map +1 -1
- package/dist/panels/components/LegendTabs.d.ts +1 -0
- package/dist/panels/components/LegendTabs.d.ts.map +1 -1
- package/dist/panels/index.d.ts +5 -0
- package/dist/panels/index.d.ts.map +1 -0
- package/dist/panels/utils/qualityLayers.d.ts +2 -14
- package/dist/panels/utils/qualityLayers.d.ts.map +1 -1
- package/dist/panels.bundle.js +36921 -1375
- package/dist/panels.bundle.js.map +1 -1
- package/dist/types/IntroductionTour.d.ts +108 -0
- package/dist/types/IntroductionTour.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/tourParser.d.ts +46 -0
- package/dist/utils/tourParser.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ContextContainerProps {
|
|
3
|
+
/** Position of the context area - affects border styling */
|
|
4
|
+
position?: 'right' | 'bottom';
|
|
5
|
+
/** Content to render inside the container */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/** Optional additional styles to merge with container styles */
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
/** Optional className for the container */
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* ContextContainer - Standard container for components in the Context Panel area
|
|
14
|
+
*
|
|
15
|
+
* Provides the critical flex layout properties needed for components to work correctly
|
|
16
|
+
* in the CodeCityPanel's Context Panel area. Handles position-aware border styling.
|
|
17
|
+
*
|
|
18
|
+
* ## Critical Properties
|
|
19
|
+
* - `flex: 1` - Fills all available space in the flex container
|
|
20
|
+
* - `minWidth: 0` - Allows the flex item to shrink below content's natural width
|
|
21
|
+
* - `minHeight: 0` - Allows the flex item to shrink below content's natural height
|
|
22
|
+
* - `overflow: 'hidden'` - Prevents content overflow and layout breaking
|
|
23
|
+
*
|
|
24
|
+
* ## Position-Aware Borders
|
|
25
|
+
* - `position="bottom"` - Adds top border
|
|
26
|
+
* - `position="right"` - Adds left border
|
|
27
|
+
*
|
|
28
|
+
* ## Usage
|
|
29
|
+
* ```tsx
|
|
30
|
+
* <ContextContainer position="right">
|
|
31
|
+
* <div style={{ flex: 1, minHeight: 0, overflow: 'auto' }}>
|
|
32
|
+
* Your scrollable content
|
|
33
|
+
* </div>
|
|
34
|
+
* </ContextContainer>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare const ContextContainer: React.FC<ContextContainerProps>;
|
|
38
|
+
//# sourceMappingURL=ContextContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextContainer.d.ts","sourceRoot":"","sources":["../../src/components/ContextContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,qBAAqB;IACpC,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC9B,6CAA6C;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gEAAgE;IAChE,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA+B5D,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IntroductionTour, IntroductionTourStep } from '../types/IntroductionTour';
|
|
3
|
+
export interface TourPlayerProps {
|
|
4
|
+
/** The introduction tour to play */
|
|
5
|
+
tour: IntroductionTour;
|
|
6
|
+
/** Current step index (controlled mode) */
|
|
7
|
+
currentStepIndex?: number;
|
|
8
|
+
/** Callback when step changes */
|
|
9
|
+
onStepChange?: (stepIndex: number, step: IntroductionTourStep) => void;
|
|
10
|
+
/** Callback when tour exits */
|
|
11
|
+
onExit?: () => void;
|
|
12
|
+
/** Callback when an interactive action is triggered */
|
|
13
|
+
onInteractiveAction?: (action: {
|
|
14
|
+
type: string;
|
|
15
|
+
target?: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
/** Whether the tour player is visible */
|
|
18
|
+
visible?: boolean;
|
|
19
|
+
/** Position of the player UI - 'right'/'bottom' for Context Panel flex layout, or 'top'/'overlay' for absolute positioning */
|
|
20
|
+
position?: 'top' | 'bottom' | 'overlay' | 'right';
|
|
21
|
+
/** Skip welcome screen and start playing immediately */
|
|
22
|
+
skipWelcome?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* TourPlayer - Interactive guided tour player for introduction tours
|
|
26
|
+
*
|
|
27
|
+
* Displays tour steps, navigation controls, progress tracking, and
|
|
28
|
+
* triggers events for focus/highlight changes in the File City visualization.
|
|
29
|
+
*/
|
|
30
|
+
export declare const TourPlayer: React.FC<TourPlayerProps>;
|
|
31
|
+
//# sourceMappingURL=TourPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourPlayer.d.ts","sourceRoot":"","sources":["../../src/components/TourPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAahE,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGxF,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,IAAI,EAAE,gBAAgB,CAAC;IAEvB,2CAA2C;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,iCAAiC;IACjC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAEvE,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB,uDAAuD;IACvD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAE1E,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,8HAA8H;IAC9H,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;IAElD,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAktBhD,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TourPlayer } from './TourPlayer';
|
|
3
|
+
declare const meta: Meta<typeof TourPlayer>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TourPlayer>;
|
|
6
|
+
/**
|
|
7
|
+
* Welcome Screen - Story not yet started
|
|
8
|
+
* Shows the initial welcome screen with story info and prerequisites
|
|
9
|
+
*/
|
|
10
|
+
export declare const WelcomeScreen: Story;
|
|
11
|
+
/**
|
|
12
|
+
* First Step - Beginning of the tour
|
|
13
|
+
* Shows the first step with navigation controls
|
|
14
|
+
*/
|
|
15
|
+
export declare const FirstStep: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Middle Step - Tour in progress
|
|
18
|
+
* Shows a step in the middle of the tour
|
|
19
|
+
*/
|
|
20
|
+
export declare const MiddleStep: Story;
|
|
21
|
+
/**
|
|
22
|
+
* Last Step - End of tour
|
|
23
|
+
* Shows the final step with completion state
|
|
24
|
+
*/
|
|
25
|
+
export declare const LastStep: Story;
|
|
26
|
+
/**
|
|
27
|
+
* Position Top - Player at top of screen
|
|
28
|
+
* Shows the story player positioned at the top
|
|
29
|
+
*/
|
|
30
|
+
export declare const PositionTop: Story;
|
|
31
|
+
/**
|
|
32
|
+
* Position Overlay - Centered modal style
|
|
33
|
+
* Shows the story player as a centered overlay
|
|
34
|
+
*/
|
|
35
|
+
export declare const PositionOverlay: Story;
|
|
36
|
+
/**
|
|
37
|
+
* With Interactive Actions - Showcasing action buttons
|
|
38
|
+
* Shows a step with multiple interactive actions
|
|
39
|
+
*/
|
|
40
|
+
export declare const WithInteractiveActions: Story;
|
|
41
|
+
/**
|
|
42
|
+
* With Many Resources - Multiple resource links
|
|
43
|
+
* Shows a step with various resource types
|
|
44
|
+
*/
|
|
45
|
+
export declare const WithManyResources: Story;
|
|
46
|
+
/**
|
|
47
|
+
* Interactive Complete Tour - Fully interactive example
|
|
48
|
+
* Demonstrates a complete tour with all navigation features
|
|
49
|
+
*/
|
|
50
|
+
export declare const InteractiveCompleteTour: Story;
|
|
51
|
+
/**
|
|
52
|
+
* Advanced Story - For experienced users
|
|
53
|
+
* Shows a story targeting advanced users with complex concepts
|
|
54
|
+
*/
|
|
55
|
+
export declare const AdvancedStory: Story;
|
|
56
|
+
//# sourceMappingURL=TourPlayer.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourPlayer.stories.d.ts","sourceRoot":"","sources":["../../src/components/TourPlayer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA2J1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAgBjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAsCvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAqCxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAqCtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,KAqCzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,KAqC7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAmFpC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KA2E/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAqFrC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAiG3B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PanelEventBus } from '@principal-ade/panel-framework-core';
|
|
3
|
+
import type { IntroductionTour } from '../types/IntroductionTour';
|
|
4
|
+
export interface TourPlayerIntegrationProps {
|
|
5
|
+
/** The introduction tour */
|
|
6
|
+
tour: IntroductionTour;
|
|
7
|
+
/** Panel event bus for emitting focus/highlight events */
|
|
8
|
+
events: PanelEventBus;
|
|
9
|
+
/** Whether the tour player is visible */
|
|
10
|
+
visible: boolean;
|
|
11
|
+
/** Callback when tour exits */
|
|
12
|
+
onExit: () => void;
|
|
13
|
+
/** Position of the player UI - 'right'/'bottom' for Context Panel layout, or 'top'/'bottom'/'overlay' for absolute positioning */
|
|
14
|
+
position?: 'top' | 'bottom' | 'overlay' | 'right';
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* TourPlayerIntegration - Connects TourPlayer to File City Panel events
|
|
18
|
+
*
|
|
19
|
+
* This component handles the translation of tour steps into File City
|
|
20
|
+
* panel events for focus, highlights, and color mode changes.
|
|
21
|
+
*/
|
|
22
|
+
export declare const TourPlayerIntegration: React.FC<TourPlayerIntegrationProps>;
|
|
23
|
+
//# sourceMappingURL=TourPlayerIntegration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TourPlayerIntegration.d.ts","sourceRoot":"","sources":["../../src/components/TourPlayerIntegration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAA8C,MAAM,2BAA2B,CAAC;AAG9G,MAAM,WAAW,0BAA0B;IACzC,4BAA4B;IAC5B,IAAI,EAAE,gBAAgB,CAAC;IAEvB,0DAA0D;IAC1D,MAAM,EAAE,aAAa,CAAC;IAEtB,yCAAyC;IACzC,OAAO,EAAE,OAAO,CAAC;IAEjB,+BAA+B;IAC/B,MAAM,EAAE,MAAM,IAAI,CAAC;IAEnB,kIAAkI;IAClI,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;CACnD;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA4LtE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ContextContainer } from './ContextContainer';
|
|
2
|
+
export type { ContextContainerProps } from './ContextContainer';
|
|
3
|
+
export { TourPlayer } from './TourPlayer';
|
|
4
|
+
export type { TourPlayerProps } from './TourPlayer';
|
|
5
|
+
export { TourPlayerIntegration } from './TourPlayerIntegration';
|
|
6
|
+
export type { TourPlayerIntegrationProps } from './TourPlayerIntegration';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGhE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { IntroductionTour, IntroductionTourStep } from '../types/IntroductionTour';
|
|
2
|
+
export interface TourPlayerState {
|
|
3
|
+
/** Current step index */
|
|
4
|
+
currentStepIndex: number;
|
|
5
|
+
/** Current step */
|
|
6
|
+
currentStep: IntroductionTourStep | null;
|
|
7
|
+
/** Whether story is active */
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
/** Whether story is playing */
|
|
10
|
+
isPlaying: boolean;
|
|
11
|
+
/** Set of completed step IDs */
|
|
12
|
+
completedSteps: Set<string>;
|
|
13
|
+
/** Progress percentage */
|
|
14
|
+
progress: number;
|
|
15
|
+
}
|
|
16
|
+
export interface TourPlayerActions {
|
|
17
|
+
/** Start the story from beginning */
|
|
18
|
+
start: () => void;
|
|
19
|
+
/** Stop the story */
|
|
20
|
+
stop: () => void;
|
|
21
|
+
/** Pause the story */
|
|
22
|
+
pause: () => void;
|
|
23
|
+
/** Resume the story */
|
|
24
|
+
resume: () => void;
|
|
25
|
+
/** Go to next step */
|
|
26
|
+
nextStep: () => void;
|
|
27
|
+
/** Go to previous step */
|
|
28
|
+
previousStep: () => void;
|
|
29
|
+
/** Go to specific step by index */
|
|
30
|
+
goToStep: (index: number) => void;
|
|
31
|
+
/** Mark current step as completed */
|
|
32
|
+
completeStep: () => void;
|
|
33
|
+
/** Reset story to beginning */
|
|
34
|
+
reset: () => void;
|
|
35
|
+
}
|
|
36
|
+
export interface UseTourPlayerOptions {
|
|
37
|
+
/** The story to play */
|
|
38
|
+
story: IntroductionTour;
|
|
39
|
+
/** Callback when step changes */
|
|
40
|
+
onStepChange?: (step: IntroductionTourStep, index: number) => void;
|
|
41
|
+
/** Callback when story completes */
|
|
42
|
+
onComplete?: () => void;
|
|
43
|
+
/** Callback when story exits */
|
|
44
|
+
onExit?: () => void;
|
|
45
|
+
/** Auto-start the story */
|
|
46
|
+
autoStart?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Hook for managing introduction story state and playback
|
|
50
|
+
*
|
|
51
|
+
* Provides state and actions for controlling story navigation,
|
|
52
|
+
* tracking progress, and handling step transitions.
|
|
53
|
+
*/
|
|
54
|
+
export declare function useTourPlayer(options: UseTourPlayerOptions): [TourPlayerState, TourPlayerActions];
|
|
55
|
+
//# sourceMappingURL=useTourPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTourPlayer.d.ts","sourceRoot":"","sources":["../../src/hooks/useTourPlayer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAExF,MAAM,WAAW,eAAe;IAC9B,yBAAyB;IACzB,gBAAgB,EAAE,MAAM,CAAC;IAEzB,mBAAmB;IACnB,WAAW,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAEzC,8BAA8B;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAElB,+BAA+B;IAC/B,SAAS,EAAE,OAAO,CAAC;IAEnB,gCAAgC;IAChC,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAE5B,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,qCAAqC;IACrC,KAAK,EAAE,MAAM,IAAI,CAAC;IAElB,qBAAqB;IACrB,IAAI,EAAE,MAAM,IAAI,CAAC;IAEjB,sBAAsB;IACtB,KAAK,EAAE,MAAM,IAAI,CAAC;IAElB,uBAAuB;IACvB,MAAM,EAAE,MAAM,IAAI,CAAC;IAEnB,sBAAsB;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB,0BAA0B;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;IAEzB,mCAAmC;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAElC,qCAAqC;IACrC,YAAY,EAAE,MAAM,IAAI,CAAC;IAEzB,+BAA+B;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,KAAK,EAAE,gBAAgB,CAAC;IAExB,iCAAiC;IACjC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnE,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,oBAAoB,GAC5B,CAAC,eAAe,EAAE,iBAAiB,CAAC,CA0GtC"}
|
|
@@ -43,6 +43,15 @@ export interface CommitFilesSliceData {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
export type { StoryboardContextSliceData } from '@principal-ai/principal-view-core';
|
|
46
|
+
/**
|
|
47
|
+
* CodeCityPanelContent - Internal component that uses theme
|
|
48
|
+
*/
|
|
49
|
+
declare const CodeCityPanelContent: React.FC<PanelComponentProps>;
|
|
50
|
+
/**
|
|
51
|
+
* CodeCityPanelContent - Internal component that uses theme
|
|
52
|
+
* Exported separately for flexibility
|
|
53
|
+
*/
|
|
54
|
+
export { CodeCityPanelContent };
|
|
46
55
|
/**
|
|
47
56
|
* CodeCityPanel - A file visualization panel using the File City map.
|
|
48
57
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CodeCityPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AA8BjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAg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;AAEF;;;GAGG;AACH,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAEhC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAEvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA8BxC,CAAC"}
|
|
@@ -110,4 +110,8 @@ export declare const TwoPanelsSideBySide: Story;
|
|
|
110
110
|
* Git Changes Panel + Code City Panel - the actual conflict scenario
|
|
111
111
|
*/
|
|
112
112
|
export declare const GitChangesPlusCodeCity: Story;
|
|
113
|
+
/**
|
|
114
|
+
* Story with comprehensive introduction tour testing all features
|
|
115
|
+
*/
|
|
116
|
+
export declare const WithIntroductionTour: Story;
|
|
113
117
|
//# sourceMappingURL=CodeCityPanel.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeCityPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/CodeCityPanel.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD;;;;GAIG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CAoBpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KA6BrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAwC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAgD5B,CAAC;AAEF;;;GAG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G;AACH,eAAO,MAAM,mBAAmB,EAAE,KA8MjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAkLpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAkZlC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CoverOptions {
|
|
3
|
+
opacity?: number;
|
|
4
|
+
image?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
textSize?: number;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
borderRadius?: number;
|
|
9
|
+
icon?: string;
|
|
10
|
+
iconSize?: number;
|
|
11
|
+
lucideIcon?: string;
|
|
12
|
+
}
|
|
13
|
+
interface CoverEditorProps {
|
|
14
|
+
directoryPath: string;
|
|
15
|
+
initialCoverOptions?: CoverOptions;
|
|
16
|
+
onChange?: (coverOptions: CoverOptions) => void;
|
|
17
|
+
onSave: (directoryPath: string, coverOptions: CoverOptions) => void;
|
|
18
|
+
onCancel: () => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const CoverEditor: React.FC<CoverEditorProps>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=CoverEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoverEditor.d.ts","sourceRoot":"","sources":["../../../src/panels/components/CoverEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAehE,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,gBAAgB;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,YAAY,CAAC;IACnC,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAC;IAChD,MAAM,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,KAAK,IAAI,CAAC;IACpE,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAwBD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAohBlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../src/panels/components/Legend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAsB,KAAK,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAqB,KAAK,aAAa,EAAE,KAAK,WAAW,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC5H,OAAO,EAAqB,KAAK,iBAAiB,EAAE,KAAK,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAClH,OAAO,EAA2B,KAAK,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACjG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../src/panels/components/Legend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,E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AAK,IAAI,CAAC;IACjF,iDAAiD;IACjD,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACtF,iDAAiD;IACjD,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7E,iBAAiB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC/B;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA8jBxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendTabs.d.ts","sourceRoot":"","sources":["../../../src/panels/components/LegendTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LegendTabs.d.ts","sourceRoot":"","sources":["../../../src/panels/components/LegendTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,CAAC;AAEhE,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,WAAW,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC/B;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiJhD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,SAAS,KAAK,CAAC,SAAS,EACxB,QAAQ,MAAM,KACb,SAMD,CAAC;AAEH,eAAO,MAAM,YAAY,GACvB,SAAS,KAAK,CAAC,SAAS,EACxB,QAAQ,MAAM,KACb,SAMD,CAAC;AAEH,eAAO,MAAM,cAAc,GACzB,SAAS,KAAK,CAAC,SAAS,EACxB,QAAQ,MAAM,KACb,SAMD,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,KAAK,CAAC,SAAS,EACxB,QAAQ,MAAM,KACb,SAMD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { CodeCityPanel, CodeCityPanelPreview, CodeCityPanelContent } from './CodeCityPanel';
|
|
2
|
+
export { AgentMailFileCityPanel } from './AgentMailFileCityPanel';
|
|
3
|
+
export { FeedCodeCityPanel, FeedCodeCityPanelPreview } from './FeedCodeCityPanel';
|
|
4
|
+
export type { PrFilesSliceData, CommitFilesSliceData, StoryboardContextSliceData, } from './CodeCityPanel';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/panels/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGlF,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,iBAAiB,CAAC"}
|
|
@@ -3,23 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Creates highlight layers from quality metrics data (coverage, linting, etc.)
|
|
5
5
|
*/
|
|
6
|
-
import type { CityBuilding, LayerItem } from '@principal-ai/file-city-react';
|
|
6
|
+
import type { CityBuilding, LayerItem, HighlightLayer } from '@principal-ai/file-city-react';
|
|
7
7
|
import { type ColorMode as QualityColorMode, type LensColorMode, type ColorModeConfig, type FileMetricData, type QualitySliceData } from '@principal-ai/quality-lens-registry';
|
|
8
8
|
export type { LensColorMode, ColorModeConfig, FileMetricData, QualitySliceData };
|
|
9
|
+
export type { HighlightLayer, LayerItem };
|
|
9
10
|
export type ColorMode = QualityColorMode | 'fileTypes' | 'git' | 'pr' | 'commit' | 'storyboard';
|
|
10
|
-
/**
|
|
11
|
-
* Highlight layer structure
|
|
12
|
-
*/
|
|
13
|
-
export interface HighlightLayer {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
enabled: boolean;
|
|
17
|
-
color: string;
|
|
18
|
-
priority: number;
|
|
19
|
-
items: LayerItem[];
|
|
20
|
-
opacity?: number;
|
|
21
|
-
borderWidth?: number;
|
|
22
|
-
}
|
|
23
11
|
/**
|
|
24
12
|
* Get all available color modes from the registry
|
|
25
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualityLayers.d.ts","sourceRoot":"","sources":["../../../src/panels/utils/qualityLayers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"qualityLayers.d.ts","sourceRoot":"","sources":["../../../src/panels/utils/qualityLayers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,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