@industry-theme/principal-view-panels 0.3.3 → 0.3.4

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 (149) hide show
  1. package/dist/adapters/PanelFileSystemAdapter.d.ts +82 -0
  2. package/dist/adapters/PanelFileSystemAdapter.d.ts.map +1 -0
  3. package/dist/demo/DemoApp.d.ts +13 -0
  4. package/dist/demo/DemoApp.d.ts.map +1 -0
  5. package/dist/demo/DemoApp.stories.d.ts +71 -0
  6. package/dist/demo/DemoApp.stories.d.ts.map +1 -0
  7. package/dist/demo/api/browser.d.ts +15 -0
  8. package/dist/demo/api/browser.d.ts.map +1 -0
  9. package/dist/demo/api/handlers.d.ts +8 -0
  10. package/dist/demo/api/handlers.d.ts.map +1 -0
  11. package/dist/demo/components/BookDetails/BookDetails.d.ts +16 -0
  12. package/dist/demo/components/BookDetails/BookDetails.d.ts.map +1 -0
  13. package/dist/demo/components/CardCatalog/CardCatalog.d.ts +16 -0
  14. package/dist/demo/components/CardCatalog/CardCatalog.d.ts.map +1 -0
  15. package/dist/demo/components/ReadingRoom/ReadingRoom.d.ts +17 -0
  16. package/dist/demo/components/ReadingRoom/ReadingRoom.d.ts.map +1 -0
  17. package/dist/demo/data/mockData.d.ts +33 -0
  18. package/dist/demo/data/mockData.d.ts.map +1 -0
  19. package/dist/demo/data/types.d.ts +168 -0
  20. package/dist/demo/data/types.d.ts.map +1 -0
  21. package/dist/index.d.ts +63 -0
  22. package/dist/index.d.ts.map +1 -0
  23. package/dist/mocks/panelContext.d.ts +31 -0
  24. package/dist/mocks/panelContext.d.ts.map +1 -0
  25. package/dist/mocks/vvfConfigs.d.ts +32 -0
  26. package/dist/mocks/vvfConfigs.d.ts.map +1 -0
  27. package/dist/panels/AgentMonitoringGapExplainerPanel.d.ts +6 -0
  28. package/dist/panels/AgentMonitoringGapExplainerPanel.d.ts.map +1 -0
  29. package/dist/panels/AgentMonitoringGapExplainerPanel.stories.d.ts +12 -0
  30. package/dist/panels/AgentMonitoringGapExplainerPanel.stories.d.ts.map +1 -0
  31. package/dist/panels/BookAnalogyExplainerPanel.d.ts +7 -0
  32. package/dist/panels/BookAnalogyExplainerPanel.d.ts.map +1 -0
  33. package/dist/panels/BookAnalogyExplainerPanel.stories.d.ts +33 -0
  34. package/dist/panels/BookAnalogyExplainerPanel.stories.d.ts.map +1 -0
  35. package/dist/panels/CanvasDetailPanel.d.ts +31 -0
  36. package/dist/panels/CanvasDetailPanel.d.ts.map +1 -0
  37. package/dist/panels/CanvasDetailPanel.stories.d.ts +50 -0
  38. package/dist/panels/CanvasDetailPanel.stories.d.ts.map +1 -0
  39. package/dist/panels/CanvasEditorPanel.d.ts +27 -0
  40. package/dist/panels/CanvasEditorPanel.d.ts.map +1 -0
  41. package/dist/panels/CanvasEditorPanel.stories.d.ts +32 -0
  42. package/dist/panels/CanvasEditorPanel.stories.d.ts.map +1 -0
  43. package/dist/panels/CanvasListPanel.d.ts +13 -0
  44. package/dist/panels/CanvasListPanel.d.ts.map +1 -0
  45. package/dist/panels/CanvasListPanel.stories.d.ts +57 -0
  46. package/dist/panels/CanvasListPanel.stories.d.ts.map +1 -0
  47. package/dist/panels/CanvasTypesExplainerPanel.d.ts +7 -0
  48. package/dist/panels/CanvasTypesExplainerPanel.d.ts.map +1 -0
  49. package/dist/panels/CanvasTypesExplainerPanel.stories.d.ts +33 -0
  50. package/dist/panels/CanvasTypesExplainerPanel.stories.d.ts.map +1 -0
  51. package/dist/panels/ChangeImpactAnalysisExplainerPanel.d.ts +7 -0
  52. package/dist/panels/ChangeImpactAnalysisExplainerPanel.d.ts.map +1 -0
  53. package/dist/panels/ChangeImpactAnalysisExplainerPanel.stories.d.ts +33 -0
  54. package/dist/panels/ChangeImpactAnalysisExplainerPanel.stories.d.ts.map +1 -0
  55. package/dist/panels/ControlTowerIntegration.stories.d.ts +12 -0
  56. package/dist/panels/ControlTowerIntegration.stories.d.ts.map +1 -0
  57. package/dist/panels/EventControllerPanel.d.ts +32 -0
  58. package/dist/panels/EventControllerPanel.d.ts.map +1 -0
  59. package/dist/panels/EventControllerPanel.stories.d.ts +53 -0
  60. package/dist/panels/EventControllerPanel.stories.d.ts.map +1 -0
  61. package/dist/panels/EventRecorderPanel.d.ts +54 -0
  62. package/dist/panels/EventRecorderPanel.d.ts.map +1 -0
  63. package/dist/panels/EventRecorderPanel.stories.d.ts +12 -0
  64. package/dist/panels/EventRecorderPanel.stories.d.ts.map +1 -0
  65. package/dist/panels/EventRecordingIntegration.stories.d.ts +21 -0
  66. package/dist/panels/EventRecordingIntegration.stories.d.ts.map +1 -0
  67. package/dist/panels/HierarchicalCanvasCompositionExplainerPanel.d.ts +7 -0
  68. package/dist/panels/HierarchicalCanvasCompositionExplainerPanel.d.ts.map +1 -0
  69. package/dist/panels/HierarchicalCanvasCompositionExplainerPanel.stories.d.ts +33 -0
  70. package/dist/panels/HierarchicalCanvasCompositionExplainerPanel.stories.d.ts.map +1 -0
  71. package/dist/panels/LibraryAnchoringExplainerPanel.d.ts +7 -0
  72. package/dist/panels/LibraryAnchoringExplainerPanel.d.ts.map +1 -0
  73. package/dist/panels/LibraryAnchoringExplainerPanel.stories.d.ts +33 -0
  74. package/dist/panels/LibraryAnchoringExplainerPanel.stories.d.ts.map +1 -0
  75. package/dist/panels/MonorepoComposabilityExplainerPanel.d.ts +7 -0
  76. package/dist/panels/MonorepoComposabilityExplainerPanel.d.ts.map +1 -0
  77. package/dist/panels/MonorepoComposabilityExplainerPanel.stories.d.ts +33 -0
  78. package/dist/panels/MonorepoComposabilityExplainerPanel.stories.d.ts.map +1 -0
  79. package/dist/panels/MultipleCanvasViewsExplainerPanel.d.ts +7 -0
  80. package/dist/panels/MultipleCanvasViewsExplainerPanel.d.ts.map +1 -0
  81. package/dist/panels/MultipleCanvasViewsExplainerPanel.stories.d.ts +33 -0
  82. package/dist/panels/MultipleCanvasViewsExplainerPanel.stories.d.ts.map +1 -0
  83. package/dist/panels/NarrativeExplainerPanel.d.ts +7 -0
  84. package/dist/panels/NarrativeExplainerPanel.d.ts.map +1 -0
  85. package/dist/panels/NarrativeExplainerPanel.stories.d.ts +23 -0
  86. package/dist/panels/NarrativeExplainerPanel.stories.d.ts.map +1 -0
  87. package/dist/panels/ProductionDebuggingExplainerPanel.d.ts +7 -0
  88. package/dist/panels/ProductionDebuggingExplainerPanel.d.ts.map +1 -0
  89. package/dist/panels/ProductionDebuggingExplainerPanel.stories.d.ts +33 -0
  90. package/dist/panels/ProductionDebuggingExplainerPanel.stories.d.ts.map +1 -0
  91. package/dist/panels/RuntimeValidationExplainerPanel.d.ts +7 -0
  92. package/dist/panels/RuntimeValidationExplainerPanel.d.ts.map +1 -0
  93. package/dist/panels/RuntimeValidationExplainerPanel.stories.d.ts +33 -0
  94. package/dist/panels/RuntimeValidationExplainerPanel.stories.d.ts.map +1 -0
  95. package/dist/panels/ScenarioEnumerationExplainerPanel.d.ts +7 -0
  96. package/dist/panels/ScenarioEnumerationExplainerPanel.d.ts.map +1 -0
  97. package/dist/panels/ScenarioEnumerationExplainerPanel.stories.d.ts +33 -0
  98. package/dist/panels/ScenarioEnumerationExplainerPanel.stories.d.ts.map +1 -0
  99. package/dist/panels/SystemStoriesSolutionExplainerPanel.d.ts +6 -0
  100. package/dist/panels/SystemStoriesSolutionExplainerPanel.d.ts.map +1 -0
  101. package/dist/panels/SystemStoriesSolutionExplainerPanel.stories.d.ts +12 -0
  102. package/dist/panels/SystemStoriesSolutionExplainerPanel.stories.d.ts.map +1 -0
  103. package/dist/panels/TelemetryCoverageExplainerPanel.d.ts +7 -0
  104. package/dist/panels/TelemetryCoverageExplainerPanel.d.ts.map +1 -0
  105. package/dist/panels/TelemetryCoverageExplainerPanel.stories.d.ts +33 -0
  106. package/dist/panels/TelemetryCoverageExplainerPanel.stories.d.ts.map +1 -0
  107. package/dist/panels/TestVsProductionExplainerPanel.d.ts +7 -0
  108. package/dist/panels/TestVsProductionExplainerPanel.d.ts.map +1 -0
  109. package/dist/panels/TestVsProductionExplainerPanel.stories.d.ts +33 -0
  110. package/dist/panels/TestVsProductionExplainerPanel.stories.d.ts.map +1 -0
  111. package/dist/panels/WhyNowAgentRevolutionExplainerPanel.d.ts +6 -0
  112. package/dist/panels/WhyNowAgentRevolutionExplainerPanel.d.ts.map +1 -0
  113. package/dist/panels/WhyNowAgentRevolutionExplainerPanel.stories.d.ts +12 -0
  114. package/dist/panels/WhyNowAgentRevolutionExplainerPanel.stories.d.ts.map +1 -0
  115. package/dist/panels/canvas-list/components/CanvasCard.d.ts +13 -0
  116. package/dist/panels/canvas-list/components/CanvasCard.d.ts.map +1 -0
  117. package/dist/panels/canvas-list/hooks/useCanvasData.d.ts +18 -0
  118. package/dist/panels/canvas-list/hooks/useCanvasData.d.ts.map +1 -0
  119. package/dist/panels/execution-viewer/EventNodeMapper.d.ts +46 -0
  120. package/dist/panels/execution-viewer/EventNodeMapper.d.ts.map +1 -0
  121. package/dist/panels/execution-viewer/ExecutionLoader.d.ts +120 -0
  122. package/dist/panels/execution-viewer/ExecutionLoader.d.ts.map +1 -0
  123. package/dist/panels/execution-viewer/ExecutionStats.d.ts +11 -0
  124. package/dist/panels/execution-viewer/ExecutionStats.d.ts.map +1 -0
  125. package/dist/panels/execution-viewer/NarrativeLoader.d.ts +65 -0
  126. package/dist/panels/execution-viewer/NarrativeLoader.d.ts.map +1 -0
  127. package/dist/panels/execution-viewer/NarrativeRenderer.d.ts +19 -0
  128. package/dist/panels/execution-viewer/NarrativeRenderer.d.ts.map +1 -0
  129. package/dist/panels/execution-viewer/NarrativeTemplatePanel.d.ts +15 -0
  130. package/dist/panels/execution-viewer/NarrativeTemplatePanel.d.ts.map +1 -0
  131. package/dist/panels/execution-viewer/TestEventPanel.d.ts +46 -0
  132. package/dist/panels/execution-viewer/TestEventPanel.d.ts.map +1 -0
  133. package/dist/panels/execution-viewer/narrative-converter.d.ts +44 -0
  134. package/dist/panels/execution-viewer/narrative-converter.d.ts.map +1 -0
  135. package/dist/panels/principal-view/ConfigLoader.d.ts +43 -0
  136. package/dist/panels/principal-view/ConfigLoader.d.ts.map +1 -0
  137. package/dist/panels/principal-view/EmptyStateContent.d.ts +12 -0
  138. package/dist/panels/principal-view/EmptyStateContent.d.ts.map +1 -0
  139. package/dist/panels/principal-view/ErrorStateContent.d.ts +14 -0
  140. package/dist/panels/principal-view/ErrorStateContent.d.ts.map +1 -0
  141. package/dist/panels.bundle.js +28652 -29399
  142. package/dist/panels.bundle.js.map +1 -1
  143. package/dist/stubs/codebase-quality-lenses-stub.d.ts +26 -0
  144. package/dist/stubs/codebase-quality-lenses-stub.d.ts.map +1 -0
  145. package/dist/tools/index.d.ts +32 -0
  146. package/dist/tools/index.d.ts.map +1 -0
  147. package/dist/types/index.d.ts +7 -0
  148. package/dist/types/index.d.ts.map +1 -0
  149. package/package.json +3 -3
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Panel FileSystem Adapter
3
+ *
4
+ * Implements FileSystemAdapter using the panel's fileTree slice for directory operations
5
+ * and a file content cache that can be populated via the panel's readFile action.
6
+ *
7
+ * This adapter bridges the synchronous FileSystemAdapter interface used by
8
+ * ConfigurationLoader and LibraryLoader with the async panel context.
9
+ */
10
+ import type { FileSystemAdapter } from '@principal-ai/principal-view-core';
11
+ /**
12
+ * File entry from the fileTree slice
13
+ */
14
+ export interface FileTreeEntry {
15
+ path?: string;
16
+ relativePath?: string;
17
+ name?: string;
18
+ type?: 'file' | 'directory';
19
+ }
20
+ /**
21
+ * Options for creating the adapter
22
+ */
23
+ export interface PanelFileSystemAdapterOptions {
24
+ /** Files from the fileTree slice */
25
+ fileTreeFiles: FileTreeEntry[];
26
+ /** Base path for the repository */
27
+ basePath: string;
28
+ }
29
+ /**
30
+ * FileSystemAdapter implementation for panel context.
31
+ *
32
+ * Uses fileTree slice data for directory listing and existence checks.
33
+ * File content must be pre-loaded into the cache via `setFileContent()`.
34
+ */
35
+ export declare class PanelFileSystemAdapter implements FileSystemAdapter {
36
+ private fileTreeFiles;
37
+ private basePath;
38
+ private fileContentCache;
39
+ constructor(options: PanelFileSystemAdapterOptions);
40
+ /**
41
+ * Set file content in the cache.
42
+ * Call this after loading file content via the panel's readFile action.
43
+ */
44
+ setFileContent(path: string, content: string): void;
45
+ /**
46
+ * Check if file content is cached
47
+ */
48
+ hasFileContent(path: string): boolean;
49
+ /**
50
+ * Clear the file content cache
51
+ */
52
+ clearCache(): void;
53
+ exists(path: string): boolean;
54
+ readFile(path: string): string;
55
+ writeFile(_path: string, _content: string): void;
56
+ deleteFile(_path: string): void;
57
+ readBinaryFile(_path: string): Uint8Array;
58
+ writeBinaryFile(_path: string, _content: Uint8Array): void;
59
+ createDir(_path: string): void;
60
+ readDir(path: string): string[];
61
+ deleteDir(_path: string): void;
62
+ isDirectory(path: string): boolean;
63
+ join(...paths: string[]): string;
64
+ relative(from: string, to: string): string;
65
+ dirname(path: string): string;
66
+ isAbsolute(path: string): boolean;
67
+ normalizeRepositoryPath(_inputPath: string): string;
68
+ findProjectRoot(_inputPath: string): string;
69
+ getRepositoryName(repositoryPath: string): string;
70
+ private normalizePath;
71
+ private toRelativePath;
72
+ /**
73
+ * Get list of files that need to be loaded for a directory.
74
+ * Use this to pre-fetch file contents before using the loaders.
75
+ */
76
+ getFilesInDirectory(dirPath: string): string[];
77
+ /**
78
+ * Get the full path for a relative path
79
+ */
80
+ getFullPath(relativePath: string): string;
81
+ }
82
+ //# sourceMappingURL=PanelFileSystemAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PanelFileSystemAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/PanelFileSystemAdapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAA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AAE,MAAM,GAAG,MAAM;IAc1C,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAK7B,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIjC,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAKnD,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAI3C,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM;IASjD,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,cAAc;IAmBtB;;;OAGG;IACH,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE;IAY9C;;OAEG;IACH,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CAG1C"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import './styles/library-theme.css';
3
+ import './styles/demo-layout.css';
4
+ /**
5
+ * Main Demo Application Component
6
+ * Implements the three-panel library layout:
7
+ * 1. Card Catalog (left sidebar) - File tree navigation
8
+ * 2. Reading Room (center) - Main canvas view
9
+ * 3. Book Details (bottom) - Details panel with tabs
10
+ */
11
+ export declare const DemoApp: React.FC;
12
+ export default DemoApp;
13
+ //# sourceMappingURL=DemoApp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DemoApp.d.ts","sourceRoot":"","sources":["../../src/demo/DemoApp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAGlC;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAoF3B,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,71 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ /**
3
+ * Demo UI showcasing runtime validation with a library/book aesthetic
4
+ *
5
+ * This demo provides an interactive view of:
6
+ * - Canvas files (.otel.canvas) from a file tree
7
+ * - OTEL trace visualization overlaid on canvases
8
+ * - Trace timeline, node details, events, and coverage analysis
9
+ *
10
+ * Features:
11
+ * - Card Catalog: File tree navigation for canvases and traces
12
+ * - Reading Room: Main canvas view with trace overlay
13
+ * - Book Details: Bottom panel with tabs for detailed information
14
+ * - Library/Book aesthetic: Leather-bound, aged paper, gold accents
15
+ *
16
+ * Mock Data:
17
+ * - Checkout Flow canvas with 4 nodes
18
+ * - Failed trace showing inventory timeout
19
+ * - Successful trace showing full flow
20
+ * - Coverage data across components
21
+ *
22
+ * Note: MSW (Mock Service Worker) is initialized globally in .storybook/preview.ts
23
+ */
24
+ declare const meta: {
25
+ title: string;
26
+ component: import("react").FC<{}>;
27
+ parameters: {
28
+ layout: string;
29
+ docs: {
30
+ description: {
31
+ component: string;
32
+ };
33
+ };
34
+ };
35
+ tags: string[];
36
+ };
37
+ export default meta;
38
+ type Story = StoryObj<typeof meta>;
39
+ /**
40
+ * Default demo view with MSW mocked APIs
41
+ *
42
+ * MSW provides realistic API responses for canvases, traces, and coverage data.
43
+ *
44
+ * Instructions:
45
+ * 1. Select "Checkout Flow" canvas from the Card Catalog
46
+ * 2. Select a trace from Reading Sessions to see overlay
47
+ * 3. Click nodes to see details
48
+ * 4. Explore different tabs in Book Details panel
49
+ */
50
+ export declare const Default: Story;
51
+ /**
52
+ * Production Debugging Workflow
53
+ *
54
+ * Demonstrates how to use the demo to debug a production issue:
55
+ * 1. Failed trace shows inventory check timeout
56
+ * 2. Timeline tab shows which span failed
57
+ * 3. Node details show expected vs actual behavior
58
+ * 4. Events tab shows what happened before failure
59
+ */
60
+ export declare const ProductionDebuggingWorkflow: Story;
61
+ /**
62
+ * Telemetry Coverage Analysis
63
+ *
64
+ * Demonstrates how to analyze telemetry coverage:
65
+ * 1. Navigate to Coverage tab
66
+ * 2. See overall coverage percentage
67
+ * 3. View breakdown by component type
68
+ * 4. Identify missing files that lack instrumentation
69
+ */
70
+ export declare const TelemetryCoverageAnalysis: Story;
71
+ //# sourceMappingURL=DemoApp.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DemoApp.stories.d.ts","sourceRoot":"","sources":["../../src/demo/DemoApp.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;CAasB,CAAC;AAEjC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,EAAE,KASzC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,EAAE,KASvC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * MSW browser setup for the demo
3
+ *
4
+ * This worker is automatically initialized in .storybook/preview.ts for Storybook.
5
+ * For standalone usage:
6
+ * 1. Install: npm install msw --save-dev
7
+ * 2. Run: npx msw init public/ --save
8
+ * 3. Import worker and call: worker.start()
9
+ */
10
+ /**
11
+ * Create the MSW worker with our handlers
12
+ * This is exported and started globally in Storybook's preview.ts
13
+ */
14
+ export declare const worker: import("msw/browser").SetupWorker;
15
+ //# sourceMappingURL=browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/demo/api/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH;;;GAGG;AACH,eAAO,MAAM,MAAM,mCAA2B,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * MSW (Mock Service Worker) handlers for the demo API
3
+ *
4
+ * To use MSW, install it with: npm install msw --save-dev
5
+ * Then run: npx msw init public/ --save
6
+ */
7
+ export declare const handlers: import("msw").HttpHandler[];
8
+ //# sourceMappingURL=handlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/demo/api/handlers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH,eAAO,MAAM,QAAQ,6BA6KpB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { Canvas, OTELTrace } from '../../data/types';
3
+ import './BookDetails.css';
4
+ interface BookDetailsProps {
5
+ canvas: Canvas | null;
6
+ trace: OTELTrace | null;
7
+ traceId: string | null;
8
+ selectedNodeId: string | null;
9
+ }
10
+ /**
11
+ * Book Details Component
12
+ * Bottom panel with tabs for trace timeline, node details, events, and coverage
13
+ */
14
+ export declare const BookDetails: React.FC<BookDetailsProps>;
15
+ export {};
16
+ //# sourceMappingURL=BookDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookDetails.d.ts","sourceRoot":"","sources":["../../../../src/demo/components/BookDetails/BookDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAgB,MAAM,kBAAkB,CAAC;AACxE,OAAO,mBAAmB,CAAC;AAE3B,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAID;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0QlD,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import './CardCatalog.css';
3
+ interface CardCatalogProps {
4
+ onSelectCanvas: (canvasId: string) => void;
5
+ onSelectTrace: (traceId: string) => void;
6
+ selectedCanvasId: string | null;
7
+ selectedTraceId: string | null;
8
+ }
9
+ /**
10
+ * Card Catalog Component
11
+ * Left sidebar with file tree navigation for canvases and traces
12
+ * Styled like a wooden card catalog with drawer sections
13
+ */
14
+ export declare const CardCatalog: React.FC<CardCatalogProps>;
15
+ export {};
16
+ //# sourceMappingURL=CardCatalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardCatalog.d.ts","sourceRoot":"","sources":["../../../../src/demo/components/CardCatalog/CardCatalog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,mBAAmB,CAAC;AAE3B,UAAU,gBAAgB;IACxB,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4IlD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { Canvas, OTELTrace } from '../../data/types';
3
+ import './ReadingRoom.css';
4
+ interface ReadingRoomProps {
5
+ canvas: Canvas | null;
6
+ trace: OTELTrace | null;
7
+ onSelectNode: (nodeId: string) => void;
8
+ selectedNodeId: string | null;
9
+ }
10
+ /**
11
+ * Reading Room Component
12
+ * Main canvas view with aged paper background
13
+ * Displays canvas diagram with optional trace overlay
14
+ */
15
+ export declare const ReadingRoom: React.FC<ReadingRoomProps>;
16
+ export {};
17
+ //# sourceMappingURL=ReadingRoom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadingRoom.d.ts","sourceRoot":"","sources":["../../../../src/demo/components/ReadingRoom/ReadingRoom.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,mBAAmB,CAAC;AAE3B,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAyMlD,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Mock data for the demo UI
3
+ */
4
+ import type { Canvas, CanvasMetadata, OTELTrace, TraceMetadata, CoverageData, ImpactAnalysis, FileTreeNode } from './types';
5
+ /**
6
+ * Canvas metadata list
7
+ */
8
+ export declare const canvasMetadataList: CanvasMetadata[];
9
+ /**
10
+ * Canvases by ID
11
+ */
12
+ export declare const canvases: Record<string, Canvas>;
13
+ /**
14
+ * Trace metadata list
15
+ */
16
+ export declare const traceMetadataList: TraceMetadata[];
17
+ /**
18
+ * Traces by ID
19
+ */
20
+ export declare const traces: Record<string, OTELTrace>;
21
+ /**
22
+ * Mock coverage data
23
+ */
24
+ export declare const mockCoverageData: CoverageData;
25
+ /**
26
+ * Mock impact analysis data
27
+ */
28
+ export declare const mockImpactAnalysis: Record<string, ImpactAnalysis>;
29
+ /**
30
+ * Mock file tree
31
+ */
32
+ export declare const mockFileTree: FileTreeNode[];
33
+ //# sourceMappingURL=mockData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mockData.d.ts","sourceRoot":"","sources":["../../../src/demo/data/mockData.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,MAAM,EACN,cAAc,EACd,SAAS,EACT,aAAa,EACb,YAAY,EACZ,cAAc,EACd,YAAY,EACb,MAAM,SAAS,CAAC;AAMjB;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,cAAc,EAyB9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE3C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,aAAa,EAmB5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAG5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,YA0C9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CA2C7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,YAAY,EAqFtC,CAAC"}
@@ -0,0 +1,168 @@
1
+ /**
2
+ * Type definitions for the demo UI
3
+ */
4
+ export interface OTELAttribute {
5
+ key: string;
6
+ value: {
7
+ stringValue?: string;
8
+ intValue?: string | number;
9
+ doubleValue?: number;
10
+ boolValue?: boolean;
11
+ };
12
+ }
13
+ export interface OTELEvent {
14
+ timeUnixNano: string;
15
+ name: string;
16
+ attributes: OTELAttribute[];
17
+ }
18
+ export interface OTELStatus {
19
+ code: 'STATUS_CODE_OK' | 'STATUS_CODE_ERROR' | 'STATUS_CODE_UNSET';
20
+ message?: string;
21
+ }
22
+ export interface OTELSpan {
23
+ traceId: string;
24
+ spanId: string;
25
+ parentSpanId?: string;
26
+ name: string;
27
+ kind: string;
28
+ startTimeUnixNano: string;
29
+ endTimeUnixNano: string;
30
+ attributes: OTELAttribute[];
31
+ events?: OTELEvent[];
32
+ status: OTELStatus;
33
+ }
34
+ export interface OTELScopeSpan {
35
+ scope: {
36
+ name: string;
37
+ version: string;
38
+ };
39
+ spans: OTELSpan[];
40
+ }
41
+ export interface OTELResourceSpan {
42
+ resource: {
43
+ attributes: OTELAttribute[];
44
+ };
45
+ scopeSpans: OTELScopeSpan[];
46
+ }
47
+ export interface OTELTrace {
48
+ resourceSpans: OTELResourceSpan[];
49
+ }
50
+ export interface CanvasNode {
51
+ id: string;
52
+ nodeType: string;
53
+ label: string;
54
+ position: {
55
+ x: number;
56
+ y: number;
57
+ };
58
+ pv: {
59
+ events: Array<{
60
+ name: string;
61
+ }>;
62
+ otel: {
63
+ resourceMatch: Record<string, string>;
64
+ spanMatch: Record<string, string>;
65
+ };
66
+ };
67
+ }
68
+ export interface CanvasEdge {
69
+ id: string;
70
+ from: string;
71
+ to: string;
72
+ label: string;
73
+ }
74
+ export interface Canvas {
75
+ pv: {
76
+ name: string;
77
+ version: string;
78
+ description: string;
79
+ };
80
+ nodes: CanvasNode[];
81
+ edges: CanvasEdge[];
82
+ }
83
+ export interface CanvasMetadata {
84
+ id: string;
85
+ path: string;
86
+ name: string;
87
+ type: 'otel.canvas' | 'canvas';
88
+ parent: string | null;
89
+ lastModified: string;
90
+ }
91
+ export interface TraceMetadata {
92
+ traceId: string;
93
+ timestamp: string;
94
+ duration: number;
95
+ status: 'success' | 'failed' | 'slow';
96
+ serviceName: string;
97
+ rootSpan: string;
98
+ spanCount: number;
99
+ }
100
+ export interface LibraryNodeComponent {
101
+ label: string;
102
+ description: string;
103
+ sources: string[];
104
+ visual: {
105
+ shape: string;
106
+ color: string;
107
+ icon: string;
108
+ };
109
+ }
110
+ export interface LibraryEdgeComponent {
111
+ label: string;
112
+ style: string;
113
+ color: string;
114
+ }
115
+ export interface Library {
116
+ version: string;
117
+ nodeComponents: Record<string, LibraryNodeComponent>;
118
+ edgeComponents: Record<string, LibraryEdgeComponent>;
119
+ }
120
+ export interface CoverageData {
121
+ overall: {
122
+ expected: number;
123
+ actual: number;
124
+ percentage: number;
125
+ };
126
+ byComponent: Array<{
127
+ type: string;
128
+ expected: number;
129
+ actual: number;
130
+ percentage: number;
131
+ missingFiles: string[];
132
+ }>;
133
+ }
134
+ export interface ImpactAnalysis {
135
+ nodeId: string;
136
+ canvasId: string;
137
+ analysis: {
138
+ downstream: Array<{
139
+ component: string;
140
+ traffic: string;
141
+ impact: 'low' | 'medium' | 'high';
142
+ userFacing: boolean;
143
+ }>;
144
+ upstream: Array<{
145
+ component: string;
146
+ required: 'always' | 'conditional' | 'optional';
147
+ failureRate: number;
148
+ }>;
149
+ criticalPath: {
150
+ isBottleneck: boolean;
151
+ percentageOfTotal: number;
152
+ avgDuration: number;
153
+ };
154
+ blastRadius: {
155
+ requestsPerMinute: number;
156
+ affectedWorkflows: number;
157
+ revenueAtRisk: number;
158
+ };
159
+ };
160
+ }
161
+ export interface FileTreeNode {
162
+ path: string;
163
+ type: 'directory' | 'file';
164
+ hasTelemetry?: boolean;
165
+ coveragePercentage?: number;
166
+ children?: FileTreeNode[];
167
+ }
168
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/demo/data/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE;QACL,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED,MAAM,WAAW,SAAS;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;I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AC3B"}
@@ -0,0 +1,63 @@
1
+ import type { PanelDefinition } from './types';
2
+ export { EventControllerPanel } from './panels/EventControllerPanel';
3
+ export type { EventControllerPanelProps, PlaybackState, PlaybackStatus } from './panels/EventControllerPanel';
4
+ export { CanvasEditorPanel } from './panels/CanvasEditorPanel';
5
+ export type { CanvasEditorPanelProps } from './panels/CanvasEditorPanel';
6
+ export { CanvasDetailPanel } from './panels/CanvasDetailPanel';
7
+ export type { CanvasDetailPanelProps } from './panels/CanvasDetailPanel';
8
+ export { CanvasListPanel } from './panels/CanvasListPanel';
9
+ export { LibraryAnchoringExplainerPanel } from './panels/LibraryAnchoringExplainerPanel';
10
+ export type { LibraryAnchoringExplainerPanelProps } from './panels/LibraryAnchoringExplainerPanel';
11
+ export { NarrativeExplainerPanel } from './panels/NarrativeExplainerPanel';
12
+ export type { NarrativeExplainerPanelProps } from './panels/NarrativeExplainerPanel';
13
+ export { RuntimeValidationExplainerPanel } from './panels/RuntimeValidationExplainerPanel';
14
+ export type { RuntimeValidationExplainerPanelProps } from './panels/RuntimeValidationExplainerPanel';
15
+ export { TestVsProductionExplainerPanel } from './panels/TestVsProductionExplainerPanel';
16
+ export type { TestVsProductionExplainerPanelProps } from './panels/TestVsProductionExplainerPanel';
17
+ export { ScenarioEnumerationExplainerPanel } from './panels/ScenarioEnumerationExplainerPanel';
18
+ export type { ScenarioEnumerationExplainerPanelProps } from './panels/ScenarioEnumerationExplainerPanel';
19
+ export { CanvasTypesExplainerPanel } from './panels/CanvasTypesExplainerPanel';
20
+ export type { CanvasTypesExplainerPanelProps } from './panels/CanvasTypesExplainerPanel';
21
+ export { MonorepoComposabilityExplainerPanel } from './panels/MonorepoComposabilityExplainerPanel';
22
+ export type { MonorepoComposabilityExplainerPanelProps } from './panels/MonorepoComposabilityExplainerPanel';
23
+ export { HierarchicalCanvasCompositionExplainerPanel } from './panels/HierarchicalCanvasCompositionExplainerPanel';
24
+ export type { HierarchicalCanvasCompositionExplainerPanelProps } from './panels/HierarchicalCanvasCompositionExplainerPanel';
25
+ export { BookAnalogyExplainerPanel } from './panels/BookAnalogyExplainerPanel';
26
+ export type { BookAnalogyExplainerPanelProps } from './panels/BookAnalogyExplainerPanel';
27
+ export { ProductionDebuggingExplainerPanel } from './panels/ProductionDebuggingExplainerPanel';
28
+ export type { ProductionDebuggingExplainerPanelProps } from './panels/ProductionDebuggingExplainerPanel';
29
+ export { MultipleCanvasViewsExplainerPanel } from './panels/MultipleCanvasViewsExplainerPanel';
30
+ export type { MultipleCanvasViewsExplainerPanelProps } from './panels/MultipleCanvasViewsExplainerPanel';
31
+ export { TelemetryCoverageExplainerPanel } from './panels/TelemetryCoverageExplainerPanel';
32
+ export type { TelemetryCoverageExplainerPanelProps } from './panels/TelemetryCoverageExplainerPanel';
33
+ export { ChangeImpactAnalysisExplainerPanel } from './panels/ChangeImpactAnalysisExplainerPanel';
34
+ export type { ChangeImpactAnalysisExplainerPanelProps } from './panels/ChangeImpactAnalysisExplainerPanel';
35
+ export { AgentMonitoringGapExplainerPanel } from './panels/AgentMonitoringGapExplainerPanel';
36
+ export type { AgentMonitoringGapExplainerPanelProps } from './panels/AgentMonitoringGapExplainerPanel';
37
+ export { SystemStoriesSolutionExplainerPanel } from './panels/SystemStoriesSolutionExplainerPanel';
38
+ export type { SystemStoriesSolutionExplainerPanelProps } from './panels/SystemStoriesSolutionExplainerPanel';
39
+ export { WhyNowAgentRevolutionExplainerPanel } from './panels/WhyNowAgentRevolutionExplainerPanel';
40
+ export type { WhyNowAgentRevolutionExplainerPanelProps } from './panels/WhyNowAgentRevolutionExplainerPanel';
41
+ export { PanelFileSystemAdapter } from './adapters/PanelFileSystemAdapter';
42
+ export type { FileTreeEntry, PanelFileSystemAdapterOptions } from './adapters/PanelFileSystemAdapter';
43
+ /**
44
+ * Export array of panel definitions.
45
+ * This is the required export for panel extensions.
46
+ */
47
+ export declare const panels: PanelDefinition[];
48
+ /**
49
+ * Optional: Called once when the entire package is loaded.
50
+ * Use this for package-level initialization.
51
+ */
52
+ export declare const onPackageLoad: () => Promise<void>;
53
+ /**
54
+ * Optional: Called once when the package is unloaded.
55
+ * Use this for package-level cleanup.
56
+ */
57
+ export declare const onPackageUnload: () => Promise<void>;
58
+ /**
59
+ * Export tools for server-safe imports.
60
+ * Use '@industry-theme/principal-view-panels/tools' to import without React dependencies.
61
+ */
62
+ export { principalViewPanelTools, principalViewPanelToolsMetadata, focusNodeTool, resetViewTool, triggerEventTool, } from './tools';
63
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAqB,MAAM,SAAS,CAAC;AAIlE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,YAAY,EAAE,yBAAyB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE9G,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,YAAY,EAAE,mCAAmC,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,YAAY,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAC3F,YAAY,EAAE,oCAAoC,EAAE,MAAM,0CAA0C,CAAC;AACrG,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;A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7G,OAAO,EAAE,mCAAmC,EAAE,MAAM,8CAA8C,CAAC;AACnG,YAAY,EAAE,wCAAwC,EAAE,MAAM,8CAA8C,CAAC;AAG7G,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,YAAY,EAAE,aAAa,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAEtG;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,eAAe,EA+FnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,qBAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAG3B,CAAC;AAEF;;;GAGG;AACH,OAAO,EACL,uBAAuB,EACvB,+BAA+B,EAC/B,aAAa,EACb,aAAa,EACb,gBAAgB,GACjB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import type { PanelComponentProps, PanelContextValue, PanelActions, PanelEventEmitter } from '../types';
3
+ /**
4
+ * Mock Panel Context for Storybook
5
+ */
6
+ export declare const createMockContext: (overrides?: Partial<PanelContextValue>) => PanelContextValue;
7
+ /**
8
+ * Mock Panel Actions for Storybook
9
+ */
10
+ export declare const createMockActions: (overrides?: Partial<PanelActions> & {
11
+ readFile?: (path: string) => Promise<string>;
12
+ writeFile?: (path: string, content: string) => Promise<void>;
13
+ }) => PanelActions & Record<string, any>;
14
+ /**
15
+ * Mock Event Emitter for Storybook
16
+ */
17
+ export declare const createMockEvents: () => PanelEventEmitter;
18
+ /**
19
+ * Mock Panel Props Provider
20
+ * Wraps components with mock context for Storybook
21
+ */
22
+ export declare const MockPanelProvider: React.FC<{
23
+ children: (props: PanelComponentProps) => React.ReactNode;
24
+ contextOverrides?: Partial<PanelContextValue>;
25
+ actionsOverrides?: Partial<PanelActions> & {
26
+ readFile?: (path: string) => Promise<string>;
27
+ writeFile?: (path: string, content: string) => Promise<void>;
28
+ };
29
+ eventsOverride?: PanelEventEmitter;
30
+ }>;
31
+ //# sourceM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ACF,cAAc,CAAC,EAAE,iBAAiB,CAAC;CACpC,CAMA,CAAC"}
@@ -0,0 +1,32 @@
1
+ import type { ExtendedCanvas } from '@principal-ai/principal-view-core';
2
+ /**
3
+ * Mock canvas configurations for Storybook stories
4
+ */
5
+ export declare const mockSimpleCanvas: ExtendedCanvas;
6
+ export declare const mockControlTowerCanvas: ExtendedCanvas;
7
+ export declare const mockComplexCanvas: ExtendedCanvas;
8
+ /**
9
+ * Mock canvas demonstrating pv.fill and pv.stroke color properties
10
+ * This shows the new color system where each node can have distinct fill and stroke colors
11
+ */
12
+ export declare const mockNodeColorsCanvas: ExtendedCanvas;
13
+ /**
14
+ * Mock canvas with mixed color sources for testing priority
15
+ * Tests: pv.fill > node.color > default
16
+ * Each node uses a unique nodeType to ensure independent color testing
17
+ */
18
+ export declare const mockColorPriorityCanvas: ExtendedCanvas;
19
+ export declare const mockSimpleCanvasJSON: string;
20
+ export declare const mockComplexCanvasJSON: string;
21
+ export declare const mockControlTowerCanvasJSON: string;
22
+ export declare const mockNodeColorsCanvasJSON: string;
23
+ export declare const mockColorPriorityCanvasJSON: string;
24
+ export declare const createMockFileTree: (config: "simple" | "complex" | "control-tower" | "node-colors" | "color-priority" | "multiple" | "none") => {
25
+ allFiles: {
26
+ path: string;
27
+ relativePath: string;
28
+ name: string;
29
+ content?: string;
30
+ }[];
31
+ };
32
+ //# sourceMappingURL=vvfConfigs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vvfConfigs.d.ts","sourceRoot":"","sources":["../../src/mocks/vvfConfigs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAExE;;GAEG;AAEH,eAAO,MAAM,gBAAgB,EAAE,cAyF9B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cA6KpC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,cA8G/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,cAyJlC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,cAuHrC,CAAC;AAGF,eAAO,MAAM,oBAAoB,QAA4C,CAAC;AAC9E,eAAO,MAAM,qBAAqB,QAA6C,CAAC;AAChF,eAAO,MAAM,0BAA0B,QAAkD,CAAC;AAC1F,eAAO,MAAM,wBAAwB,QAAgD,CAAC;AACtF,eAAO,MAAM,2BAA2B,QAAmD,CAAC;AAG5F,eAAO,MAAM,kBAAkB,GAAI,QAAQ,QAAQ,GAAG,SAAS,GAAG,eAAe,GAAG,aAAa,GAAG,gBAAgB,GAAG,UAAU,GAAG,MAAM;;cAC7G,MAAM;sBAAgB,MAAM;cAAQ,MAAM;kBAAY,MAAM;;CA4ExF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface AgentMonitoringGapExplainerPanelProps {
3
+ className?: string;
4
+ }
5
+ export declare const AgentMonitoringGapExplainerPanel: React.FC<AgentMonitoringGapExplainerPanelProps>;
6
+ //# sourceMappingURL=AgentMonitoringGapExplainerPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentMonitoringGapExplainerPanel.d.ts","sourceRoot":"","sources":["../../src/panels/AgentMonitoringGapExplainerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,MAAM,WAAW,qCAAqC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsTD,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,EAAE,CAAC,qCAAqC,CAkF5F,CAAC"}