@industry-theme/xterm-terminal-panel 0.5.9 → 0.5.11
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
|
@@ -4647,7 +4647,7 @@ var TabbedTerminalPanelInner = ({
|
|
|
4647
4647
|
onAssociationRatioChange,
|
|
4648
4648
|
renderAssociatedContent,
|
|
4649
4649
|
getAssociatedHeader,
|
|
4650
|
-
enableTabAssociationDrag =
|
|
4650
|
+
enableTabAssociationDrag = true,
|
|
4651
4651
|
onTabAssociate,
|
|
4652
4652
|
onTabDissociate: _onTabDissociate
|
|
4653
4653
|
}) => {
|
|
@@ -5128,7 +5128,15 @@ var TabbedTerminalPanelInner = ({
|
|
|
5128
5128
|
const handleTabDrop = useCallback5((draggedTabId, targetTabId) => {
|
|
5129
5129
|
const draggedTab = tabs.find((t2) => t2.id === draggedTabId);
|
|
5130
5130
|
const targetTab = tabs.find((t2) => t2.id === targetTabId);
|
|
5131
|
+
console.log("[TabbedTerminalPanel] handleTabDrop", {
|
|
5132
|
+
draggedTabId,
|
|
5133
|
+
targetTabId,
|
|
5134
|
+
draggedTab: draggedTab ? { id: draggedTab.id, contentType: draggedTab.contentType } : null,
|
|
5135
|
+
targetTab: targetTab ? { id: targetTab.id, contentType: targetTab.contentType } : null,
|
|
5136
|
+
hasOnTabAssociate: !!onTabAssociate
|
|
5137
|
+
});
|
|
5131
5138
|
if (targetTab?.contentType === "terminal" && draggedTab?.contentType !== "terminal") {
|
|
5139
|
+
console.log("[TabbedTerminalPanel] Calling onTabAssociate", { targetTabId, draggedTabId });
|
|
5132
5140
|
onTabAssociate?.(targetTabId, draggedTabId);
|
|
5133
5141
|
}
|
|
5134
5142
|
}, [tabs, onTabAssociate]);
|
|
@@ -5158,12 +5166,23 @@ var TabbedTerminalPanelInner = ({
|
|
|
5158
5166
|
e2.stopPropagation();
|
|
5159
5167
|
setIsDragOverContent(false);
|
|
5160
5168
|
const draggedTabId = e2.dataTransfer.getData("application/x-tab-association");
|
|
5169
|
+
console.log("[TabbedTerminalPanel] handleContentDrop", {
|
|
5170
|
+
draggedTabId,
|
|
5171
|
+
activeTabId,
|
|
5172
|
+
hasOnTabAssociate: !!onTabAssociate
|
|
5173
|
+
});
|
|
5161
5174
|
if (!draggedTabId || !activeTabId) {
|
|
5175
|
+
console.log("[TabbedTerminalPanel] handleContentDrop - missing draggedTabId or activeTabId");
|
|
5162
5176
|
return;
|
|
5163
5177
|
}
|
|
5164
5178
|
const draggedTab = tabs.find((t2) => t2.id === draggedTabId);
|
|
5165
5179
|
const activeTab = tabs.find((t2) => t2.id === activeTabId);
|
|
5180
|
+
console.log("[TabbedTerminalPanel] handleContentDrop tabs", {
|
|
5181
|
+
draggedTab: draggedTab ? { id: draggedTab.id, contentType: draggedTab.contentType } : null,
|
|
5182
|
+
activeTab: activeTab ? { id: activeTab.id, contentType: activeTab.contentType } : null
|
|
5183
|
+
});
|
|
5166
5184
|
if (activeTab?.contentType === "terminal" && draggedTab?.contentType !== "terminal") {
|
|
5185
|
+
console.log("[TabbedTerminalPanel] Calling onTabAssociate from content drop", { activeTabId, draggedTabId });
|
|
5167
5186
|
onTabAssociate?.(activeTabId, draggedTabId);
|
|
5168
5187
|
}
|
|
5169
5188
|
}, [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;AA8gDD,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