@oh-my-pi/pi-tui 6.9.69 → 8.0.0
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 +1 -1
- package/src/components/box.ts +2 -2
- package/src/components/cancellable-loader.ts +1 -1
- package/src/components/editor.ts +5 -5
- package/src/components/image.ts +2 -2
- package/src/components/input.ts +3 -3
- package/src/components/loader.ts +1 -1
- package/src/components/markdown.ts +3 -3
- package/src/components/select-list.ts +4 -4
- package/src/components/settings-list.ts +3 -3
- package/src/components/spacer.ts +1 -1
- package/src/components/tab-bar.ts +3 -3
- package/src/components/text.ts +2 -2
- package/src/components/truncated-text.ts +2 -2
package/package.json
CHANGED
package/src/components/box.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Component } from "
|
|
2
|
-
import { applyBackgroundToLine, visibleWidth } from "
|
|
1
|
+
import type { Component } from "$tui/tui";
|
|
2
|
+
import { applyBackgroundToLine, visibleWidth } from "$tui/utils";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Box component - a container that applies padding and background to all children
|
package/src/components/editor.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { AutocompleteProvider, CombinedAutocompleteProvider } from "
|
|
2
|
-
import { matchesKey } from "
|
|
3
|
-
import type { SymbolTheme } from "
|
|
4
|
-
import { type Component, CURSOR_MARKER, type Focusable } from "
|
|
5
|
-
import { getSegmenter, isPunctuationChar, isWhitespaceChar, truncateToWidth, visibleWidth } from "
|
|
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";
|
|
6
6
|
import { SelectList, type SelectListTheme } from "./select-list";
|
|
7
7
|
|
|
8
8
|
const segmenter = getSegmenter();
|
package/src/components/image.ts
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
type ImageDimensions,
|
|
5
5
|
imageFallback,
|
|
6
6
|
renderImage,
|
|
7
|
-
} from "
|
|
8
|
-
import type { Component } from "
|
|
7
|
+
} from "$tui/terminal-image";
|
|
8
|
+
import type { Component } from "$tui/tui";
|
|
9
9
|
|
|
10
10
|
export interface ImageTheme {
|
|
11
11
|
fallbackColor: (str: string) => string;
|
package/src/components/input.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getEditorKeybindings } from "
|
|
2
|
-
import { type Component, CURSOR_MARKER, type Focusable } from "
|
|
3
|
-
import { getSegmenter, isPunctuationChar, isWhitespaceChar, visibleWidth } from "
|
|
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";
|
|
4
4
|
|
|
5
5
|
const segmenter = getSegmenter();
|
|
6
6
|
|
package/src/components/loader.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { marked, type Token } from "marked";
|
|
2
|
-
import type { SymbolTheme } from "
|
|
3
|
-
import type { Component } from "
|
|
4
|
-
import { applyBackgroundToLine, visibleWidth, wrapTextWithAnsi } from "
|
|
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 "
|
|
2
|
-
import type { SymbolTheme } from "
|
|
3
|
-
import type { Component } from "
|
|
4
|
-
import { truncateToWidth, visibleWidth } from "
|
|
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";
|
|
5
5
|
|
|
6
6
|
export interface SelectItem {
|
|
7
7
|
value: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { matchesKey } from "
|
|
2
|
-
import type { Component } from "
|
|
3
|
-
import { truncateToWidth, visibleWidth, wrapTextWithAnsi } from "
|
|
1
|
+
import { matchesKey } from "$tui/keys";
|
|
2
|
+
import type { Component } from "$tui/tui";
|
|
3
|
+
import { truncateToWidth, visibleWidth, wrapTextWithAnsi } from "$tui/utils";
|
|
4
4
|
|
|
5
5
|
export interface SettingItem {
|
|
6
6
|
/** Unique identifier for this setting */
|
package/src/components/spacer.ts
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* - Shift+Tab / Arrow Left: Previous tab (wraps around)
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import { matchesKey } from "
|
|
13
|
-
import type { Component } from "
|
|
14
|
-
import { wrapTextWithAnsi } from "
|
|
12
|
+
import { matchesKey } from "$tui/keys";
|
|
13
|
+
import type { Component } from "$tui/tui";
|
|
14
|
+
import { wrapTextWithAnsi } from "$tui/utils";
|
|
15
15
|
|
|
16
16
|
/** Tab definition */
|
|
17
17
|
export interface Tab {
|
package/src/components/text.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Component } from "
|
|
2
|
-
import { applyBackgroundToLine, wrapTextWithAnsi } from "
|
|
1
|
+
import type { Component } from "$tui/tui";
|
|
2
|
+
import { applyBackgroundToLine, wrapTextWithAnsi } from "$tui/utils";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Text component - displays multi-line text with word wrapping
|