@industry-theme/xterm-terminal-panel 0.5.26 → 0.5.27
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
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
// package.json
|
|
36
36
|
var package_default = {
|
|
37
37
|
name: "@industry-theme/xterm-terminal-panel",
|
|
38
|
-
version: "0.5.
|
|
38
|
+
version: "0.5.27",
|
|
39
39
|
description: "Industry-themed xterm.js terminal components with panel framework integration",
|
|
40
40
|
type: "module",
|
|
41
41
|
main: "dist/index.js",
|
|
@@ -2268,6 +2268,7 @@ function TerminalTabContentInner(props, ref) {
|
|
|
2268
2268
|
const handleReady = useCallback5(async (cols, rows) => {
|
|
2269
2269
|
if (localSessionId && actions.resizeTerminal) {
|
|
2270
2270
|
const shouldForce = needsRefreshOnResizeRef.current;
|
|
2271
|
+
let bufferRestored = false;
|
|
2271
2272
|
if (shouldForce) {
|
|
2272
2273
|
needsRefreshOnResizeRef.current = false;
|
|
2273
2274
|
if (actions.getTerminalBuffer && terminalRef.current) {
|
|
@@ -2275,13 +2276,15 @@ function TerminalTabContentInner(props, ref) {
|
|
|
2275
2276
|
const buffer = await actions.getTerminalBuffer(localSessionId);
|
|
2276
2277
|
if (buffer) {
|
|
2277
2278
|
terminalRef.current.write(buffer);
|
|
2279
|
+
bufferRestored = true;
|
|
2278
2280
|
}
|
|
2279
2281
|
} catch (error) {
|
|
2280
2282
|
console.warn("[TabbedTerminalPanel] Failed to restore buffer:", error);
|
|
2281
2283
|
}
|
|
2282
2284
|
}
|
|
2283
2285
|
}
|
|
2284
|
-
|
|
2286
|
+
const forceResize = shouldForce && !bufferRestored;
|
|
2287
|
+
actions.resizeTerminal(localSessionId, cols, rows, forceResize);
|
|
2285
2288
|
}
|
|
2286
2289
|
}, [localSessionId, actions]);
|
|
2287
2290
|
const handleLinkClick = useCallback5((url, modifiers) => {
|
|
@@ -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;AAimDD,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