@oh-my-pi/pi-tui 8.0.15 → 8.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oh-my-pi/pi-tui",
3
- "version": "8.0.15",
3
+ "version": "8.0.20",
4
4
  "description": "Terminal User Interface library with differential rendering for efficient text-based applications",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -1,5 +1,5 @@
1
- import type { Component } from "$tui/tui";
2
- import { applyBackgroundToLine, visibleWidth } from "$tui/utils";
1
+ import type { Component } from "@oh-my-pi/pi-tui/tui";
2
+ import { applyBackgroundToLine, visibleWidth } from "@oh-my-pi/pi-tui/utils";
3
3
 
4
4
  /**
5
5
  * Box component - a container that applies padding and background to all children
@@ -1,4 +1,4 @@
1
- import { matchesKey } from "$tui/keys";
1
+ import { matchesKey } from "@oh-my-pi/pi-tui/keys";
2
2
  import { Loader } from "./loader";
3
3
 
4
4
  /**
@@ -1,8 +1,14 @@
1
- import type { AutocompleteProvider, CombinedAutocompleteProvider } from "$tui/autocomplete";
2
- import { matchesKey } from "$tui/keys";
3
- import type { SymbolTheme } from "$tui/symbols";
4
- import { type Component, CURSOR_MARKER, type Focusable } from "$tui/tui";
5
- import { getSegmenter, isPunctuationChar, isWhitespaceChar, truncateToWidth, visibleWidth } from "$tui/utils";
1
+ import type { AutocompleteProvider, CombinedAutocompleteProvider } from "@oh-my-pi/pi-tui/autocomplete";
2
+ import { matchesKey } from "@oh-my-pi/pi-tui/keys";
3
+ import type { SymbolTheme } from "@oh-my-pi/pi-tui/symbols";
4
+ import { type Component, CURSOR_MARKER, type Focusable } from "@oh-my-pi/pi-tui/tui";
5
+ import {
6
+ getSegmenter,
7
+ isPunctuationChar,
8
+ isWhitespaceChar,
9
+ truncateToWidth,
10
+ visibleWidth,
11
+ } from "@oh-my-pi/pi-tui/utils";
6
12
  import { SelectList, type SelectListTheme } from "./select-list";
7
13
 
8
14
  const segmenter = getSegmenter();
@@ -4,8 +4,8 @@ import {
4
4
  type ImageDimensions,
5
5
  imageFallback,
6
6
  renderImage,
7
- } from "$tui/terminal-image";
8
- import type { Component } from "$tui/tui";
7
+ } from "@oh-my-pi/pi-tui/terminal-image";
8
+ import type { Component } from "@oh-my-pi/pi-tui/tui";
9
9
 
10
10
  export interface ImageTheme {
11
11
  fallbackColor: (str: string) => string;
@@ -1,6 +1,6 @@
1
- import { getEditorKeybindings } from "$tui/keybindings";
2
- import { type Component, CURSOR_MARKER, type Focusable } from "$tui/tui";
3
- import { getSegmenter, isPunctuationChar, isWhitespaceChar, visibleWidth } from "$tui/utils";
1
+ import { getEditorKeybindings } from "@oh-my-pi/pi-tui/keybindings";
2
+ import { type Component, CURSOR_MARKER, type Focusable } from "@oh-my-pi/pi-tui/tui";
3
+ import { getSegmenter, isPunctuationChar, isWhitespaceChar, visibleWidth } from "@oh-my-pi/pi-tui/utils";
4
4
 
5
5
  const segmenter = getSegmenter();
6
6
 
@@ -1,4 +1,4 @@
1
- import type { TUI } from "$tui/tui";
1
+ import type { TUI } from "@oh-my-pi/pi-tui/tui";
2
2
  import { Text } from "./text";
3
3
 
4
4
  /**
@@ -1,7 +1,7 @@
1
+ import type { SymbolTheme } from "@oh-my-pi/pi-tui/symbols";
2
+ import type { Component } from "@oh-my-pi/pi-tui/tui";
3
+ import { applyBackgroundToLine, visibleWidth, wrapTextWithAnsi } from "@oh-my-pi/pi-tui/utils";
1
4
  import { marked, type Token } from "marked";
2
- import type { SymbolTheme } from "$tui/symbols";
3
- import type { Component } from "$tui/tui";
4
- import { applyBackgroundToLine, visibleWidth, wrapTextWithAnsi } from "$tui/utils";
5
5
 
6
6
  /**
7
7
  * Default text styling for markdown content.
@@ -1,7 +1,7 @@
1
- import { matchesKey } from "$tui/keys";
2
- import type { SymbolTheme } from "$tui/symbols";
3
- import type { Component } from "$tui/tui";
4
- import { truncateToWidth, visibleWidth } from "$tui/utils";
1
+ import { matchesKey } from "@oh-my-pi/pi-tui/keys";
2
+ import type { SymbolTheme } from "@oh-my-pi/pi-tui/symbols";
3
+ import type { Component } from "@oh-my-pi/pi-tui/tui";
4
+ import { truncateToWidth, visibleWidth } from "@oh-my-pi/pi-tui/utils";
5
5
 
6
6
  export interface SelectItem {
7
7
  value: string;
@@ -1,6 +1,6 @@
1
- import { matchesKey } from "$tui/keys";
2
- import type { Component } from "$tui/tui";
3
- import { truncateToWidth, visibleWidth, wrapTextWithAnsi } from "$tui/utils";
1
+ import { matchesKey } from "@oh-my-pi/pi-tui/keys";
2
+ import type { Component } from "@oh-my-pi/pi-tui/tui";
3
+ import { truncateToWidth, visibleWidth, wrapTextWithAnsi } from "@oh-my-pi/pi-tui/utils";
4
4
 
5
5
  export interface SettingItem {
6
6
  /** Unique identifier for this setting */
@@ -1,4 +1,4 @@
1
- import type { Component } from "$tui/tui";
1
+ import type { Component } from "@oh-my-pi/pi-tui/tui";
2
2
 
3
3
  /**
4
4
  * Spacer component that renders empty lines
@@ -9,9 +9,9 @@
9
9
  * - Shift+Tab / Arrow Left: Previous tab (wraps around)
10
10
  */
11
11
 
12
- import { matchesKey } from "$tui/keys";
13
- import type { Component } from "$tui/tui";
14
- import { wrapTextWithAnsi } from "$tui/utils";
12
+ import { matchesKey } from "@oh-my-pi/pi-tui/keys";
13
+ import type { Component } from "@oh-my-pi/pi-tui/tui";
14
+ import { wrapTextWithAnsi } from "@oh-my-pi/pi-tui/utils";
15
15
 
16
16
  /** Tab definition */
17
17
  export interface Tab {
@@ -1,5 +1,5 @@
1
- import type { Component } from "$tui/tui";
2
- import { applyBackgroundToLine, wrapTextWithAnsi } from "$tui/utils";
1
+ import type { Component } from "@oh-my-pi/pi-tui/tui";
2
+ import { applyBackgroundToLine, wrapTextWithAnsi } from "@oh-my-pi/pi-tui/utils";
3
3
 
4
4
  /**
5
5
  * Text component - displays multi-line text with word wrapping
@@ -1,5 +1,5 @@
1
- import type { Component } from "$tui/tui";
2
- import { truncateToWidth } from "$tui/utils";
1
+ import type { Component } from "@oh-my-pi/pi-tui/tui";
2
+ import { truncateToWidth } from "@oh-my-pi/pi-tui/utils";
3
3
 
4
4
  /**
5
5
  * Text component that truncates to fit viewport width