@opentui/core 0.1.89 → 0.1.91

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,10 +1,10 @@
1
- import { type RenderableOptions, Renderable } from "../Renderable";
2
- import type { OptimizedBuffer } from "../buffer";
3
- import { type BorderStyle } from "../lib/border";
4
- import { type Selection } from "../lib/selection";
5
- import { RGBA, type ColorInput } from "../lib/RGBA";
6
- import { type TextChunk } from "../text-buffer";
7
- import type { RenderContext } from "../types";
1
+ import { type RenderableOptions, Renderable } from "../Renderable.js";
2
+ import type { OptimizedBuffer } from "../buffer.js";
3
+ import { type BorderStyle } from "../lib/border.js";
4
+ import { type Selection } from "../lib/selection.js";
5
+ import { RGBA, type ColorInput } from "../lib/RGBA.js";
6
+ import { type TextChunk } from "../text-buffer.js";
7
+ import type { RenderContext } from "../types.js";
8
8
  export type TextTableCellContent = TextChunk[] | null | undefined;
9
9
  export type TextTableContent = TextTableCellContent[][];
10
10
  export type TextTableColumnWidthMode = "content" | "full";
@@ -1,7 +1,7 @@
1
- import type { OptimizedBuffer } from "../buffer";
2
- import { type ColorInput } from "../lib/RGBA";
3
- import { Renderable, type RenderableOptions } from "../Renderable";
4
- import type { RenderContext } from "../types";
1
+ import type { OptimizedBuffer } from "../buffer.js";
2
+ import { type ColorInput } from "../lib/RGBA.js";
3
+ import { Renderable, type RenderableOptions } from "../Renderable.js";
4
+ import type { RenderContext } from "../types.js";
5
5
  export interface TimeToFirstDrawOptions extends RenderableOptions<TimeToFirstDrawRenderable> {
6
6
  fg?: ColorInput;
7
7
  label?: string;
@@ -1,3 +1,3 @@
1
- import { createRuntimePlugin, runtimeModuleIdForSpecifier, type CreateRuntimePluginOptions, type RuntimeModuleEntry, type RuntimeModuleExports, type RuntimeModuleLoader } from "./runtime-plugin";
1
+ import { createRuntimePlugin, runtimeModuleIdForSpecifier, type CreateRuntimePluginOptions, type RuntimeModuleEntry, type RuntimeModuleExports, type RuntimeModuleLoader } from "./runtime-plugin.js";
2
2
  export declare function ensureRuntimePluginSupport(options?: CreateRuntimePluginOptions): boolean;
3
3
  export { createRuntimePlugin, runtimeModuleIdForSpecifier, type CreateRuntimePluginOptions, type RuntimeModuleEntry, type RuntimeModuleExports, type RuntimeModuleLoader, };
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  createRuntimePlugin,
4
4
  runtimeModuleIdForSpecifier
5
- } from "./index-tae5jwnc.js";
6
- import"./index-rs5zwr4j.js";
7
- import"./index-e89anq5x.js";
5
+ } from "./index-1xpw3v2p.js";
6
+ import"./index-7p56py22.js";
7
+ import"./index-mdxq0qtt.js";
8
8
 
9
9
  // src/runtime-plugin-support.ts
10
10
  var {plugin: registerBunPlugin } = globalThis.Bun;
