@industry-theme/principal-view-panels 0.12.86 → 0.12.88

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,17 +1,20 @@
1
1
  import React from 'react';
2
2
  import type { PanelComponentProps } from '@principal-ade/panel-framework-core';
3
- import type { DashboardDefinition, MetricSource, DiscoveredCanvas } from '@principal-ai/principal-view-core';
3
+ import type { MetricSource, DiscoveredCanvas, DataProvider } from '@principal-ai/principal-view-core';
4
4
  export interface DashboardPanelProps extends PanelComponentProps {
5
5
  /**
6
- * The discovered dashboard canvas to display.
6
+ * The discovered dashboard to display.
7
7
  * Must be a DiscoveredCanvas with type 'dashboard'.
8
+ * The panel will load the dashboard definition from the file path.
8
9
  */
9
10
  selectedDashboard?: DiscoveredCanvas | null;
10
11
  /**
11
- * Optional pre-loaded dashboard definition.
12
- * If provided, skips file loading.
12
+ * Data provider for fetching metric values.
13
+ * Required for displaying dashboard data. If not provided, the panel will
14
+ * show a "no data provider" state instead of rendering metrics.
15
+ * For testing, pass MockDataProvider from @principal-ai/principal-view-react.
13
16
  */
14
- dashboardDefinition?: DashboardDefinition | null;
17
+ dataProvider?: DataProvider;
15
18
  /**
16
19
  * Callback when a metric source link is clicked.
17
20
  * Use this to navigate to the referenced workflow/canvas.
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardPanel.d.ts","sourceRoot":"","sources":["../../src/panels/DashboardPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAI/E,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EAGZ,gBAAgB,EACjB,MAAM,mCAAmC,CAAC;AAG3C,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D;;;OAGG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE5C;;;OAGG;IACH,mBAAmB,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