@industry-theme/xterm-terminal-panel 0.5.17 → 0.5.19
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,10 +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 :
|
|
2748
|
-
const handleCollapsedChange = hasAssociation ? (collapsed) => onAssociationCollapsedChange?.(tab.id, collapsed) :
|
|
2749
|
-
setLocalCollapsedStates((prev) => new Map(prev).set(tab.id, collapsed));
|
|
2750
|
-
};
|
|
2746
|
+
const isCollapsed = hasAssociation ? association.collapsed : true;
|
|
2747
|
+
const handleCollapsedChange = hasAssociation ? (collapsed) => onAssociationCollapsedChange?.(tab.id, collapsed) : undefined;
|
|
2751
2748
|
return /* @__PURE__ */ jsx7(CollapsibleSplitPane, {
|
|
2752
2749
|
style: { height: "100%" },
|
|
2753
2750
|
primaryContent: terminalContent,
|
|
@@ -2777,8 +2774,7 @@ var TabbedTerminalPanelInner = ({
|
|
|
2777
2774
|
getAssociatedHeader,
|
|
2778
2775
|
onAssociationCollapsedChange,
|
|
2779
2776
|
onAssociationRatioChange,
|
|
2780
|
-
theme
|
|
2781
|
-
localCollapsedStates
|
|
2777
|
+
theme
|
|
2782
2778
|
]);
|
|
2783
2779
|
const handleTabDrop = useCallback5((draggedTabId, targetTabId) => {
|
|
2784
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;
|
|
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