@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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  createRuntimePlugin
4
- } from "./index-gpwc47jm.js";
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-8bzyejht.js.map
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-t4yn324k.js";
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 separated = prev ? TRAILING_MARKDOWN_BLOCK_BREAKS_RE.test(prev.token.raw + gapBefore) : false;
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, separated) {
9031
- if (current.type === "heading" || prev.type === "heading")
9027
+ shouldAddTopLevelMargin(prev, current, gapBefore) {
9028
+ if (this.isSeparatedTopLevelBlock(prev) || this.isSeparatedTopLevelBlock(current))
9032
9029
  return true;
9033
- if (current.type === "list")
9034
- return separated;
9035
- if (this.shouldRenderSeparately(prev) || this.shouldRenderSeparately(current))
9036
- return true;
9037
- return separated && prev.type === "paragraph" && current.type === "paragraph";
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=8F2E8A6BC348D97764756E2164756E21
11738
- //# sourceMappingURL=index-691sybgy.js.map
11735
+ //# debugId=3EFDBF20709770DB64756E2164756E21
11736
+ //# sourceMappingURL=index-abtpr3qx.js.map