@@ -2,7 +2,7 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/runtime-plugin-support.ts"],
4
4
  "sourcesContent": [
5
- "import { plugin as registerBunPlugin } from \"bun\"\nimport {\n createRuntimePlugin,\n runtimeModuleIdForSpecifier,\n type CreateRuntimePluginOptions,\n type RuntimeModuleEntry,\n type RuntimeModuleExports,\n type RuntimeModuleLoader,\n} from \"./runtime-plugin\"\n\nconst runtimePluginSupportInstalledKey = \"__opentuiCoreRuntimePluginSupportInstalled__\"\n\ntype RuntimePluginSupportState = typeof globalThis & {\n [runtimePluginSupportInstalledKey]?: boolean\n}\n\nexport function ensureRuntimePluginSupport(options: CreateRuntimePluginOptions = {}): boolean {\n const state = globalThis as RuntimePluginSupportState\n\n if (state[runtimePluginSupportInstalledKey]) {\n return false\n }\n\n registerBunPlugin(createRuntimePlugin(options))\n\n state[runtimePluginSupportInstalledKey] = true\n return true\n}\n\nensureRuntimePluginSupport()\n\nexport {\n createRuntimePlugin,\n runtimeModuleIdForSpecifier,\n type CreateRuntimePluginOptions,\n type RuntimeModuleEntry,\n type RuntimeModuleExports,\n type RuntimeModuleLoader,\n}\n"
5
+ "import { plugin as registerBunPlugin } from \"bun\"\nimport {\n createRuntimePlugin,\n runtimeModuleIdForSpecifier,\n type CreateRuntimePluginOptions,\n type RuntimeModuleEntry,\n type RuntimeModuleExports,\n type RuntimeModuleLoader,\n} from \"./runtime-plugin.js\"\n\nconst runtimePluginSupportInstalledKey = \"__opentuiCoreRuntimePluginSupportInstalled__\"\n\ntype RuntimePluginSupportState = typeof globalThis & {\n [runtimePluginSupportInstalledKey]?: boolean\n}\n\nexport function ensureRuntimePluginSupport(options: CreateRuntimePluginOptions = {}): boolean {\n const state = globalThis as RuntimePluginSupportState\n\n if (state[runtimePluginSupportInstalledKey]) {\n return false\n }\n\n registerBunPlugin(createRuntimePlugin(options))\n\n state[runtimePluginSupportInstalledKey] = true\n return true\n}\n\nensureRuntimePluginSupport()\n\nexport {\n createRuntimePlugin,\n runtimeModuleIdForSpecifier,\n type CreateRuntimePluginOptions,\n type RuntimeModuleEntry,\n type RuntimeModuleExports,\n type RuntimeModuleLoader,\n}\n"
6
6
  ],
7
7
  "mappings": ";;;;;;;;;AAAA;AAUA,IAAM,mCAAmC;AAMlC,SAAS,0BAA0B,CAAC,UAAsC,CAAC,GAAY;AAAA,EAC5F,MAAM,QAAQ;AAAA,EAEd,IAAI,MAAM,mCAAmC;AAAA,IAC3C,OAAO;AAAA,EACT;AAAA,EAEA,kBAAkB,oBAAoB,OAAO,CAAC;AAAA,EAE9C,MAAM,oCAAoC;AAAA,EAC1C,OAAO;AAAA;AAGT,2BAA2B;",
8
8
  "debugId": "7487C2BFD13C698664756E2164756E21",
package/runtime-plugin.js CHANGED
@@ -3,9 +3,9 @@ import {
3
3
  createRuntimePlugin,
4
4
  isCoreRuntimeModuleSpecifier,
5
5
  runtimeModuleIdForSpecifier
6
- } from "./index-tae5jwnc.js";
7
- import"./index-rs5zwr4j.js";
8
- import"./index-e89anq5x.js";
6
+ } from "./index-1xpw3v2p.js";
7
+ import"./index-7p56py22.js";
8
+ import"./index-mdxq0qtt.js";
9
9
  export {
10
10
  runtimeModuleIdForSpecifier,
11
11
  isCoreRuntimeModuleSpecifier,
@@ -1,4 +1,4 @@
1
- import type { Clock, TimerHandle } from "../lib/clock";
1
+ import type { Clock, TimerHandle } from "../lib/clock.js";
2
2
  export declare class ManualClock implements Clock {
3
3
  private time;
4
4
  private nextId;
package/testing.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  CliRenderer,
5
5
  TreeSitterClient,
6
6
  resolveRenderLib
7
- } from "./index-e89anq5x.js";
7
+ } from "./index-mdxq0qtt.js";
8
8
 
9
9
  // src/testing/test-renderer.ts
10
10
  import { Readable } from "stream";