footprint-explainable-ui 0.13.0 → 0.13.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 CHANGED
@@ -4159,6 +4159,7 @@ function ExplainableShell({
4159
4159
  tabs = ["result", "explainable"],
4160
4160
  defaultTab,
4161
4161
  hideConsole = false,
4162
+ hideTabs: hideTabsProp,
4162
4163
  panelLabels,
4163
4164
  defaultExpanded,
4164
4165
  recorderViews,
@@ -4222,8 +4223,9 @@ function ExplainableShell({
4222
4223
  for (const v2 of autoRecorderViews) {
4223
4224
  tabs2.push({ id: v2.id, name: v2.name });
4224
4225
  }
4225
- return tabs2;
4226
- }, [hasNarrative, recorderViews, autoRecorderViews]);
4226
+ const hideSet = new Set(hideTabsProp ?? []);
4227
+ return hideSet.size > 0 ? tabs2.filter((t) => !hideSet.has(t.id)) : tabs2;
4228
+ }, [hasNarrative, recorderViews, autoRecorderViews, hideTabsProp]);
4227
4229
  const validTabIds = new Set(allTabs.map((t) => t.id));
4228
4230
  const resolvedDefault = defaultTab && validTabIds.has(defaultTab) ? defaultTab : allTabs[0]?.id ?? "result";
4229
4231
  const [activeTab, setActiveTab] = (0, import_react19.useState)(resolvedDefault);