@opentui/core 0.2.14 → 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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  createRuntimePlugin
4
- } from "./index-5v692kqx.js";
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-wdak3pbx.js.map
44
+ //# sourceMappingURL=index-bdfngvbe.js.map
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  exports_src
4
- } from "./index-nhyfhtvf.js";
4
+ } from "./index-yyyfmp8n.js";
5
5
  import {
6
6
  __require
7
7
  } from "./index-3fq5hq97.js";
@@ -418,4 +418,4 @@ function createRuntimePlugin(input = {}) {
418
418
  export { isCoreRuntimeModuleSpecifier, runtimeModuleIdForSpecifier, createRuntimePlugin };
419
419
 
420
420
  //# debugId=4F4ECA92927B118964756E2164756E21
421
- //# sourceMappingURL=index-5v692kqx.js.map
421
+ //# sourceMappingURL=index-pzzbb0f6.js.map
@@ -8758,10 +8758,8 @@ class MarkdownRenderable extends Renderable {
8758
8758
  const renderable = this.createListChildRenderable(child, `${input.id}-child-${index}`);
8759
8759
  if (!renderable)
8760
8760
  continue;
8761
- if (pendingMarginTop > 0) {
8762
- renderable.marginTop = pendingMarginTop;
8763
- pendingMarginTop = 0;
8764
- }
8761
+ renderable.marginTop = child.type === "list" ? 0 : pendingMarginTop;
8762
+ pendingMarginTop = 0;
8765
8763
  content.add(renderable);
8766
8764
  }
8767
8765
  return row;
@@ -8793,12 +8791,13 @@ class MarkdownRenderable extends Renderable {
8793
8791
  }
8794
8792
  const existing = children[childIndex];
8795
8793
  const childId = `${id}-child-${tokenIndex}`;
8794
+ const marginTop = token.type === "list" ? 0 : pendingMarginTop;
8795
+ pendingMarginTop = 0;
8796
8796
  if (!existing) {
8797
8797
  const renderable = this.createListChildRenderable(token, childId);
8798
8798
  if (!renderable)
8799
8799
  return false;
8800
- renderable.marginTop = pendingMarginTop;
8801
- pendingMarginTop = 0;
8800
+ renderable.marginTop = marginTop;
8802
8801
  content.add(renderable, childIndex);
8803
8802
  childIndex += 1;
8804
8803
  continue;
@@ -8806,8 +8805,7 @@ class MarkdownRenderable extends Renderable {
8806
8805
  if (!this.applyListChildRenderable(existing, token, previousTokens[childIndex], childId)) {
8807
8806
  return false;
8808
8807
  }
8809
- existing.marginTop = pendingMarginTop;
8810
- pendingMarginTop = 0;
8808
+ existing.marginTop = marginTop;
8811
8809
  childIndex += 1;
8812
8810
  }
8813
8811
  this.destroyListItemChildrenAfter(content, childIndex);
@@ -9423,7 +9421,7 @@ class MarkdownRenderable extends Renderable {
9423
9421
  }
9424
9422
  state.renderable.destroyRecursively();
9425
9423
  const markdownRenderable = this.createMarkdownCodeRenderable(this.getTopLevelBlockRaw(token) ?? token.raw, `${this.id}-block-${index}`, marginBottom);
9426
- this.add(markdownRenderable);
9424
+ this.add(markdownRenderable, index);
9427
9425
  state.renderable = markdownRenderable;
9428
9426
  }
9429
9427
  updateTopLevelBlocks(tokens, forceTableRefresh) {
@@ -9464,7 +9462,7 @@ class MarkdownRenderable extends Renderable {
9464
9462
  }
9465
9463
  const next = this.createTopLevelRenderable(block, blockIndex);
9466
9464
  if (next.renderable) {
9467
- this.add(next.renderable);
9465
+ this.add(next.renderable, blockIndex);
9468
9466
  this._blockStates[blockIndex] = {
9469
9467
  token: block.token,
9470
9468
  tokenRaw: block.token.raw,
@@ -9589,7 +9587,7 @@ class MarkdownRenderable extends Renderable {
9589
9587
  tableContentCache = cache ?? undefined;
9590
9588
  }
9591
9589
  if (renderable) {
9592
- this.add(renderable);
9590
+ this.add(renderable, blockIndex);
9593
9591
  this._blockStates[blockIndex] = {
9594
9592
  token,
9595
9593
  tokenRaw: token.raw,
@@ -9645,7 +9643,7 @@ class MarkdownRenderable extends Renderable {
9645
9643
  } else {
9646
9644
  state.renderable.destroyRecursively();
9647
9645
  const fallbackRenderable = this.createMarkdownCodeRenderable(tableToken.raw, `${this.id}-block-${i}`, marginBottom);
9648
- this.add(fallbackRenderable);
9646
+ this.add(fallbackRenderable, i);
9649
9647
  state.renderable = fallbackRenderable;
9650
9648
  }
9651
9649
  state.tableContentCache = undefined;
@@ -9660,7 +9658,7 @@ class MarkdownRenderable extends Renderable {
9660
9658
  }
9661
9659
  state.renderable.destroyRecursively();
9662
9660
  const tableRenderable = this.createTextTableRenderable(cache.content, `${this.id}-block-${i}`, marginBottom);
9663
- this.add(tableRenderable);
9661
+ this.add(tableRenderable, i);
9664
9662
  state.renderable = tableRenderable;
9665
9663
  state.tableContentCache = cache;
9666
9664
  continue;
@@ -9671,7 +9669,7 @@ class MarkdownRenderable extends Renderable {
9671
9669
  }
9672
9670
  state.renderable.destroyRecursively();
9673
9671
  const markdownRenderable = this.createMarkdownCodeRenderable(this.getTopLevelBlockRaw(state.token) ?? state.token.raw, `${this.id}-block-${i}`, marginBottom);
9674
- this.add(markdownRenderable);
9672
+ this.add(markdownRenderable, i);
9675
9673
  state.renderable = markdownRenderable;
9676
9674
  }
9677
9675
  }
@@ -11735,5 +11733,5 @@ class TimeToFirstDrawRenderable extends Renderable {
11735
11733
  }
11736
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 };
11737
11735
 
11738
- //# debugId=34EAE37A921CAC2964756E2164756E21
11739
- //# sourceMappingURL=index-nhyfhtvf.js.map
11736
+ //# debugId=B8362B25E93E809764756E2164756E21
11737
+ //# sourceMappingURL=index-yyyfmp8n.js.map