@industry-theme/principal-view-panels 0.12.0 → 0.12.2

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.
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { CanvasEditorPanelPropsTyped } from '../types';
3
+ import type { WorkflowTemplate } from '@principal-ai/principal-view-core';
3
4
  import type { FileInfo } from '@principal-ai/repository-abstraction';
4
5
  /**
5
6
  * Props for CanvasEditorPanel
@@ -18,6 +19,32 @@ export interface CanvasEditorPanelProps extends CanvasEditorPanelPropsTyped {
18
19
  * Used for detecting file changes and auto-reloading.
19
20
  */
20
21
  canvasFileInfo?: FileInfo | null;
22
+ /**
23
+ * Workflow template with scenarios (optional).
24
+ * When provided, displays ScenariosList side panel and enables scenario browsing.
25
+ */
26
+ workflowTemplate?: WorkflowTemplate | null;
27
+ /**
28
+ * Workflow ID for display and identification (optional).
29
+ */
30
+ selectedWorkflowId?: string | null;
31
+ /**
32
+ * Path to the workflow file (optional).
33
+ */
34
+ workflowPath?: string | null;
35
+ /**
36
+ * Workflow file info with metadata (optional).
37
+ */
38
+ workflowFileInfo?: FileInfo | null;
39
+ /**
40
+ * Match info from a trace showing which scenarios matched (optional).
41
+ * Used to highlight matched scenarios in the ScenariosList.
42
+ */
43
+ traceMatchInfo?: Array<{
44
+ scenarioId: string;
45
+ matchType: 'full' | 'partial';
46
+ coveragePercent?: number;
47
+ }>;
21
48
  }
22
49
  /**
23
50
  * Principal View Graph Panel
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasEditorPanel.d.ts","sourceRoot":"","sources":["../../src/panels/CanvasEditorPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAS5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAmBrE;;GAEG;AACH,MAAM,WAAW,sBAAu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