@industry-theme/xterm-terminal-panel 0.5.12 → 0.5.13
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
|
@@ -4288,7 +4288,6 @@ var ActivityIndicator = ({ color, isAnimating }) => /* @__PURE__ */ jsxs6("div",
|
|
|
4288
4288
|
function TerminalTabContentInner(props, ref) {
|
|
4289
4289
|
const { tab, sessionId, isActive, isVisible, actions, events, terminalContext, onSessionCreated, onScrollPositionChange, isForeign = false, defaultScrollLocked, activityDetection = true, activityTimeout = 500, autoShowBlinds = false, onActivityStateChange } = props;
|
|
4290
4290
|
const { theme } = useTheme6();
|
|
4291
|
-
console.log("[TerminalTabContent] RENDER", { tabId: tab.id, isActive, sessionId });
|
|
4292
4291
|
const terminalRef = useRef3(null);
|
|
4293
4292
|
const [localSessionId, setLocalSessionId] = useState4(sessionId);
|
|
4294
4293
|
const [isInitialized, setIsInitialized] = useState4(false);
|
|
@@ -4651,7 +4650,6 @@ var TabbedTerminalPanelInner = ({
|
|
|
4651
4650
|
onTabAssociate: onTabAssociateProp,
|
|
4652
4651
|
onTabDissociate: _onTabDissociate
|
|
4653
4652
|
}) => {
|
|
4654
|
-
console.log("[TabbedTerminalPanel] RENDER", { terminalContext, directory, width });
|
|
4655
4653
|
const { theme } = useTheme6();
|
|
4656
4654
|
const onTabAssociate = actions.onTabAssociate ?? onTabAssociateProp;
|
|
4657
4655
|
const [ownedTabs, setOwnedTabs] = useState4(initialTabs);
|
|
@@ -5129,15 +5127,7 @@ var TabbedTerminalPanelInner = ({
|
|
|
5129
5127
|
const handleTabDrop = useCallback5((draggedTabId, targetTabId) => {
|
|
5130
5128
|
const draggedTab = tabs.find((t2) => t2.id === draggedTabId);
|
|
5131
5129
|
const targetTab = tabs.find((t2) => t2.id === targetTabId);
|
|
5132
|
-
console.log("[TabbedTerminalPanel] handleTabDrop", {
|
|
5133
|
-
draggedTabId,
|
|
5134
|
-
targetTabId,
|
|
5135
|
-
draggedTab: draggedTab ? { id: draggedTab.id, contentType: draggedTab.contentType } : null,
|
|
5136
|
-
targetTab: targetTab ? { id: targetTab.id, contentType: targetTab.contentType } : null,
|
|
5137
|
-
hasOnTabAssociate: !!onTabAssociate
|
|
5138
|
-
});
|
|
5139
5130
|
if (targetTab?.contentType === "terminal" && draggedTab?.contentType !== "terminal") {
|
|
5140
|
-
console.log("[TabbedTerminalPanel] Calling onTabAssociate", { targetTabId, draggedTabId });
|
|
5141
5131
|
onTabAssociate?.(targetTabId, draggedTabId);
|
|
5142
5132
|
}
|
|
5143
5133
|
}, [tabs, onTabAssociate]);
|
|
@@ -5167,23 +5157,12 @@ var TabbedTerminalPanelInner = ({
|
|
|
5167
5157
|
e2.stopPropagation();
|
|
5168
5158
|
setIsDragOverContent(false);
|
|
5169
5159
|
const draggedTabId = e2.dataTransfer.getData("application/x-tab-association");
|
|
5170
|
-
console.log("[TabbedTerminalPanel] handleContentDrop", {
|
|
5171
|
-
draggedTabId,
|
|
5172
|
-
activeTabId,
|
|
5173
|
-
hasOnTabAssociate: !!onTabAssociate
|
|
5174
|
-
});
|
|
5175
5160
|
if (!draggedTabId || !activeTabId) {
|
|
5176
|
-
console.log("[TabbedTerminalPanel] handleContentDrop - missing draggedTabId or activeTabId");
|
|
5177
5161
|
return;
|
|
5178
5162
|
}
|
|
5179
5163
|
const draggedTab = tabs.find((t2) => t2.id === draggedTabId);
|
|
5180
5164
|
const activeTab = tabs.find((t2) => t2.id === activeTabId);
|
|
5181
|
-
console.log("[TabbedTerminalPanel] handleContentDrop tabs", {
|
|
5182
|
-
draggedTab: draggedTab ? { id: draggedTab.id, contentType: draggedTab.contentType } : null,
|
|
5183
|
-
activeTab: activeTab ? { id: activeTab.id, contentType: activeTab.contentType } : null
|
|
5184
|
-
});
|
|
5185
5165
|
if (activeTab?.contentType === "terminal" && draggedTab?.contentType !== "terminal") {
|
|
5186
|
-
console.log("[TabbedTerminalPanel] Calling onTabAssociate from content drop", { activeTabId, draggedTabId });
|
|
5187
5166
|
onTabAssociate?.(activeTabId, draggedTabId);
|
|
5188
5167
|
}
|
|
5189
5168
|
}, [activeTabId, tabs, onTabAssociate]);
|
|
@@ -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;AAs/CD,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