@industry-theme/xterm-terminal-panel 0.5.18 → 0.5.20

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.js CHANGED
@@ -2316,7 +2316,6 @@ var TabbedTerminalPanelInner = ({
2316
2316
  const [sessionIds, setSessionIds] = useState4(new Map);
2317
2317
  const [scrollPositions, setScrollPositions] = useState4(new Map);
2318
2318
  const [activityStates, setActivityStates] = useState4(new Map);
2319
- const [localCollapsedStates, setLocalCollapsedStates] = useState4(new Map);
2320
2319
  const customTabsKey = React3.useMemo(() => {
2321
2320
  const customTabs = initialTabs.filter((tab) => tab.contentType !== "terminal");
2322
2321
  return JSON.stringify(customTabs);
@@ -2744,11 +2743,8 @@ var TabbedTerminalPanelInner = ({
2744
2743
  const headerConfig = hasAssociation && getAssociatedHeader ? getAssociatedHeader(association.associatedTabId) : { title: "Drop zone", icon: /* @__PURE__ */ jsx7(Paperclip, {
2745
2744
  size: 14
2746
2745
  }) };
2747
- const isCollapsed = hasAssociation ? association.collapsed : localCollapsedStates.get(tab.id) ?? true;
2748
- const handleCollapsedChange = hasAssociation ? (collapsed) => onAssociationCollapsedChange?.(tab.id, collapsed) : (collapsed) => {
2749
- setLocalCollapsedStates((prev) => new Map(prev).set(tab.id, collapsed));
2750
- };
2751
- console.log("[CSP Debug]", { tabId: tab.id, hasAssociation, isCollapsed, hideHeader: !hasAssociation });
2746
+ const isCollapsed = hasAssociation ? association.collapsed : true;
2747
+ const handleCollapsedChange = hasAssociation ? (collapsed) => onAssociationCollapsedChange?.(tab.id, collapsed) : undefined;
2752
2748
  return /* @__PURE__ */ jsx7(CollapsibleSplitPane, {
2753
2749
  style: { height: "100%" },
2754
2750
  primaryContent: terminalContent,
@@ -2778,8 +2774,7 @@ var TabbedTerminalPanelInner = ({
2778
2774
  getAssociatedHeader,
2779
2775
  onAssociationCollapsedChange,
2780
2776
  onAssociationRatioChange,
2781
- theme,
2782
- localCollapsedStates
2777
+ theme
2783
2778
  ]);
2784
2779
  const handleTabDrop = useCallback5((draggedTabId, targetTabId) => {
2785
2780
  const draggedTab = tabs.find((t) => t.id === draggedTabId);
@@ -1 +1 @@
1
- {"version":3,"file":"TabbedTerminalPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/TabbedTerminalPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAKN,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EACV,wBAAwB,EACxB,WAAW,EAMZ,MAAM,gBAAgB,CAAC;AAkExB,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAugDD,eAAO,MAAM,mBAAmB,EAAkC,CAAC,IAAI,SAAS,OAAO,cAAc,EAAE,OAAO,GAAG,WAAW,EAC1H,KAAK,EAAE,wBAAwB,CAAC,IAAI,CAAC,KAClC,KAAK,CAAC,YAAY,CAAC"}
1
+ {"version":3,"file":"TabbedTerminalPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/TabbedTerminalPanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAKN,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EACV,wBAAwB,EACxB,WAAW,EAMZ,MAAM,gBAAgB,CAAC;AAkExB,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAggDD,eAAO,MAAM,mBAAmB,EAAkC,CAAC,IAAI,SAAS,OAAO,cAAc,EAAE,OAAO,GAAG,WAAW,EAC1H,KAAK,EAAE,wBAAwB,CAAC,IAAI,CAAC,KAClC,KAAK,CAAC,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@industry-theme/xterm-terminal-panel",
3
- "version": "0.5.18",
3
+ "version": "0.5.20",
4
4
  "description": "Industry-themed xterm.js terminal components with panel framework integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -62,7 +62,7 @@
62
62
  "@principal-ade/industry-theme": ">=0.1.8",
63
63
  "@principal-ade/panel-framework-core": ">=0.5.1",
64
64
  "@principal-ade/panel-layouts": ">=0.4.0",
65
- "@principal-ade/panels": ">=1.0.66",
65
+ "@principal-ade/panels": ">=1.0.73",
66
66
  "@principal-ade/utcp-panel-event": ">=0.1.0",
67
67
  "@xterm/addon-fit": ">=0.10.0",
68
68
  "@xterm/addon-search": ">=0.15.0",
@@ -91,7 +91,7 @@
91
91
  "@opentelemetry/api": "^1.9.0",
92
92
  "@principal-ade/industry-theme": "^0.1.8",
93
93
  "@principal-ade/panel-framework-core": "0.5.1",
94
- "@principal-ade/panels": "^1.0.64",
94
+ "@principal-ade/panels": "^1.0.73",
95
95
  "@principal-ai/repository-abstraction": "^0.5.7",
96
96
  "@principal-ai/storybook-addon-otel": "^0.3.22",
97
97
  "@storybook/addon-docs": "10.1.2",