@industry-theme/xterm-terminal-panel 0.3.1 → 0.3.2

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
@@ -1713,7 +1713,9 @@ var TabbedTerminalPanelInner = ({
1713
1713
  const tabToActivateRef = useRef3(null);
1714
1714
  useEffect4(() => {
1715
1715
  const customTabsFromProp = initialTabs.filter((tab) => tab.contentType !== "terminal");
1716
+ console.log("[TabbedTerminalPanel] Sync effect triggered. Custom tabs from prop:", customTabsFromProp.length, customTabsFromProp.map((t) => ({ id: t.id, type: t.contentType })));
1716
1717
  setOwnedTabs((prevTabs) => {
1718
+ console.log("[TabbedTerminalPanel] Previous owned tabs:", prevTabs.length, prevTabs.map((t) => ({ id: t.id, type: t.contentType })));
1717
1719
  const existingTerminalTabs = prevTabs.filter((tab) => tab.contentType === "terminal");
1718
1720
  const customTabIds = new Set(customTabsFromProp.map((t) => t.id));
1719
1721
  const existingCustomTabs = prevTabs.filter((tab) => tab.contentType !== "terminal" && !customTabIds.has(tab.id));
@@ -1729,7 +1731,9 @@ var TabbedTerminalPanelInner = ({
1729
1731
  return false;
1730
1732
  return JSON.stringify(tab) === JSON.stringify(prev);
1731
1733
  });
1734
+ console.log("[TabbedTerminalPanel] Custom tabs changed?", customTabsChanged);
1732
1735
  if (!customTabsChanged) {
1736
+ console.log("[TabbedTerminalPanel] No changes detected, returning prevTabs");
1733
1737
  return prevTabs;
1734
1738
  }
1735
1739
  const prevCustomTabIds = new Set(prevCustomTabs.map((t) => t.id));
@@ -1 +1 @@
1
- {"version":3,"file":"TabbedTerminalPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/TabbedTerminalPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAKN,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EACV,wBAAwB,EACxB,WAAW,EAIZ,MAAM,gBAAgB,CAAC;AAyBxB,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAonCD,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":"AAGA,OAAO,KAKN,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EACV,wBAAwB,EACxB,WAAW,EAIZ,MAAM,gBAAgB,CAAC;AAyBxB,MAAM,WAAW,qBAAqB;IACpC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAynCD,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.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Industry-themed xterm.js terminal components with panel framework integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",