@caupulican/pi-tui 0.80.8 → 0.80.10
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/README.md +0 -0
- package/dist/autocomplete.d.ts +0 -0
- package/dist/autocomplete.d.ts.map +0 -0
- package/dist/autocomplete.js +0 -0
- package/dist/autocomplete.js.map +0 -0
- package/dist/components/box.d.ts +0 -0
- package/dist/components/box.d.ts.map +0 -0
- package/dist/components/box.js +0 -0
- package/dist/components/box.js.map +0 -0
- package/dist/components/cancellable-loader.d.ts +0 -0
- package/dist/components/cancellable-loader.d.ts.map +0 -0
- package/dist/components/cancellable-loader.js +0 -0
- package/dist/components/cancellable-loader.js.map +0 -0
- package/dist/components/editor.d.ts +0 -0
- package/dist/components/editor.d.ts.map +0 -0
- package/dist/components/editor.js +0 -0
- package/dist/components/editor.js.map +0 -0
- package/dist/components/image.d.ts +0 -0
- package/dist/components/image.d.ts.map +0 -0
- package/dist/components/image.js +0 -0
- package/dist/components/image.js.map +0 -0
- package/dist/components/input.d.ts +0 -0
- package/dist/components/input.d.ts.map +0 -0
- package/dist/components/input.js +0 -0
- package/dist/components/input.js.map +0 -0
- package/dist/components/loader.d.ts +0 -0
- package/dist/components/loader.d.ts.map +0 -0
- package/dist/components/loader.js +0 -0
- package/dist/components/loader.js.map +0 -0
- package/dist/components/markdown.d.ts +0 -0
- package/dist/components/markdown.d.ts.map +0 -0
- package/dist/components/markdown.js +0 -0
- package/dist/components/markdown.js.map +0 -0
- package/dist/components/select-list.d.ts +0 -0
- package/dist/components/select-list.d.ts.map +0 -0
- package/dist/components/select-list.js +0 -0
- package/dist/components/select-list.js.map +0 -0
- package/dist/components/settings-list.d.ts +0 -0
- package/dist/components/settings-list.d.ts.map +0 -0
- package/dist/components/settings-list.js +0 -0
- package/dist/components/settings-list.js.map +0 -0
- package/dist/components/spacer.d.ts +0 -0
- package/dist/components/spacer.d.ts.map +0 -0
- package/dist/components/spacer.js +0 -0
- package/dist/components/spacer.js.map +0 -0
- package/dist/components/text.d.ts +0 -0
- package/dist/components/text.d.ts.map +0 -0
- package/dist/components/text.js +0 -0
- package/dist/components/text.js.map +0 -0
- package/dist/components/truncated-text.d.ts +0 -0
- package/dist/components/truncated-text.d.ts.map +0 -0
- package/dist/components/truncated-text.js +0 -0
- package/dist/components/truncated-text.js.map +0 -0
- package/dist/editor-component.d.ts +0 -0
- package/dist/editor-component.d.ts.map +0 -0
- package/dist/editor-component.js +0 -0
- package/dist/editor-component.js.map +0 -0
- package/dist/fuzzy.d.ts +0 -0
- package/dist/fuzzy.d.ts.map +0 -0
- package/dist/fuzzy.js +0 -0
- package/dist/fuzzy.js.map +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -0
- package/dist/index.js.map +1 -1
- package/dist/keybindings.d.ts +0 -0
- package/dist/keybindings.d.ts.map +0 -0
- package/dist/keybindings.js +0 -0
- package/dist/keybindings.js.map +0 -0
- package/dist/keys.d.ts +0 -0
- package/dist/keys.d.ts.map +0 -0
- package/dist/keys.js +0 -0
- package/dist/keys.js.map +0 -0
- package/dist/kill-ring.d.ts +0 -0
- package/dist/kill-ring.d.ts.map +0 -0
- package/dist/kill-ring.js +0 -0
- package/dist/kill-ring.js.map +0 -0
- package/dist/native-modifiers.d.ts +0 -0
- package/dist/native-modifiers.d.ts.map +0 -0
- package/dist/native-modifiers.js +0 -0
- package/dist/native-modifiers.js.map +0 -0
- package/dist/stdin-buffer.d.ts +0 -0
- package/dist/stdin-buffer.d.ts.map +0 -0
- package/dist/stdin-buffer.js +0 -0
- package/dist/stdin-buffer.js.map +0 -0
- package/dist/terminal-image.d.ts +0 -0
- package/dist/terminal-image.d.ts.map +0 -0
- package/dist/terminal-image.js +0 -0
- package/dist/terminal-image.js.map +0 -0
- package/dist/terminal.d.ts +0 -0
- package/dist/terminal.d.ts.map +0 -0
- package/dist/terminal.js +0 -0
- package/dist/terminal.js.map +0 -0
- package/dist/tui.d.ts +18 -5
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +166 -27
- package/dist/tui.js.map +1 -1
- package/dist/undo-stack.d.ts +0 -0
- package/dist/undo-stack.d.ts.map +0 -0
- package/dist/undo-stack.js +0 -0
- package/dist/undo-stack.js.map +0 -0
- package/dist/utils.d.ts +0 -0
- package/dist/utils.d.ts.map +0 -0
- package/dist/utils.js +0 -0
- package/dist/utils.js.map +0 -0
- package/dist/word-navigation.d.ts +0 -0
- package/dist/word-navigation.d.ts.map +0 -0
- package/dist/word-navigation.js +0 -0
- package/dist/word-navigation.js.map +0 -0
- package/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
- package/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
File without changes
|
package/dist/autocomplete.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/autocomplete.js
CHANGED
|
File without changes
|
package/dist/autocomplete.js.map
CHANGED
|
File without changes
|
package/dist/components/box.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/components/box.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/components/image.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/components/input.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/components/text.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/editor-component.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/fuzzy.d.ts
CHANGED
|
File without changes
|
package/dist/fuzzy.d.ts.map
CHANGED
|
File without changes
|
package/dist/fuzzy.js
CHANGED
|
File without changes
|
package/dist/fuzzy.js.map
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ export { decodeKittyPrintable, isKeyRelease, isKeyRepeat, isKittyProtocolActive,
|
|
|
18
18
|
export { StdinBuffer, type StdinBufferEventMap, type StdinBufferOptions } from "./stdin-buffer.ts";
|
|
19
19
|
export { ProcessTerminal, type Terminal } from "./terminal.ts";
|
|
20
20
|
export { allocateImageId, type CellDimensions, calculateImageRows, deleteAllKittyImages, deleteKittyImage, detectCapabilities, encodeITerm2, encodeKitty, getCapabilities, getCellDimensions, getGifDimensions, getImageDimensions, getJpegDimensions, getPngDimensions, getWebpDimensions, hyperlink, type ImageDimensions, type ImageProtocol, type ImageRenderOptions, imageFallback, renderImage, resetCapabilitiesCache, setCapabilities, setCellDimensions, type TerminalCapabilities, } from "./terminal-image.ts";
|
|
21
|
-
export { type Component, Container, CURSOR_MARKER, type Focusable, isFocusable, type OverlayAnchor, type OverlayHandle, type OverlayMargin, type OverlayOptions, type SizeValue, TUI, } from "./tui.ts";
|
|
21
|
+
export { type Component, Container, CURSOR_MARKER, type Focusable, isFocusable, type OverlayAnchor, type OverlayHandle, type OverlayMargin, type OverlayOptions, type OverlayUnfocusOptions, type SizeValue, TUI, } from "./tui.ts";
|
|
22
22
|
export { truncateToWidth, visibleWidth, wrapTextWithAnsi } from "./utils.ts";
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK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,iBAAiB,EACtB,kBAAkB,EAClB,cAAc,EACd,eAAe,GACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACN,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,qBAAqB,EACrB,GAAG,EACH,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,UAAU,EACV,QAAQ,EACR,sBAAsB,GACtB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,WAAW,EAAE,KAAK,mBAAmB,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEnG,OAAO,EAAE,eAAe,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,EACN,eAAe,EACf,KAAK,cAAc,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,aAAa,EACb,WAAW,EACX,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,KAAK,oBAAoB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,KAAK,SAAS,EACd,SAAS,EACT,aAAa,EACb,KAAK,SAAS,EACd,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,GAAG,GACH,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC","sourcesContent":["// Core TUI interfaces and classes\n\n// Autocomplete support\nexport {\n\ttype AutocompleteItem,\n\ttype AutocompleteProvider,\n\ttype AutocompleteSuggestions,\n\tCombinedAutocompleteProvider,\n\ttype SlashCommand,\n} from \"./autocomplete.ts\";\n// Components\nexport { Box } from \"./components/box.ts\";\nexport { CancellableLoader } from \"./components/cancellable-loader.ts\";\nexport { Editor, type EditorOptions, type EditorTheme } from \"./components/editor.ts\";\nexport { Image, type ImageOptions, type ImageTheme } from \"./components/image.ts\";\nexport { Input } from \"./components/input.ts\";\nexport { Loader, type LoaderIndicatorOptions } from \"./components/loader.ts\";\nexport { type DefaultTextStyle, Markdown, type MarkdownOptions, type MarkdownTheme } from \"./components/markdown.ts\";\nexport {\n\ttype SelectItem,\n\tSelectList,\n\ttype SelectListLayoutOptions,\n\ttype SelectListTheme,\n\ttype SelectListTruncatePrimaryContext,\n} from \"./components/select-list.ts\";\nexport { type SettingItem, SettingsList, type SettingsListTheme } from \"./components/settings-list.ts\";\nexport { Spacer } from \"./components/spacer.ts\";\nexport { Text } from \"./components/text.ts\";\nexport { TruncatedText } from \"./components/truncated-text.ts\";\n// Editor component interface (for custom editors)\nexport type { EditorComponent } from \"./editor-component.ts\";\n// Fuzzy matching\nexport { type FuzzyMatch, fuzzyFilter, fuzzyMatch } from \"./fuzzy.ts\";\n// Keybindings\nexport {\n\tgetKeybindings,\n\ttype Keybinding,\n\ttype KeybindingConflict,\n\ttype KeybindingDefinition,\n\ttype KeybindingDefinitions,\n\ttype Keybindings,\n\ttype KeybindingsConfig,\n\tKeybindingsManager,\n\tsetKeybindings,\n\tTUI_KEYBINDINGS,\n} from \"./keybindings.ts\";\n// Keyboard input handling\nexport {\n\tdecodeKittyPrintable,\n\tisKeyRelease,\n\tisKeyRepeat,\n\tisKittyProtocolActive,\n\tKey,\n\ttype KeyEventType,\n\ttype KeyId,\n\tmatchesKey,\n\tparseKey,\n\tsetKittyProtocolActive,\n} from \"./keys.ts\";\n// Input buffering for batch splitting\nexport { StdinBuffer, type StdinBufferEventMap, type StdinBufferOptions } from \"./stdin-buffer.ts\";\n// Terminal interface and implementations\nexport { ProcessTerminal, type Terminal } from \"./terminal.ts\";\n// Terminal image support\nexport {\n\tallocateImageId,\n\ttype CellDimensions,\n\tcalculateImageRows,\n\tdeleteAllKittyImages,\n\tdeleteKittyImage,\n\tdetectCapabilities,\n\tencodeITerm2,\n\tencodeKitty,\n\tgetCapabilities,\n\tgetCellDimensions,\n\tgetGifDimensions,\n\tgetImageDimensions,\n\tgetJpegDimensions,\n\tgetPngDimensions,\n\tgetWebpDimensions,\n\thyperlink,\n\ttype ImageDimensions,\n\ttype ImageProtocol,\n\ttype ImageRenderOptions,\n\timageFallback,\n\trenderImage,\n\tresetCapabilitiesCache,\n\tsetCapabilities,\n\tsetCellDimensions,\n\ttype TerminalCapabilities,\n} from \"./terminal-image.ts\";\nexport {\n\ttype Component,\n\tContainer,\n\tCURSOR_MARKER,\n\ttype Focusable,\n\tisFocusable,\n\ttype OverlayAnchor,\n\ttype OverlayHandle,\n\ttype OverlayMargin,\n\ttype OverlayOptions,\n\ttype SizeValue,\n\tTUI,\n} from \"./tui.ts\";\n// Utilities\nexport { truncateToWidth, visibleWidth, wrapTextWithAnsi } from \"./utils.ts\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,4BAA4B,EAC5B,KAAK,YAAY,GACjB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,sBAAsB,EAAE,MAAM,wB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BAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,aAAa,EACb,WAAW,EACX,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,KAAK,oBAAoB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,KAAK,SAAS,EACd,SAAS,EACT,aAAa,EACb,KAAK,SAAS,EACd,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,GAAG,GACH,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC","sourcesContent":["// Core TUI interfaces and classes\n\n// Autocomplete support\nexport {\n\ttype AutocompleteItem,\n\ttype AutocompleteProvider,\n\ttype AutocompleteSuggestions,\n\tCombinedAutocompleteProvider,\n\ttype SlashCommand,\n} from \"./autocomplete.ts\";\n// Components\nexport { Box } from \"./components/box.ts\";\nexport { CancellableLoader } from \"./components/cancellable-loader.ts\";\nexport { Editor, type EditorOptions, type EditorTheme } from \"./components/editor.ts\";\nexport { Image, type ImageOptions, type ImageTheme } from \"./components/image.ts\";\nexport { Input } from \"./components/input.ts\";\nexport { Loader, type LoaderIndicatorOptions } from \"./components/loader.ts\";\nexport { type DefaultTextStyle, Markdown, type MarkdownOptions, type MarkdownTheme } from \"./components/markdown.ts\";\nexport {\n\ttype SelectItem,\n\tSelectList,\n\ttype SelectListLayoutOptions,\n\ttype SelectListTheme,\n\ttype SelectListTruncatePrimaryContext,\n} from \"./components/select-list.ts\";\nexport { type SettingItem, SettingsList, type SettingsListTheme } from \"./components/settings-list.ts\";\nexport { Spacer } from \"./components/spacer.ts\";\nexport { Text } from \"./components/text.ts\";\nexport { TruncatedText } from \"./components/truncated-text.ts\";\n// Editor component interface (for custom editors)\nexport type { EditorComponent } from \"./editor-component.ts\";\n// Fuzzy matching\nexport { type FuzzyMatch, fuzzyFilter, fuzzyMatch } from \"./fuzzy.ts\";\n// Keybindings\nexport {\n\tgetKeybindings,\n\ttype Keybinding,\n\ttype KeybindingConflict,\n\ttype KeybindingDefinition,\n\ttype KeybindingDefinitions,\n\ttype Keybindings,\n\ttype KeybindingsConfig,\n\tKeybindingsManager,\n\tsetKeybindings,\n\tTUI_KEYBINDINGS,\n} from \"./keybindings.ts\";\n// Keyboard input handling\nexport {\n\tdecodeKittyPrintable,\n\tisKeyRelease,\n\tisKeyRepeat,\n\tisKittyProtocolActive,\n\tKey,\n\ttype KeyEventType,\n\ttype KeyId,\n\tmatchesKey,\n\tparseKey,\n\tsetKittyProtocolActive,\n} from \"./keys.ts\";\n// Input buffering for batch splitting\nexport { StdinBuffer, type StdinBufferEventMap, type StdinBufferOptions } from \"./stdin-buffer.ts\";\n// Terminal interface and implementations\nexport { ProcessTerminal, type Terminal } from \"./terminal.ts\";\n// Terminal image support\nexport {\n\tallocateImageId,\n\ttype CellDimensions,\n\tcalculateImageRows,\n\tdeleteAllKittyImages,\n\tdeleteKittyImage,\n\tdetectCapabilities,\n\tencodeITerm2,\n\tencodeKitty,\n\tgetCapabilities,\n\tgetCellDimensions,\n\tgetGifDimensions,\n\tgetImageDimensions,\n\tgetJpegDimensions,\n\tgetPngDimensions,\n\tgetWebpDimensions,\n\thyperlink,\n\ttype ImageDimensions,\n\ttype ImageProtocol,\n\ttype ImageRenderOptions,\n\timageFallback,\n\trenderImage,\n\tresetCapabilitiesCache,\n\tsetCapabilities,\n\tsetCellDimensions,\n\ttype TerminalCapabilities,\n} from \"./terminal-image.ts\";\nexport {\n\ttype Component,\n\tContainer,\n\tCURSOR_MARKER,\n\ttype Focusable,\n\tisFocusable,\n\ttype OverlayAnchor,\n\ttype OverlayHandle,\n\ttype OverlayMargin,\n\ttype OverlayOptions,\n\ttype OverlayUnfocusOptions,\n\ttype SizeValue,\n\tTUI,\n} from \"./tui.ts\";\n// Utilities\nexport { truncateToWidth, visibleWidth, wrapTextWithAnsi } from \"./utils.ts\";\n"]}
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAElC,uBAAuB;AACvB,OAAO,EAIN,4BAA4B,GAE5B,MAAM,mBAAmB,CAAC;AAC3B,aAAa;AACb,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAwC,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,KAAK,EAAsC,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAA+B,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAyB,QAAQ,EAA4C,MAAM,0BAA0B,CAAC;AACrH,OAAO,EAEN,UAAU,GAIV,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAoB,YAAY,EAA0B,MAAM,+BAA+B,CAAC;AACvG,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,iBAAiB;AACjB,OAAO,EAAmB,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACtE,cAAc;AACd,OAAO,EACN,cAAc,EAOd,kBAAkB,EAClB,cAAc,EACd,eAAe,GACf,MAAM,kBAAkB,CAAC;A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rC,OAAO,EAAoB,YAAY,EAA0B,MAAM,+BAA+B,CAAC;AACvG,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,iBAAiB;AACjB,OAAO,EAAmB,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACtE,cAAc;AACd,OAAO,EACN,cAAc,EAOd,kBAAkB,EAClB,cAAc,EACd,eAAe,GACf,MAAM,kBAAkB,CAAC;AAC1B,0BAA0B;AAC1B,OAAO,EACN,oBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,qBAAqB,EACrB,GAAG,EAGH,UAAU,EACV,QAAQ,EACR,sBAAsB,GACtB,MAAM,WAAW,CAAC;AACnB,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAqD,MAAM,mBAAmB,CAAC;AACnG,yCAAyC;AACzC,OAAO,EAAE,eAAe,EAAiB,MAAM,eAAe,CAAC;AAC/D,yBAAyB;AACzB,OAAO,EACN,eAAe,EAEf,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EAIT,aAAa,EACb,WAAW,EACX,sBAAsB,EACtB,eAAe,EACf,iBAAiB,GAEjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEN,SAAS,EACT,aAAa,EAEb,WAAW,EAOX,GAAG,GACH,MAAM,UAAU,CAAC;AAClB,YAAY;AACZ,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC","sourcesContent":["// Core TUI interfaces and classes\n\n// Autocomplete support\nexport {\n\ttype AutocompleteItem,\n\ttype AutocompleteProvider,\n\ttype AutocompleteSuggestions,\n\tCombinedAutocompleteProvider,\n\ttype SlashCommand,\n} from \"./autocomplete.ts\";\n// Components\nexport { Box } from \"./components/box.ts\";\nexport { CancellableLoader } from \"./components/cancellable-loader.ts\";\nexport { Editor, type EditorOptions, type EditorTheme } from \"./components/editor.ts\";\nexport { Image, type ImageOptions, type ImageTheme } from \"./components/image.ts\";\nexport { Input } from \"./components/input.ts\";\nexport { Loader, type LoaderIndicatorOptions } from \"./components/loader.ts\";\nexport { type DefaultTextStyle, Markdown, type MarkdownOptions, type MarkdownTheme } from \"./components/markdown.ts\";\nexport {\n\ttype SelectItem,\n\tSelectList,\n\ttype SelectListLayoutOptions,\n\ttype SelectListTheme,\n\ttype SelectListTruncatePrimaryContext,\n} from \"./components/select-list.ts\";\nexport { type SettingItem, SettingsList, type SettingsListTheme } from \"./components/settings-list.ts\";\nexport { Spacer } from \"./components/spacer.ts\";\nexport { Text } from \"./components/text.ts\";\nexport { TruncatedText } from \"./components/truncated-text.ts\";\n// Editor component interface (for custom editors)\nexport type { EditorComponent } from \"./editor-component.ts\";\n// Fuzzy matching\nexport { type FuzzyMatch, fuzzyFilter, fuzzyMatch } from \"./fuzzy.ts\";\n// Keybindings\nexport {\n\tgetKeybindings,\n\ttype Keybinding,\n\ttype KeybindingConflict,\n\ttype KeybindingDefinition,\n\ttype KeybindingDefinitions,\n\ttype Keybindings,\n\ttype KeybindingsConfig,\n\tKeybindingsManager,\n\tsetKeybindings,\n\tTUI_KEYBINDINGS,\n} from \"./keybindings.ts\";\n// Keyboard input handling\nexport {\n\tdecodeKittyPrintable,\n\tisKeyRelease,\n\tisKeyRepeat,\n\tisKittyProtocolActive,\n\tKey,\n\ttype KeyEventType,\n\ttype KeyId,\n\tmatchesKey,\n\tparseKey,\n\tsetKittyProtocolActive,\n} from \"./keys.ts\";\n// Input buffering for batch splitting\nexport { StdinBuffer, type StdinBufferEventMap, type StdinBufferOptions } from \"./stdin-buffer.ts\";\n// Terminal interface and implementations\nexport { ProcessTerminal, type Terminal } from \"./terminal.ts\";\n// Terminal image support\nexport {\n\tallocateImageId,\n\ttype CellDimensions,\n\tcalculateImageRows,\n\tdeleteAllKittyImages,\n\tdeleteKittyImage,\n\tdetectCapabilities,\n\tencodeITerm2,\n\tencodeKitty,\n\tgetCapabilities,\n\tgetCellDimensions,\n\tgetGifDimensions,\n\tgetImageDimensions,\n\tgetJpegDimensions,\n\tgetPngDimensions,\n\tgetWebpDimensions,\n\thyperlink,\n\ttype ImageDimensions,\n\ttype ImageProtocol,\n\ttype ImageRenderOptions,\n\timageFallback,\n\trenderImage,\n\tresetCapabilitiesCache,\n\tsetCapabilities,\n\tsetCellDimensions,\n\ttype TerminalCapabilities,\n} from \"./terminal-image.ts\";\nexport {\n\ttype Component,\n\tContainer,\n\tCURSOR_MARKER,\n\ttype Focusable,\n\tisFocusable,\n\ttype OverlayAnchor,\n\ttype OverlayHandle,\n\ttype OverlayMargin,\n\ttype OverlayOptions,\n\ttype OverlayUnfocusOptions,\n\ttype SizeValue,\n\tTUI,\n} from \"./tui.ts\";\n// Utilities\nexport { truncateToWidth, visibleWidth, wrapTextWithAnsi } from \"./utils.ts\";\n"]}
|
package/dist/keybindings.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/keybindings.js
CHANGED
|
File without changes
|
package/dist/keybindings.js.map
CHANGED
|
File without changes
|
package/dist/keys.d.ts
CHANGED
|
File without changes
|
package/dist/keys.d.ts.map
CHANGED
|
File without changes
|
package/dist/keys.js
CHANGED
|
File without changes
|
package/dist/keys.js.map
CHANGED
|
File without changes
|
package/dist/kill-ring.d.ts
CHANGED
|
File without changes
|
package/dist/kill-ring.d.ts.map
CHANGED
|
File without changes
|
package/dist/kill-ring.js
CHANGED
|
File without changes
|
package/dist/kill-ring.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/native-modifiers.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/stdin-buffer.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/stdin-buffer.js
CHANGED
|
File without changes
|
package/dist/stdin-buffer.js.map
CHANGED
|
File without changes
|
package/dist/terminal-image.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/terminal-image.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/terminal.d.ts
CHANGED
|
File without changes
|
package/dist/terminal.d.ts.map
CHANGED
|
File without changes
|
package/dist/terminal.js
CHANGED
|
File without changes
|
package/dist/terminal.js.map
CHANGED
|
File without changes
|
package/dist/tui.d.ts
CHANGED
|
@@ -100,6 +100,11 @@ export interface OverlayOptions {
|
|
|
100
100
|
/** If true, don't capture keyboard focus when shown */
|
|
101
101
|
nonCapturing?: boolean;
|
|
102
102
|
}
|
|
103
|
+
/** Options for {@link OverlayHandle.unfocus}. */
|
|
104
|
+
export interface OverlayUnfocusOptions {
|
|
105
|
+
/** Explicit target to focus after releasing this overlay. */
|
|
106
|
+
target: Component | null;
|
|
107
|
+
}
|
|
103
108
|
/**
|
|
104
109
|
* Handle returned by showOverlay for controlling the overlay
|
|
105
110
|
*/
|
|
@@ -112,10 +117,8 @@ export interface OverlayHandle {
|
|
|
112
117
|
isHidden(): boolean;
|
|
113
118
|
/** Focus this overlay and bring it to the visual front */
|
|
114
119
|
focus(): void;
|
|
115
|
-
/** Release focus to the previous target, or to an explicit target */
|
|
116
|
-
unfocus(options?:
|
|
117
|
-
target?: Component | null;
|
|
118
|
-
}): void;
|
|
120
|
+
/** Release focus to the next visible capturing overlay or previous target, or to an explicit target when provided */
|
|
121
|
+
unfocus(options?: OverlayUnfocusOptions): void;
|
|
119
122
|
/** Check if this overlay currently has focus */
|
|
120
123
|
isFocused(): boolean;
|
|
121
124
|
}
|
|
@@ -157,6 +160,7 @@ export declare class TUI extends Container {
|
|
|
157
160
|
private stopped;
|
|
158
161
|
private focusOrderCounter;
|
|
159
162
|
private overlayStack;
|
|
163
|
+
private overlayFocusRestore;
|
|
160
164
|
constructor(terminal: Terminal, showHardwareCursor?: boolean);
|
|
161
165
|
get fullRedraws(): number;
|
|
162
166
|
getShowHardwareCursor(): boolean;
|
|
@@ -169,6 +173,15 @@ export declare class TUI extends Container {
|
|
|
169
173
|
*/
|
|
170
174
|
setClearOnShrink(enabled: boolean): void;
|
|
171
175
|
setFocus(component: Component | null): void;
|
|
176
|
+
private setFocusInternal;
|
|
177
|
+
private clearOverlayFocusRestore;
|
|
178
|
+
private clearOverlayFocusRestoreFor;
|
|
179
|
+
private resolveBlockedOverlayFocusResume;
|
|
180
|
+
private getVisibleOverlayFocusRestore;
|
|
181
|
+
private isOverlayFocusAncestor;
|
|
182
|
+
private retargetOverlayPreFocus;
|
|
183
|
+
private isComponentMounted;
|
|
184
|
+
private containsComponent;
|
|
172
185
|
restoreFocus(component: Component | null): void;
|
|
173
186
|
/**
|
|
174
187
|
* Show an overlay component with configurable positioning and sizing.
|
|
@@ -181,7 +194,7 @@ export declare class TUI extends Container {
|
|
|
181
194
|
hasOverlay(): boolean;
|
|
182
195
|
/** Check if an overlay entry is currently visible */
|
|
183
196
|
private isOverlayVisible;
|
|
184
|
-
/** Find the
|
|
197
|
+
/** Find the visual-frontmost visible capturing overlay, if any */
|
|
185
198
|
private getTopmostVisibleOverlay;
|
|
186
199
|
invalidate(): void;
|
|
187
200
|
start(): void;
|