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

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));
@@ -1727,9 +1729,17 @@ var TabbedTerminalPanelInner = ({
1727
1729
  const prev = prevCustomTabs.find((p) => p.id === tab.id);
1728
1730
  if (!prev)
1729
1731
  return false;
1730
- return JSON.stringify(tab) === JSON.stringify(prev);
1732
+ const isEqual = JSON.stringify(tab) === JSON.stringify(prev);
1733
+ if (!isEqual) {
1734
+ console.log("[TabbedTerminalPanel] Tab changed:", tab.id);
1735
+ console.log("[TabbedTerminalPanel] Previous:", prev);
1736
+ console.log("[TabbedTerminalPanel] New:", tab);
1737
+ }
1738
+ return isEqual;
1731
1739
  });
1740
+ console.log("[TabbedTerminalPanel] Custom tabs changed?", customTabsChanged);
1732
1741
  if (!customTabsChanged) {
1742
+ console.log("[TabbedTerminalPanel] No changes detected, returning prevTabs");
1733
1743
  return prevTabs;
1734
1744
  }
1735
1745
  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;AA+nCD,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.3",
4
4
  "description": "Industry-themed xterm.js terminal components with panel framework integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",