diff --git a/patches/ink+7.0.3.patch b/patches/ink+7.0.3.patch index 6ffb6b7cec8..34d29199259 100644 --- a/patches/ink+7.0.3.patch +++ b/patches/ink+7.0.3.patch @@ -1,25 +1,3 @@ -diff --git a/node_modules/ink/package.json b/node_modules/ink/package.json ---- a/node_modules/ink/package.json -+++ b/node_modules/ink/package.json -@@ -11,8 +11,16 @@ - }, - "type": "module", - "exports": { -- "types": "./build/index.d.ts", -- "default": "./build/index.js" -+ ".": { -+ "types": "./build/index.d.ts", -+ "default": "./build/index.js" -+ }, -+ "./dom": { -+ "default": "./build/dom.js" -+ }, -+ "./components/CursorContext": { -+ "default": "./build/components/CursorContext.js" -+ } - }, - "engines": { - "node": ">=22" diff --git a/node_modules/ink/build/frame-controller.d.ts b/node_modules/ink/build/frame-controller.d.ts new file mode 100644 index 0000000..fe4821e @@ -126,7 +104,7 @@ index cc849f0..25d6b33 100644 //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/ink/build/ink.js b/node_modules/ink/build/ink.js -index ef659f3..fbba275 100644 +index ef659f3..cbdb068 100644 --- a/node_modules/ink/build/ink.js +++ b/node_modules/ink/build/ink.js @@ -17,6 +17,7 @@ import { hideCursorEscape, showCursorEscape } from './cursor-helpers.js'; @@ -167,7 +145,7 @@ index ef659f3..fbba275 100644 + const { output, outputHeight, staticOutput, cells } = render(this.rootNode, this.isScreenReaderEnabled, selection); + if (cells && this.frameController) { + this.frameController.publishFrame({ -+ width: cells.reduce((width, row) => Math.max(width, row.length), 0), ++ width: cells[0]?.length ?? 0, + height: cells.length, + cells, + }); @@ -175,14 +153,6 @@ index ef659f3..fbba275 100644 this.options.onRender?.({ renderTime: performance.now() - startTime }); // If output isn't empty, it means new children have been added to it const hasStaticOutput = staticOutput && staticOutput !== '\n'; -@@ -642,6 +658,7 @@ export default class Ink { - this.alternateScreen = this.resolveAlternateScreenOption(enabled, this.interactive); - if (this.alternateScreen) { - this.writeBestEffort(this.options.stdout, ansiEscapes.enterAlternativeScreen); -+ this.writeBestEffort(this.options.stdout, ansiEscapes.clearTerminal); - this.writeBestEffort(this.options.stdout, hideCursorEscape); - } - } diff --git a/node_modules/ink/build/output.d.ts b/node_modules/ink/build/output.d.ts index 0f4523f..1ceda6a 100644 --- a/node_modules/ink/build/output.d.ts