footprint-explainable-ui 0.26.0 → 0.26.1
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/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -2
- package/dist/index.d.ts +24 -2
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6142,6 +6142,7 @@ function ExplainableShell({
|
|
|
6142
6142
|
showStageId = false,
|
|
6143
6143
|
traceGraph,
|
|
6144
6144
|
runtimeOverlay,
|
|
6145
|
+
traceTheme,
|
|
6145
6146
|
size = "default",
|
|
6146
6147
|
unstyled = false,
|
|
6147
6148
|
className,
|
|
@@ -6174,11 +6175,17 @@ function ExplainableShell({
|
|
|
6174
6175
|
}
|
|
6175
6176
|
if (i >= 0) overlayIdx = i;
|
|
6176
6177
|
}
|
|
6178
|
+
const traceColors = traceTheme && {
|
|
6179
|
+
...traceTheme.visited !== void 0 && { done: traceTheme.visited },
|
|
6180
|
+
...traceTheme.current !== void 0 && { active: traceTheme.current },
|
|
6181
|
+
...traceTheme.mode !== void 0 && { default: traceTheme.mode === "dark" ? "#94a3b8" : "#64748b" }
|
|
6182
|
+
};
|
|
6177
6183
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
6178
6184
|
TracedFlow,
|
|
6179
6185
|
{
|
|
6180
6186
|
graph: traceGraph,
|
|
6181
6187
|
overlay: runtimeOverlay ?? void 0,
|
|
6188
|
+
colors: traceColors || void 0,
|
|
6182
6189
|
scrubIndex: overlayIdx,
|
|
6183
6190
|
onNodeClick: (stageId) => onNodeClick?.(stageId),
|
|
6184
6191
|
onSubflowChange: (mountId) => {
|
|
@@ -6187,7 +6194,7 @@ function ExplainableShell({
|
|
|
6187
6194
|
}
|
|
6188
6195
|
);
|
|
6189
6196
|
};
|
|
6190
|
-
}, [traceGraph, runtimeOverlay]);
|
|
6197
|
+
}, [traceGraph, runtimeOverlay, traceTheme]);
|
|
6191
6198
|
const effectiveRenderFlowchart = renderFlowchart ?? tracedFlowRenderer;
|
|
6192
6199
|
const leftLabel = panelLabels?.topology ?? "Topology";
|
|
6193
6200
|
const rightLabel = panelLabels?.details ?? "Details";
|