@opentui/core 0.0.0-20251201-fe4cc80e → 0.0.0-20251202-71dcabc4

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.js CHANGED
@@ -9,9 +9,7 @@ import {
9
9
  ConsolePosition,
10
10
  DataPathsManager,
11
11
  DebugOverlayCorner,
12
- Edge,
13
12
  ExtmarksController,
14
- Gutter,
15
13
  InternalKeyHandler,
16
14
  KeyEvent,
17
15
  KeyHandler,
@@ -19,7 +17,6 @@ import {
19
17
  LinearScrollAccel,
20
18
  LogLevel,
21
19
  MacOSScrollAccel,
22
- MeasureMode,
23
20
  MouseButton,
24
21
  MouseEvent,
25
22
  MouseParser,
@@ -38,6 +35,7 @@ import {
38
35
  TextAttributes,
39
36
  TextBuffer,
40
37
  TreeSitterClient,
38
+ __toESM,
41
39
  addDefaultParsers,
42
40
  bg,
43
41
  bgBlack,
@@ -74,7 +72,6 @@ import {
74
72
  dim,
75
73
  env,
76
74
  envRegistry,
77
- exports_dist,
78
75
  extToFiletype,
79
76
  fg,
80
77
  fonts,
@@ -123,6 +120,7 @@ import {
123
120
  red,
124
121
  registerEnvVar,
125
122
  renderFontToFrameBuffer,
123
+ require_dist,
126
124
  resolveRenderLib,
127
125
  reverse,
128
126
  rgbToHex,
@@ -137,7 +135,7 @@ import {
137
135
  white,
138
136
  wrapWithDelegates,
139
137
  yellow
140
- } from "./index-533e9nca.js";
138
+ } from "./index-r6acnfwr.js";
141
139
  // src/text-buffer-view.ts
142
140
  class TextBufferView {
143
141
  lib;
@@ -2201,6 +2199,7 @@ class ASCIIFontRenderable extends FrameBufferRenderable {
2201
2199
  }
2202
2200
  }
2203
2201
  // src/renderables/Box.ts
2202
+ var import_bun_yoga = __toESM(require_dist(), 1);
2204
2203
  function isGapType(value) {
2205
2204
  if (value === undefined) {
2206
2205
  return true;
@@ -2379,44 +2378,45 @@ class BoxRenderable extends Renderable {
2379
2378
  }
2380
2379
  applyYogaBorders() {
2381
2380
  const node = this.yogaNode;
2382
- node.setBorder(Edge.Left, this.borderSides.left ? 1 : 0);
2383
- node.setBorder(Edge.Right, this.borderSides.right ? 1 : 0);
2384
- node.setBorder(Edge.Top, this.borderSides.top ? 1 : 0);
2385
- node.setBorder(Edge.Bottom, this.borderSides.bottom ? 1 : 0);
2381
+ node.setBorder(import_bun_yoga.Edge.Left, this.borderSides.left ? 1 : 0);
2382
+ node.setBorder(import_bun_yoga.Edge.Right, this.borderSides.right ? 1 : 0);
2383
+ node.setBorder(import_bun_yoga.Edge.Top, this.borderSides.top ? 1 : 0);
2384
+ node.setBorder(import_bun_yoga.Edge.Bottom, this.borderSides.bottom ? 1 : 0);
2386
2385
  this.requestRender();
2387
2386
  }
2388
2387
  applyYogaGap(options) {
2389
2388
  const node = this.yogaNode;
2390
2389
  if (isGapType(options.gap)) {
2391
- node.setGap(Gutter.All, options.gap);
2390
+ node.setGap(import_bun_yoga.Gutter.All, options.gap);
2392
2391
  }
2393
2392
  if (isGapType(options.rowGap)) {
2394
- node.setGap(Gutter.Row, options.rowGap);
2393
+ node.setGap(import_bun_yoga.Gutter.Row, options.rowGap);
2395
2394
  }
2396
2395
  if (isGapType(options.columnGap)) {
2397
- node.setGap(Gutter.Column, options.columnGap);
2396
+ node.setGap(import_bun_yoga.Gutter.Column, options.columnGap);
2398
2397
  }
2399
2398
  }
2400
2399
  set gap(gap) {
2401
2400
  if (isGapType(gap)) {
2402
- this.yogaNode.setGap(Gutter.All, gap);
2401
+ this.yogaNode.setGap(import_bun_yoga.Gutter.All, gap);
2403
2402
  this.requestRender();
2404
2403
  }
2405
2404
  }
2406
2405
  set rowGap(rowGap) {
2407
2406
  if (isGapType(rowGap)) {
2408
- this.yogaNode.setGap(Gutter.Row, rowGap);
2407
+ this.yogaNode.setGap(import_bun_yoga.Gutter.Row, rowGap);
2409
2408
  this.requestRender();
2410
2409
  }
2411
2410
  }
2412
2411
  set columnGap(columnGap) {
2413
2412
  if (isGapType(columnGap)) {
2414
- this.yogaNode.setGap(Gutter.Column, columnGap);
2413
+ this.yogaNode.setGap(import_bun_yoga.Gutter.Column, columnGap);
2415
2414
  this.requestRender();
2416
2415
  }
2417
2416
  }
2418
2417
  }
2419
2418
  // src/renderables/TextBufferRenderable.ts
2419
+ var import_bun_yoga2 = __toESM(require_dist(), 1);
2420
2420
  class TextBufferRenderable extends Renderable {
2421
2421
  selectable = true;
2422
2422
  _defaultFg;
@@ -2689,7 +2689,7 @@ class TextBufferRenderable extends Renderable {
2689
2689
  setupMeasureFunc() {
2690
2690
  const measureFunc = (width, widthMode, height, heightMode) => {
2691
2691
  let effectiveWidth;
2692
- if (widthMode === MeasureMode.Undefined || isNaN(width)) {
2692
+ if (widthMode === import_bun_yoga2.MeasureMode.Undefined || isNaN(width)) {
2693
2693
  effectiveWidth = 0;
2694
2694
  } else {
2695
2695
  effectiveWidth = width;
@@ -2698,7 +2698,7 @@ class TextBufferRenderable extends Renderable {
2698
2698
  const measureResult = this.textBufferView.measureForDimensions(Math.floor(effectiveWidth), Math.floor(effectiveHeight));
2699
2699
  const measuredWidth = measureResult ? Math.max(1, measureResult.maxWidth) : 1;
2700
2700
  const measuredHeight = measureResult ? Math.max(1, measureResult.lineCount) : 1;
2701
- if (widthMode === MeasureMode.AtMost && this._positionType !== "absolute") {
2701
+ if (widthMode === import_bun_yoga2.MeasureMode.AtMost && this._positionType !== "absolute") {
2702
2702
  return {
2703
2703
  width: Math.min(effectiveWidth, measuredWidth),
2704
2704
  height: Math.min(effectiveHeight, measuredHeight)
@@ -7499,6 +7499,8 @@ class TabSelectRenderable extends Renderable {
7499
7499
  }
7500
7500
  }
7501
7501
  // src/renderables/EditBufferRenderable.ts
7502
+ var import_bun_yoga3 = __toESM(require_dist(), 1);
7503
+
7502
7504
  class EditBufferRenderable extends Renderable {
7503
7505
  _focusable = true;
7504
7506
  selectable = true;
@@ -7798,7 +7800,7 @@ class EditBufferRenderable extends Renderable {
7798
7800
  setupMeasureFunc() {
7799
7801
  const measureFunc = (width, widthMode, height, heightMode) => {
7800
7802
  let effectiveWidth;
7801
- if (widthMode === MeasureMode.Undefined || isNaN(width)) {
7803
+ if (widthMode === import_bun_yoga3.MeasureMode.Undefined || isNaN(width)) {
7802
7804
  effectiveWidth = 0;
7803
7805
  } else {
7804
7806
  effectiveWidth = width;
@@ -7807,7 +7809,7 @@ class EditBufferRenderable extends Renderable {
7807
7809
  const measureResult = this.editorView.measureForDimensions(Math.floor(effectiveWidth), Math.floor(effectiveHeight));
7808
7810
  const measuredWidth = measureResult ? Math.max(1, measureResult.maxWidth) : 1;
7809
7811
  const measuredHeight = measureResult ? Math.max(1, measureResult.lineCount) : 1;
7810
- if (widthMode === MeasureMode.AtMost && this._positionType !== "absolute") {
7812
+ if (widthMode === import_bun_yoga3.MeasureMode.AtMost && this._positionType !== "absolute") {
7811
7813
  return {
7812
7814
  width: Math.min(effectiveWidth, measuredWidth),
7813
7815
  height: Math.min(effectiveHeight, measuredHeight)
@@ -8469,6 +8471,8 @@ class TextareaRenderable extends EditBufferRenderable {
8469
8471
  return this.editorView.extmarks;
8470
8472
  }
8471
8473
  }
8474
+ // src/index.ts
8475
+ var Yoga = __toESM(require_dist(), 1);
8472
8476
  export {
8473
8477
  yellow,
8474
8478
  wrapWithDelegates,
@@ -8578,7 +8582,7 @@ export {
8578
8582
  applyChromaticAberration,
8579
8583
  applyAsciiArt,
8580
8584
  addDefaultParsers,
8581
- exports_dist as Yoga,
8585
+ Yoga,
8582
8586
  VignetteEffect,
8583
8587
  VRenderable,
8584
8588
  TreeSitterClient,
@@ -8656,5 +8660,5 @@ export {
8656
8660
  ASCIIFont
8657
8661
  };
8658
8662
 
8659
- //# debugId=77A659B0F45EAC2C64756E2164756E21
8663
+ //# debugId=FC7E508FCF3C484F64756E2164756E21
8660
8664
  //# sourceMappingURL=index.js.map