@industry-theme/xterm-terminal-panel 0.5.12 → 0.5.14
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
|
@@ -1296,7 +1296,7 @@ var TabButton = ({
|
|
|
1296
1296
|
const icon = renderIcon ? renderIcon(tab) : undefined;
|
|
1297
1297
|
const displayIcon = icon !== undefined ? icon : tab.icon;
|
|
1298
1298
|
return displayIcon ? /* @__PURE__ */ jsx4("div", {
|
|
1299
|
-
style: { flexShrink: 0, display: "flex", alignItems: "center" },
|
|
1299
|
+
style: { flexShrink: 0, display: "flex", alignItems: "center", pointerEvents: "none" },
|
|
1300
1300
|
children: displayIcon
|
|
1301
1301
|
}) : null;
|
|
1302
1302
|
})(),
|
|
@@ -1307,7 +1307,8 @@ var TabButton = ({
|
|
|
1307
1307
|
style: {
|
|
1308
1308
|
overflow: "hidden",
|
|
1309
1309
|
textOverflow: "ellipsis",
|
|
1310
|
-
whiteSpace: "nowrap"
|
|
1310
|
+
whiteSpace: "nowrap",
|
|
1311
|
+
pointerEvents: "none"
|
|
1311
1312
|
},
|
|
1312
1313
|
title: typeof displayLabel === "string" ? displayLabel : tab.label,
|
|
1313
1314
|
children: displayLabel
|
|
@@ -4288,7 +4289,6 @@ var ActivityIndicator = ({ color, isAnimating }) => /* @__PURE__ */ jsxs6("div",
|
|
|
4288
4289
|
function TerminalTabContentInner(props, ref) {
|
|
4289
4290
|
const { tab, sessionId, isActive, isVisible, actions, events, terminalContext, onSessionCreated, onScrollPositionChange, isForeign = false, defaultScrollLocked, activityDetection = true, activityTimeout = 500, autoShowBlinds = false, onActivityStateChange } = props;
|
|
4290
4291
|
const { theme } = useTheme6();
|
|
4291
|
-
console.log("[TerminalTabContent] RENDER", { tabId: tab.id, isActive, sessionId });
|
|
4292
4292
|
const terminalRef = useRef3(null);
|
|
4293
4293
|
const [localSessionId, setLocalSessionId] = useState4(sessionId);
|
|
4294
4294
|
const [isInitialized, setIsInitialized] = useState4(false);
|
|
@@ -4651,7 +4651,6 @@ var TabbedTerminalPanelInner = ({
|
|
|
4651
4651
|
onTabAssociate: onTabAssociateProp,
|
|
4652
4652
|
onTabDissociate: _onTabDissociate
|
|
4653
4653
|
}) => {
|
|
4654
|
-
console.log("[TabbedTerminalPanel] RENDER", { terminalContext, directory, width });
|
|
4655
4654
|
const { theme } = useTheme6();
|
|
4656
4655
|
const onTabAssociate = actions.onTabAssociate ?? onTabAssociateProp;
|
|
4657
4656
|
const [ownedTabs, setOwnedTabs] = useState4(initialTabs);
|
|
@@ -5129,15 +5128,7 @@ var TabbedTerminalPanelInner = ({
|
|
|
5129
5128
|
const handleTabDrop = useCallback5((draggedTabId, targetTabId) => {
|
|
5130
5129
|
const draggedTab = tabs.find((t2) => t2.id === draggedTabId);
|
|
5131
5130
|
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
5131
|
if (targetTab?.contentType === "terminal" && draggedTab?.contentType !== "terminal") {
|
|
5140
|
-
console.log("[TabbedTerminalPanel] Calling onTabAssociate", { targetTabId, draggedTabId });
|
|
5141
5132
|
onTabAssociate?.(targetTabId, draggedTabId);
|
|
5142
5133
|
}
|
|
5143
5134
|
}, [tabs, onTabAssociate]);
|
|
@@ -5167,23 +5158,12 @@ var TabbedTerminalPanelInner = ({
|
|
|
5167
5158
|
e2.stopPropagation();
|
|
5168
5159
|
setIsDragOverContent(false);
|
|
5169
5160
|
const draggedTabId = e2.dataTransfer.getData("application/x-tab-association");
|
|
5170
|
-
console.log("[TabbedTerminalPanel] handleContentDrop", {
|
|
5171
|
-
draggedTabId,
|
|
5172
|
-
activeTabId,
|
|
5173
|
-
hasOnTabAssociate: !!onTabAssociate
|
|
5174
|
-
});
|
|
5175
5161
|
if (!draggedTabId || !activeTabId) {
|
|
5176
|
-
console.log("[TabbedTerminalPanel] handleContentDrop - missing draggedTabId or activeTabId");
|
|
5177
5162
|
return;
|
|
5178
5163
|
}
|
|
5179
5164
|
const draggedTab = tabs.find((t2) => t2.id === draggedTabId);
|
|
5180
5165
|
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
5166
|
if (activeTab?.contentType === "terminal" && draggedTab?.contentType !== "terminal") {
|
|
5186
|
-
console.log("[TabbedTerminalPanel] Calling onTabAssociate from content drop", { activeTabId, draggedTabId });
|
|
5187
5167
|
onTabAssociate?.(activeTabId, draggedTabId);
|
|
5188
5168
|
}
|
|
5189
5169
|
}, [activeTabId, tabs, onTabAssociate]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabButton.d.ts","sourceRoot":"","sources":["../../../../src/components/TabBar/TabButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAQtD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"TabButton.d.ts","sourceRoot":"","sources":["../../../../src/components/TabBar/TabButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAQtD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAqN9C,CAAC"}
|
|
@@ -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