@opentui/core 0.2.11 → 0.2.12
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-akz3tpeb.js → index-6hvs3wp6.js} +2 -2
- package/{index-hpxarv5s.js → index-abtpr3qx.js} +11 -11
- package/{index-hpxarv5s.js.map → index-abtpr3qx.js.map} +3 -3
- package/{index-16cethat.js → index-wp87xqrj.js} +2 -2
- package/index.js +1 -1
- package/package.json +7 -7
- package/renderables/Markdown.d.ts +1 -0
- package/runtime-plugin-support-configure.js +3 -3
- package/runtime-plugin-support.js +3 -3
- package/runtime-plugin.js +2 -2
- /package/{index-akz3tpeb.js.map → index-6hvs3wp6.js.map} +0 -0
- /package/{index-16cethat.js.map → index-wp87xqrj.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
createRuntimePlugin
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-wp87xqrj.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-6hvs3wp6.js.map
|
|
@@ -9014,8 +9014,7 @@ class MarkdownRenderable extends Renderable {
|
|
|
9014
9014
|
continue;
|
|
9015
9015
|
}
|
|
9016
9016
|
const prev = blocks[blocks.length - 1];
|
|
9017
|
-
const
|
|
9018
|
-
const marginTop = prev && this.shouldAddTopLevelMargin(prev.token, token, separated) ? 1 : 0;
|
|
9017
|
+
const marginTop = prev && this.shouldAddTopLevelMargin(prev.token, token, gapBefore) ? 1 : 0;
|
|
9019
9018
|
blocks.push({
|
|
9020
9019
|
token,
|
|
9021
9020
|
sourceTokenEnd: i + 1,
|
|
@@ -9025,14 +9024,15 @@ class MarkdownRenderable extends Renderable {
|
|
|
9025
9024
|
}
|
|
9026
9025
|
return blocks;
|
|
9027
9026
|
}
|
|
9028
|
-
shouldAddTopLevelMargin(prev, current,
|
|
9029
|
-
if (
|
|
9027
|
+
shouldAddTopLevelMargin(prev, current, gapBefore) {
|
|
9028
|
+
if (this.isSeparatedTopLevelBlock(prev) || this.isSeparatedTopLevelBlock(current))
|
|
9030
9029
|
return true;
|
|
9031
|
-
if (current.type
|
|
9032
|
-
return
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9030
|
+
if (prev.type !== "paragraph" || current.type !== "paragraph")
|
|
9031
|
+
return false;
|
|
9032
|
+
return TRAILING_MARKDOWN_BLOCK_BREAKS_RE.test(prev.raw + gapBefore);
|
|
9033
|
+
}
|
|
9034
|
+
isSeparatedTopLevelBlock(token) {
|
|
9035
|
+
return token.type === "heading" || token.type === "list" || this.shouldRenderSeparately(token);
|
|
9036
9036
|
}
|
|
9037
9037
|
getTableRowsToRender(table) {
|
|
9038
9038
|
return table.rows;
|
|
@@ -11732,5 +11732,5 @@ class TimeToFirstDrawRenderable extends Renderable {
|
|
|
11732
11732
|
}
|
|
11733
11733
|
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
11734
|
|
|
11735
|
-
//# debugId=
|
|
11736
|
-
//# sourceMappingURL=index-
|
|
11735
|
+
//# debugId=3EFDBF20709770DB64756E2164756E21
|
|
11736
|
+
//# sourceMappingURL=index-abtpr3qx.js.map
|