@opentui/core 0.6.0 → 0.6.1
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/{chunk-bun-tsc14mt5.js → chunk-bun-wsqkxxm5.js} +12 -4
- package/chunk-bun-wsqkxxm5.js.map +35 -0
- package/{chunk-bun-s01c2jyn.js → chunk-bun-ww65h9av.js} +18 -64
- package/{chunk-node-hjr2tm60.js.map → chunk-bun-ww65h9av.js.map} +5 -5
- package/{chunk-node-df90qrqc.js → chunk-node-f7c1g447.js} +12 -4
- package/chunk-node-f7c1g447.js.map +34 -0
- package/{chunk-node-hjr2tm60.js → chunk-node-jh6t3wnm.js} +18 -64
- package/{chunk-bun-s01c2jyn.js.map → chunk-node-jh6t3wnm.js.map} +5 -5
- package/edit-buffer.d.ts +5 -0
- package/index.bun.js +6 -7
- package/index.bun.js.map +4 -4
- package/index.node.js +6 -7
- package/index.node.js.map +4 -4
- package/native-abi.generated.d.ts +4 -0
- package/package.json +10 -11
- package/platform/runtime.d.ts +0 -1
- package/testing.bun.js +2 -2
- package/testing.js +2 -2
- package/yoga.bun.js +1 -1
- package/yoga.js +1 -1
- package/zig.d.ts +1 -0
- package/chunk-bun-tsc14mt5.js.map +0 -35
- package/chunk-node-df90qrqc.js.map +0 -34
package/edit-buffer.d.ts
CHANGED
|
@@ -72,6 +72,11 @@ export declare class EditBuffer extends EventEmitter {
|
|
|
72
72
|
} | null;
|
|
73
73
|
positionToOffset(row: number, col: number): number;
|
|
74
74
|
getLineStartOffset(row: number): number;
|
|
75
|
+
/**
|
|
76
|
+
* Returns the global display offset at the end of `text` as this buffer would lay it out, without storing it: its
|
|
77
|
+
* cells under this buffer's width method, tab width, and control notation, plus one per line break.
|
|
78
|
+
*/
|
|
79
|
+
measureText(text: string): number;
|
|
75
80
|
getTextRange(startOffset: number, endOffset: number): string;
|
|
76
81
|
getTextRangeByCoords(startRow: number, startCol: number, endRow: number, endCol: number): string;
|
|
77
82
|
debugLogRope(): void;
|
package/index.bun.js
CHANGED
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
resolveRenderLib2,
|
|
111
111
|
MeasureMode2,
|
|
112
112
|
exports_yoga
|
|
113
|
-
} from "./chunk-bun-
|
|
113
|
+
} from "./chunk-bun-wsqkxxm5.js";
|
|
114
114
|
import {
|
|
115
115
|
isValidBorderStyle2,
|
|
116
116
|
parseBorderStyle2,
|
|
@@ -241,7 +241,7 @@ import {
|
|
|
241
241
|
CliRenderEvents2,
|
|
242
242
|
RendererControlState2,
|
|
243
243
|
CliRenderer2
|
|
244
|
-
} from "./chunk-bun-
|
|
244
|
+
} from "./chunk-bun-ww65h9av.js";
|
|
245
245
|
// src/post/effects.ts
|
|
246
246
|
function toU8(value) {
|
|
247
247
|
return Math.round(Math.max(0, Math.min(1, Number.isFinite(value) ? value : 0)) * 255);
|
|
@@ -8224,7 +8224,6 @@ function mouseButton(event) {
|
|
|
8224
8224
|
}
|
|
8225
8225
|
// src/renderables/Textarea.ts
|
|
8226
8226
|
var unsupportedKeyCharacters = /[\x00-\x1f\x7f-\x9f]/;
|
|
8227
|
-
var unsupportedPasteCharacters = /[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/g;
|
|
8228
8227
|
function clonePlaceholder(value) {
|
|
8229
8228
|
if (value === null || typeof value === "string")
|
|
8230
8229
|
return value;
|
|
@@ -8410,7 +8409,7 @@ class TextareaRenderable extends EditBufferRenderable2 {
|
|
|
8410
8409
|
]);
|
|
8411
8410
|
}
|
|
8412
8411
|
handlePaste(event) {
|
|
8413
|
-
this.insertText(stripAnsiSequences2(decodePasteBytes2(event.bytes))
|
|
8412
|
+
this.insertText(stripAnsiSequences2(decodePasteBytes2(event.bytes)));
|
|
8414
8413
|
}
|
|
8415
8414
|
handleKeyPress(key) {
|
|
8416
8415
|
if (this.traits.suspend !== true) {
|
|
@@ -8576,7 +8575,7 @@ class InputRenderable extends TextareaRenderable {
|
|
|
8576
8575
|
this._minLength = minLength;
|
|
8577
8576
|
this._lastCommittedValue = this.plainText;
|
|
8578
8577
|
if (initialValue) {
|
|
8579
|
-
this.cursorOffset =
|
|
8578
|
+
this.cursorOffset = this.editBuffer.getEOL().offset;
|
|
8580
8579
|
}
|
|
8581
8580
|
} catch (error) {
|
|
8582
8581
|
this.rollbackConstruction(error);
|
|
@@ -8608,7 +8607,7 @@ class InputRenderable extends TextareaRenderable {
|
|
|
8608
8607
|
if (currentValue !== newValue) {
|
|
8609
8608
|
this.runMutation(() => {
|
|
8610
8609
|
this.setText(newValue);
|
|
8611
|
-
this.cursorOffset =
|
|
8610
|
+
this.cursorOffset = this.editBuffer.getEOL().offset;
|
|
8612
8611
|
this.emit("input" /* INPUT */, newValue);
|
|
8613
8612
|
});
|
|
8614
8613
|
}
|
|
@@ -15401,5 +15400,5 @@ export {
|
|
|
15401
15400
|
yellow2 as yellow
|
|
15402
15401
|
};
|
|
15403
15402
|
|
|
15404
|
-
//# debugId=
|
|
15403
|
+
//# debugId=94D06A29A58A1FB064756E2164756E21
|
|
15405
15404
|
//# sourceMappingURL=index.bun.js.map
|