@industry-theme/principal-view-panels 0.12.92 → 0.12.93
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 +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,EAEV,YAAY,EAGZ,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EAEb,MAAM,mCAAmC,CAAC;
|
|
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,EAEV,YAAY,EAGZ,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EAEb,MAAM,mCAAmC,CAAC;AAuB3C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,EAAE,gBAAgB,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC9D;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE5C;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;;;OAIG;IACH,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAErC;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAE7B;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAE/C;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5C;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiSxD,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -206083,13 +206083,13 @@ class EmptyDataProvider {
|
|
|
206083
206083
|
}
|
|
206084
206084
|
}
|
|
206085
206085
|
const DashboardPanel = ({
|
|
206086
|
-
context:
|
|
206086
|
+
context: context2,
|
|
206087
206087
|
actions,
|
|
206088
206088
|
events,
|
|
206089
206089
|
selectedDashboard,
|
|
206090
206090
|
dataProvider,
|
|
206091
|
-
storyboards,
|
|
206092
|
-
workflows,
|
|
206091
|
+
storyboards: storyboardsProp,
|
|
206092
|
+
workflows: workflowsProp,
|
|
206093
206093
|
onSourceClick,
|
|
206094
206094
|
onMetricClick
|
|
206095
206095
|
}) => {
|
|
@@ -206104,6 +206104,24 @@ const DashboardPanel = ({
|
|
|
206104
206104
|
var _a2;
|
|
206105
206105
|
return (_a2 = panelRef.current) == null ? void 0 : _a2.focus();
|
|
206106
206106
|
});
|
|
206107
|
+
const typedContext = context2;
|
|
206108
|
+
const fileTreeSlice = typedContext == null ? void 0 : typedContext.fileTree;
|
|
206109
|
+
const { storyboards: discoveredStoryboards, workflows: discoveredWorkflows } = useCanvasWorkflowData({
|
|
206110
|
+
context: fileTreeSlice ? { fileTree: fileTreeSlice } : {
|
|
206111
|
+
fileTree: {
|
|
206112
|
+
data: null,
|
|
206113
|
+
loading: false,
|
|
206114
|
+
error: null,
|
|
206115
|
+
scope: "repository",
|
|
206116
|
+
name: "fileTree",
|
|
206117
|
+
refresh: async () => {
|
|
206118
|
+
}
|
|
206119
|
+
}
|
|
206120
|
+
},
|
|
206121
|
+
actions
|
|
206122
|
+
});
|
|
206123
|
+
const storyboards = storyboardsProp ?? discoveredStoryboards;
|
|
206124
|
+
const workflows = workflowsProp ?? discoveredWorkflows;
|
|
206107
206125
|
useEffect(() => {
|
|
206108
206126
|
if (!selectedDashboard) {
|
|
206109
206127
|
setDashboard(null);
|