Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 2 additions & 32 deletions patches/ink+7.0.3.patch
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -167,22 +145,14 @@ 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,
+ });
+ }
this.options.onRender?.({ renderTime: performance.now() - startTime });
// If <Static> 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
Expand Down
Loading