@opentui/core 0.2.13 → 0.2.15
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/{index-04gp15zc.js → index-3fq5hq97.js} +27 -2
- package/{index-04gp15zc.js.map → index-3fq5hq97.js.map} +3 -3
- package/{index-abcme1yw.js → index-bdfngvbe.js} +2 -2
- package/{index-q0cfnm5n.js → index-pzzbb0f6.js} +3 -3
- package/{index-7a82km21.js → index-yyyfmp8n.js} +21 -20
- package/{index-7a82km21.js.map → index-yyyfmp8n.js.map} +5 -5
- package/index.js +2 -2
- package/package.json +7 -7
- package/runtime-plugin-support-configure.js +4 -4
- package/runtime-plugin-support.js +4 -4
- package/runtime-plugin.js +3 -3
- package/testing.js +1 -1
- /package/{index-abcme1yw.js.map → index-bdfngvbe.js.map} +0 -0
- /package/{index-q0cfnm5n.js.map → index-pzzbb0f6.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
createRuntimePlugin
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-pzzbb0f6.js";
|
|
5
5
|
|
|
6
6
|
// src/runtime-plugin-support-configure.ts
|
|
7
7
|
var {plugin: registerBunPlugin } = globalThis.Bun;
|
|
@@ -41,4 +41,4 @@ function ensureRuntimePluginSupport(options = {}) {
|
|
|
41
41
|
export { ensureRuntimePluginSupport };
|
|
42
42
|
|
|
43
43
|
//# debugId=09C0597CB92E654F64756E2164756E21
|
|
44
|
-
//# sourceMappingURL=index-
|
|
44
|
+
//# sourceMappingURL=index-bdfngvbe.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
exports_src
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-yyyfmp8n.js";
|
|
5
5
|
import {
|
|
6
6
|
__require
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-3fq5hq97.js";
|
|
8
8
|
|
|
9
9
|
// src/runtime-plugin.ts
|
|
10
10
|
import { existsSync, readFileSync, realpathSync } from "fs";
|
|
@@ -418,4 +418,4 @@ function createRuntimePlugin(input = {}) {
|
|
|
418
418
|
export { isCoreRuntimeModuleSpecifier, runtimeModuleIdForSpecifier, createRuntimePlugin };
|
|
419
419
|
|
|
420
420
|
//# debugId=4F4ECA92927B118964756E2164756E21
|
|
421
|
-
//# sourceMappingURL=index-
|
|
421
|
+
//# sourceMappingURL=index-pzzbb0f6.js.map
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
white,
|
|
184
184
|
wrapWithDelegates,
|
|
185
185
|
yellow
|
|
186
|
-
} from "./index-
|
|
186
|
+
} from "./index-3fq5hq97.js";
|
|
187
187
|
|
|
188
188
|
// src/index.ts
|
|
189
189
|
var exports_src2 = {};
|
|
@@ -5504,8 +5504,10 @@ var defaultTextareaKeyBindings = [
|
|
|
5504
5504
|
{ name: "delete", action: "delete" },
|
|
5505
5505
|
{ name: "delete", shift: true, action: "delete" },
|
|
5506
5506
|
{ name: "return", action: "newline" },
|
|
5507
|
+
{ name: "kpenter", action: "newline" },
|
|
5507
5508
|
{ name: "linefeed", action: "newline" },
|
|
5508
5509
|
{ name: "return", meta: true, action: "submit" },
|
|
5510
|
+
{ name: "kpenter", meta: true, action: "submit" },
|
|
5509
5511
|
{ name: "-", ctrl: true, action: "undo" },
|
|
5510
5512
|
{ name: ".", ctrl: true, action: "redo" },
|
|
5511
5513
|
{ name: "z", super: true, action: "undo" },
|
|
@@ -5799,6 +5801,7 @@ class InputRenderable extends TextareaRenderable {
|
|
|
5799
5801
|
wrapMode: "none",
|
|
5800
5802
|
keyBindings: [
|
|
5801
5803
|
{ name: "return", action: "submit" },
|
|
5804
|
+
{ name: "kpenter", action: "submit" },
|
|
5802
5805
|
{ name: "linefeed", action: "submit" },
|
|
5803
5806
|
...options.keyBindings || []
|
|
5804
5807
|
]
|
|
@@ -8755,10 +8758,8 @@ class MarkdownRenderable extends Renderable {
|
|
|
8755
8758
|
const renderable = this.createListChildRenderable(child, `${input.id}-child-${index}`);
|
|
8756
8759
|
if (!renderable)
|
|
8757
8760
|
continue;
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
pendingMarginTop = 0;
|
|
8761
|
-
}
|
|
8761
|
+
renderable.marginTop = child.type === "list" ? 0 : pendingMarginTop;
|
|
8762
|
+
pendingMarginTop = 0;
|
|
8762
8763
|
content.add(renderable);
|
|
8763
8764
|
}
|
|
8764
8765
|
return row;
|
|
@@ -8790,12 +8791,13 @@ class MarkdownRenderable extends Renderable {
|
|
|
8790
8791
|
}
|
|
8791
8792
|
const existing = children[childIndex];
|
|
8792
8793
|
const childId = `${id}-child-${tokenIndex}`;
|
|
8794
|
+
const marginTop = token.type === "list" ? 0 : pendingMarginTop;
|
|
8795
|
+
pendingMarginTop = 0;
|
|
8793
8796
|
if (!existing) {
|
|
8794
8797
|
const renderable = this.createListChildRenderable(token, childId);
|
|
8795
8798
|
if (!renderable)
|
|
8796
8799
|
return false;
|
|
8797
|
-
renderable.marginTop =
|
|
8798
|
-
pendingMarginTop = 0;
|
|
8800
|
+
renderable.marginTop = marginTop;
|
|
8799
8801
|
content.add(renderable, childIndex);
|
|
8800
8802
|
childIndex += 1;
|
|
8801
8803
|
continue;
|
|
@@ -8803,8 +8805,7 @@ class MarkdownRenderable extends Renderable {
|
|
|
8803
8805
|
if (!this.applyListChildRenderable(existing, token, previousTokens[childIndex], childId)) {
|
|
8804
8806
|
return false;
|
|
8805
8807
|
}
|
|
8806
|
-
existing.marginTop =
|
|
8807
|
-
pendingMarginTop = 0;
|
|
8808
|
+
existing.marginTop = marginTop;
|
|
8808
8809
|
childIndex += 1;
|
|
8809
8810
|
}
|
|
8810
8811
|
this.destroyListItemChildrenAfter(content, childIndex);
|
|
@@ -8893,7 +8894,7 @@ class MarkdownRenderable extends Renderable {
|
|
|
8893
8894
|
fg: this._fg,
|
|
8894
8895
|
bg: this._bg,
|
|
8895
8896
|
conceal: this._concealCode,
|
|
8896
|
-
drawUnstyledText: !
|
|
8897
|
+
drawUnstyledText: !this._streaming,
|
|
8897
8898
|
streaming: this._streaming,
|
|
8898
8899
|
treeSitterClient: this._treeSitterClient,
|
|
8899
8900
|
width: "100%",
|
|
@@ -8930,14 +8931,14 @@ class MarkdownRenderable extends Renderable {
|
|
|
8930
8931
|
applyCodeBlockRenderable(renderable, token, marginBottom) {
|
|
8931
8932
|
if (!(renderable instanceof CodeRenderable))
|
|
8932
8933
|
return;
|
|
8933
|
-
renderable.content = token.text;
|
|
8934
8934
|
renderable.filetype = infoStringToFiletype(token.lang ?? "");
|
|
8935
8935
|
renderable.syntaxStyle = this._syntaxStyle;
|
|
8936
8936
|
renderable.fg = this._fg;
|
|
8937
8937
|
renderable.bg = this._bg;
|
|
8938
8938
|
renderable.conceal = this._concealCode;
|
|
8939
|
-
renderable.drawUnstyledText = !
|
|
8939
|
+
renderable.drawUnstyledText = !this._streaming;
|
|
8940
8940
|
renderable.streaming = this._streaming;
|
|
8941
|
+
renderable.content = token.text;
|
|
8941
8942
|
renderable.marginBottom = marginBottom;
|
|
8942
8943
|
}
|
|
8943
8944
|
shouldRenderSeparately(token) {
|
|
@@ -9420,7 +9421,7 @@ class MarkdownRenderable extends Renderable {
|
|
|
9420
9421
|
}
|
|
9421
9422
|
state.renderable.destroyRecursively();
|
|
9422
9423
|
const markdownRenderable = this.createMarkdownCodeRenderable(this.getTopLevelBlockRaw(token) ?? token.raw, `${this.id}-block-${index}`, marginBottom);
|
|
9423
|
-
this.add(markdownRenderable);
|
|
9424
|
+
this.add(markdownRenderable, index);
|
|
9424
9425
|
state.renderable = markdownRenderable;
|
|
9425
9426
|
}
|
|
9426
9427
|
updateTopLevelBlocks(tokens, forceTableRefresh) {
|
|
@@ -9461,7 +9462,7 @@ class MarkdownRenderable extends Renderable {
|
|
|
9461
9462
|
}
|
|
9462
9463
|
const next = this.createTopLevelRenderable(block, blockIndex);
|
|
9463
9464
|
if (next.renderable) {
|
|
9464
|
-
this.add(next.renderable);
|
|
9465
|
+
this.add(next.renderable, blockIndex);
|
|
9465
9466
|
this._blockStates[blockIndex] = {
|
|
9466
9467
|
token: block.token,
|
|
9467
9468
|
tokenRaw: block.token.raw,
|
|
@@ -9586,7 +9587,7 @@ class MarkdownRenderable extends Renderable {
|
|
|
9586
9587
|
tableContentCache = cache ?? undefined;
|
|
9587
9588
|
}
|
|
9588
9589
|
if (renderable) {
|
|
9589
|
-
this.add(renderable);
|
|
9590
|
+
this.add(renderable, blockIndex);
|
|
9590
9591
|
this._blockStates[blockIndex] = {
|
|
9591
9592
|
token,
|
|
9592
9593
|
tokenRaw: token.raw,
|
|
@@ -9642,7 +9643,7 @@ class MarkdownRenderable extends Renderable {
|
|
|
9642
9643
|
} else {
|
|
9643
9644
|
state.renderable.destroyRecursively();
|
|
9644
9645
|
const fallbackRenderable = this.createMarkdownCodeRenderable(tableToken.raw, `${this.id}-block-${i}`, marginBottom);
|
|
9645
|
-
this.add(fallbackRenderable);
|
|
9646
|
+
this.add(fallbackRenderable, i);
|
|
9646
9647
|
state.renderable = fallbackRenderable;
|
|
9647
9648
|
}
|
|
9648
9649
|
state.tableContentCache = undefined;
|
|
@@ -9657,7 +9658,7 @@ class MarkdownRenderable extends Renderable {
|
|
|
9657
9658
|
}
|
|
9658
9659
|
state.renderable.destroyRecursively();
|
|
9659
9660
|
const tableRenderable = this.createTextTableRenderable(cache.content, `${this.id}-block-${i}`, marginBottom);
|
|
9660
|
-
this.add(tableRenderable);
|
|
9661
|
+
this.add(tableRenderable, i);
|
|
9661
9662
|
state.renderable = tableRenderable;
|
|
9662
9663
|
state.tableContentCache = cache;
|
|
9663
9664
|
continue;
|
|
@@ -9668,7 +9669,7 @@ class MarkdownRenderable extends Renderable {
|
|
|
9668
9669
|
}
|
|
9669
9670
|
state.renderable.destroyRecursively();
|
|
9670
9671
|
const markdownRenderable = this.createMarkdownCodeRenderable(this.getTopLevelBlockRaw(state.token) ?? state.token.raw, `${this.id}-block-${i}`, marginBottom);
|
|
9671
|
-
this.add(markdownRenderable);
|
|
9672
|
+
this.add(markdownRenderable, i);
|
|
9672
9673
|
state.renderable = markdownRenderable;
|
|
9673
9674
|
}
|
|
9674
9675
|
}
|
|
@@ -11732,5 +11733,5 @@ class TimeToFirstDrawRenderable extends Renderable {
|
|
|
11732
11733
|
}
|
|
11733
11734
|
export { DistortionEffect, VignetteEffect, CloudsEffect, FlamesEffect, CRTRollingBarEffect, RainbowTextEffect, applyScanlines, applyInvert, applyNoise, applyChromaticAberration, applyAsciiArt, applyBrightness, applyGain, applySaturation, BloomEffect, SEPIA_MATRIX, PROTANOPIA_SIM_MATRIX, DEUTERANOPIA_SIM_MATRIX, TRITANOPIA_SIM_MATRIX, ACHROMATOPSIA_MATRIX, PROTANOPIA_COMP_MATRIX, DEUTERANOPIA_COMP_MATRIX, TRITANOPIA_COMP_MATRIX, TECHNICOLOR_MATRIX, SOLARIZATION_MATRIX, SYNTHWAVE_MATRIX, GREENSCALE_MATRIX, GRAYSCALE_MATRIX, INVERT_MATRIX, Timeline, engine, createTimeline, SlotRegistry, createSlotRegistry, createCoreSlotRegistry, registerCorePlugin, resolveCoreSlot, SlotRenderable, NativeSpanFeed, Audio, setupAudio, FrameBufferRenderable, ASCIIFontRenderable, Generic, Box, Text, ASCIIFont, Input, Select, TabSelect, FrameBuffer, Code, ScrollBox, vstyles, VRenderable, LineNumberRenderable, DiffRenderable, defaultTextareaKeyBindings, TextareaRenderable, InputRenderableEvents, InputRenderable, TextTableRenderable, MarkdownRenderable, SliderRenderable, ScrollBarRenderable, ArrowRenderable, ScrollBoxRenderable, SelectRenderableEvents, SelectRenderable, TabSelectRenderableEvents, TabSelectRenderable, TimeToFirstDrawRenderable, exports_src2 as exports_src };
|
|
11734
11735
|
|
|
11735
|
-
//# debugId=
|
|
11736
|
-
//# sourceMappingURL=index-
|
|
11736
|
+
//# debugId=B8362B25E93E809764756E2164756E21
|
|
11737
|
+
//# sourceMappingURL=index-yyyfmp8n.js.map
|