@opentui/core 0.2.10 → 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-8bzyejht.js → index-6hvs3wp6.js} +2 -2
- package/{index-691sybgy.js → index-abtpr3qx.js} +12 -14
- package/{index-691sybgy.js.map → index-abtpr3qx.js.map} +3 -3
- package/{index-gpwc47jm.js → index-wp87xqrj.js} +3 -3
- package/{index-t4yn324k.js → index-ysvpktsp.js} +41 -355
- package/{index-t4yn324k.js.map → index-ysvpktsp.js.map} +5 -7
- package/index.js +3 -5
- package/index.js.map +1 -1
- package/lib/tree-sitter/assets/update.d.ts +1 -0
- package/lib/tree-sitter/index.d.ts +0 -2
- package/lib/tree-sitter/update-assets.d.ts +3 -0
- package/lib/tree-sitter/update-assets.js +377 -0
- package/lib/tree-sitter/update-assets.js.map +12 -0
- package/package.json +12 -7
- package/renderables/Markdown.d.ts +1 -0
- 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-8bzyejht.js.map → index-6hvs3wp6.js.map} +0 -0
- /package/{index-gpwc47jm.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
|
|
@@ -134,7 +134,6 @@ import {
|
|
|
134
134
|
italic,
|
|
135
135
|
link,
|
|
136
136
|
magenta,
|
|
137
|
-
main,
|
|
138
137
|
maybeMakeRenderable,
|
|
139
138
|
measureText,
|
|
140
139
|
mergeKeyAliases,
|
|
@@ -184,7 +183,7 @@ import {
|
|
|
184
183
|
white,
|
|
185
184
|
wrapWithDelegates,
|
|
186
185
|
yellow
|
|
187
|
-
} from "./index-
|
|
186
|
+
} from "./index-ysvpktsp.js";
|
|
188
187
|
|
|
189
188
|
// src/index.ts
|
|
190
189
|
var exports_src2 = {};
|
|
@@ -194,7 +193,6 @@ __export(exports_src2, {
|
|
|
194
193
|
white: () => white,
|
|
195
194
|
vstyles: () => vstyles,
|
|
196
195
|
visualizeRenderableTree: () => visualizeRenderableTree,
|
|
197
|
-
updateAssets: () => main,
|
|
198
196
|
underline: () => underline,
|
|
199
197
|
treeSitterToTextChunks: () => treeSitterToTextChunks,
|
|
200
198
|
treeSitterToStyledText: () => treeSitterToStyledText,
|
|
@@ -9016,8 +9014,7 @@ class MarkdownRenderable extends Renderable {
|
|
|
9016
9014
|
continue;
|
|
9017
9015
|
}
|
|
9018
9016
|
const prev = blocks[blocks.length - 1];
|
|
9019
|
-
const
|
|
9020
|
-
const marginTop = prev && this.shouldAddTopLevelMargin(prev.token, token, separated) ? 1 : 0;
|
|
9017
|
+
const marginTop = prev && this.shouldAddTopLevelMargin(prev.token, token, gapBefore) ? 1 : 0;
|
|
9021
9018
|
blocks.push({
|
|
9022
9019
|
token,
|
|
9023
9020
|
sourceTokenEnd: i + 1,
|
|
@@ -9027,14 +9024,15 @@ class MarkdownRenderable extends Renderable {
|
|
|
9027
9024
|
}
|
|
9028
9025
|
return blocks;
|
|
9029
9026
|
}
|
|
9030
|
-
shouldAddTopLevelMargin(prev, current,
|
|
9031
|
-
if (
|
|
9027
|
+
shouldAddTopLevelMargin(prev, current, gapBefore) {
|
|
9028
|
+
if (this.isSeparatedTopLevelBlock(prev) || this.isSeparatedTopLevelBlock(current))
|
|
9032
9029
|
return true;
|
|
9033
|
-
if (current.type
|
|
9034
|
-
return
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
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);
|
|
9038
9036
|
}
|
|
9039
9037
|
getTableRowsToRender(table) {
|
|
9040
9038
|
return table.rows;
|
|
@@ -11734,5 +11732,5 @@ class TimeToFirstDrawRenderable extends Renderable {
|
|
|
11734
11732
|
}
|
|
11735
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 };
|
|
11736
11734
|
|
|
11737
|
-
//# debugId=
|
|
11738
|
-
//# sourceMappingURL=index-
|
|
11735
|
+
//# debugId=3EFDBF20709770DB64756E2164756E21
|
|
11736
|
+
//# sourceMappingURL=index-abtpr3qx.js.map
|