restty 0.1.35 → 0.2.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/README.md +49 -343
- package/dist/chunk-30px21q2.js +0 -0
- package/dist/{chunk-zqscavsh.js → chunk-db9dt7pr.js} +48146 -63236
- package/dist/chunk-s26trws6.js +9136 -0
- package/dist/chunk-wdme6j9c.js +1776 -0
- package/dist/chunk-xykzfd81.js +0 -0
- package/dist/chunk-y6hfk43b.js +1690 -0
- package/dist/fonts/local-font-access.types.d.ts +19 -0
- package/dist/fonts/manager/entries.d.ts +7 -0
- package/dist/headless.d.ts +102 -0
- package/dist/headless.js +350 -0
- package/dist/index.d.ts +8 -4
- package/dist/input/keymap/default-mapping.d.ts +1 -0
- package/dist/input/mouse.d.ts +13 -0
- package/dist/input/types.d.ts +10 -1
- package/dist/internal/runtime.d.ts +4 -0
- package/dist/internal/runtime.js +12 -0
- package/dist/internal/surface.d.ts +6 -0
- package/dist/internal/surface.js +15 -0
- package/dist/internal.d.ts +2 -5
- package/dist/internal.js +23 -5
- package/dist/restty.esm.js +32 -11368
- package/dist/restty.js +8 -2
- package/dist/runtime/core/api.d.ts +112 -0
- package/dist/runtime/core/config.d.ts +133 -0
- package/dist/runtime/core/lifecycle.d.ts +1 -0
- package/dist/runtime/core/models.d.ts +124 -0
- package/dist/runtime/core/resources.d.ts +50 -0
- package/dist/runtime/core/runtime-events.d.ts +28 -0
- package/dist/runtime/core/session.d.ts +9 -0
- package/dist/runtime/{codepoint-utils.d.ts → create-runtime/codepoint-utils.d.ts} +1 -1
- package/dist/runtime/create-runtime/{color-glyph-atlas.d.ts → font-runtime/color-glyph-atlas.d.ts} +2 -2
- package/dist/runtime/create-runtime/font-runtime/grid.d.ts +6 -0
- package/dist/runtime/create-runtime/font-runtime/grid.types.d.ts +22 -0
- package/dist/runtime/create-runtime/font-runtime/index.d.ts +15 -0
- package/dist/runtime/create-runtime/font-runtime/text.d.ts +12 -0
- package/dist/runtime/create-runtime/font-runtime/text.types.d.ts +10 -0
- package/dist/runtime/create-runtime/{font-runtime-helpers.types.d.ts → font-runtime/types.d.ts} +5 -8
- package/dist/runtime/create-runtime/font-runtime/webgpu-atlas.d.ts +7 -0
- package/dist/runtime/create-runtime/font-runtime/webgpu-atlas.types.d.ts +23 -0
- package/dist/runtime/create-runtime/highlight-terminal-color-utils.d.ts +1 -8
- package/dist/runtime/create-runtime/highlight-terminal-color-utils.types.d.ts +9 -0
- package/dist/runtime/create-runtime/input-hooks.d.ts +2 -12
- package/dist/runtime/create-runtime/input-hooks.types.d.ts +10 -0
- package/dist/runtime/create-runtime/interaction-runtime/bind-ime-events.d.ts +2 -1
- package/dist/runtime/create-runtime/interaction-runtime/bind-pointer-aux-handlers.d.ts +1 -1
- package/dist/runtime/create-runtime/interaction-runtime/bind-pointer-events.d.ts +2 -1
- package/dist/runtime/create-runtime/interaction-runtime/bind-pointer-up-handler.d.ts +1 -1
- package/dist/runtime/create-runtime/{interaction-runtime.d.ts → interaction-runtime/index.d.ts} +3 -2
- package/dist/runtime/create-runtime/interaction-runtime/kitty-image-cache.d.ts +2 -17
- package/dist/runtime/create-runtime/interaction-runtime/kitty-image-cache.types.d.ts +17 -0
- package/dist/runtime/create-runtime/interaction-runtime/{types.d.ts → runtime.types.d.ts} +1 -47
- package/dist/runtime/create-runtime/interaction-runtime/scrollbar-runtime.d.ts +1 -23
- package/dist/runtime/create-runtime/interaction-runtime/scrollbar-runtime.types.d.ts +23 -0
- package/dist/runtime/create-runtime/interaction-runtime/state.types.d.ts +47 -0
- package/dist/runtime/create-runtime/kitty-render-runtime.d.ts +2 -36
- package/dist/runtime/create-runtime/kitty-render-runtime.types.d.ts +33 -0
- package/dist/runtime/create-runtime/{lifecycle-theme-size-canvas.d.ts → lifecycle-theme-size/canvas.d.ts} +1 -1
- package/dist/runtime/create-runtime/{lifecycle-theme-size.d.ts → lifecycle-theme-size/index.d.ts} +3 -3
- package/dist/runtime/create-runtime/lifecycle-theme-size/theme.d.ts +6 -0
- package/dist/runtime/create-runtime/{lifecycle-theme-size.types.d.ts → lifecycle-theme-size/types.d.ts} +1 -6
- package/dist/runtime/{max-scrollback.d.ts → create-runtime/max-scrollback.d.ts} +2 -5
- package/dist/runtime/create-runtime/max-scrollback.types.d.ts +4 -0
- package/dist/runtime/create-runtime/native-scrollbar-host.d.ts +2 -15
- package/dist/runtime/create-runtime/native-scrollbar-host.types.d.ts +13 -0
- package/dist/runtime/{overlay-scrollbar.d.ts → create-runtime/overlay-scrollbar.d.ts} +1 -12
- package/dist/runtime/create-runtime/overlay-scrollbar.types.d.ts +12 -0
- package/dist/runtime/create-runtime/pty-input-runtime.d.ts +2 -46
- package/dist/runtime/create-runtime/pty-input-runtime.types.d.ts +41 -0
- package/dist/runtime/{render-color-utils.d.ts → create-runtime/render-color-utils.d.ts} +1 -1
- package/dist/runtime/{render-stage-runtime.d.ts → create-runtime/render-stage-runtime.d.ts} +2 -2
- package/dist/runtime/{create-app-types.d.ts → create-runtime/render-stage-runtime.types.d.ts} +1 -29
- package/dist/runtime/create-runtime/render-tick-webgl-overlays.d.ts +1 -1
- package/dist/runtime/create-runtime/render-tick-webgl-scene.d.ts +1 -1
- package/dist/runtime/create-runtime/render-tick-webgl.types.d.ts +2 -5
- package/dist/runtime/create-runtime/render-tick-webgpu-cell-pass.d.ts +1 -1
- package/dist/runtime/create-runtime/render-tick-webgpu.types.d.ts +5 -9
- package/dist/runtime/create-runtime/runtime-controller.api.types.d.ts +96 -0
- package/dist/runtime/create-runtime/runtime-controller.clipboard.d.ts +10 -0
- package/dist/runtime/create-runtime/runtime-controller.d.ts +3 -0
- package/dist/runtime/create-runtime/runtime-controller.input.d.ts +24 -0
- package/dist/runtime/create-runtime/runtime-controller.keyboard.d.ts +19 -0
- package/dist/runtime/create-runtime/runtime-controller.lifecycle.d.ts +50 -0
- package/dist/runtime/create-runtime/runtime-controller.public-api.capabilities.d.ts +57 -0
- package/dist/runtime/create-runtime/runtime-controller.public-api.d.ts +28 -0
- package/dist/runtime/create-runtime/runtime-controller.render-loop.d.ts +20 -0
- package/dist/runtime/create-runtime/runtime-controller.state.types.d.ts +24 -0
- package/dist/runtime/create-runtime/runtime-reporting.d.ts +3 -21
- package/dist/runtime/create-runtime/runtime-reporting.types.d.ts +18 -0
- package/dist/runtime/{create-app-symbols.d.ts → create-runtime/runtime-symbols.d.ts} +2 -2
- package/dist/runtime/create-runtime/search-highlight-utils.d.ts +1 -1
- package/dist/runtime/create-runtime/search-runtime/index.d.ts +2 -0
- package/dist/runtime/create-runtime/{search-runtime.d.ts → search-runtime/types.d.ts} +9 -6
- package/dist/runtime/create-runtime/shader-stage-runtime.d.ts +2 -29
- package/dist/runtime/create-runtime/shader-stage-runtime.types.d.ts +27 -0
- package/dist/runtime/{text-decoration.d.ts → create-runtime/text-decoration.d.ts} +1 -1
- package/dist/runtime/create-runtime.d.ts +7 -7
- package/dist/runtime/font-atlas-utils/glyph-atlas-builder.d.ts +1 -1
- package/dist/runtime/font-atlas-utils/nerd-metrics-utils.d.ts +1 -1
- package/dist/runtime/{atlas-builder.d.ts → fonts/atlas-builder.d.ts} +1 -1
- package/dist/runtime/{font-resource-store.d.ts → fonts/font-resource-store.d.ts} +3 -2
- package/dist/runtime/fonts/font-sources.d.ts +4 -0
- package/dist/runtime/shader-stages.d.ts +1 -1
- package/dist/runtime/types.d.ts +6 -393
- package/dist/surface/{panes-context-menu.d.ts → panes/context-menu.d.ts} +1 -1
- package/dist/surface/panes/default-context-menu-items.d.ts +2 -2
- package/dist/surface/panes/layout.d.ts +1 -1
- package/dist/surface/panes/managed-pane-create.d.ts +3 -0
- package/dist/surface/panes/managed-pane-create.types.d.ts +17 -0
- package/dist/surface/panes/managed-pane-dom.d.ts +13 -0
- package/dist/surface/panes/managed-pane-manager.d.ts +6 -0
- package/dist/surface/panes/managed-pane-options.d.ts +6 -0
- package/dist/surface/panes/managed-pane-options.types.d.ts +7 -0
- package/dist/surface/panes/managed-pane-runtime-config.d.ts +3 -0
- package/dist/surface/panes/managed-pane-runtime-config.types.d.ts +9 -0
- package/dist/surface/panes/managed-pane-runtime.d.ts +3 -0
- package/dist/surface/panes/managed-pane-runtime.types.d.ts +10 -0
- package/dist/surface/panes/managed-pane-search-ui.d.ts +9 -0
- package/dist/surface/{pane-app-manager.d.ts → panes/managed-pane-types.d.ts} +34 -36
- package/dist/surface/panes/manager.d.ts +1 -1
- package/dist/surface/panes/pane-interactions.d.ts +2 -2
- package/dist/surface/{panes-styles.d.ts → panes/styles.d.ts} +1 -1
- package/dist/surface/{panes-types.d.ts → panes/types.d.ts} +48 -7
- package/dist/surface/panes/window-events.d.ts +1 -1
- package/dist/surface/{restty-plugin-types.d.ts → plugins/context.types.d.ts} +32 -88
- package/dist/surface/{restty/plugin-dispatcher.d.ts → plugins/dispatcher.d.ts} +4 -13
- package/dist/surface/plugins/dispatcher.types.d.ts +6 -0
- package/dist/surface/{restty/plugin-ops.d.ts → plugins/host.d.ts} +4 -3
- package/dist/surface/plugins/runtime.d.ts +18 -0
- package/dist/surface/plugins/runtime.types.d.ts +47 -0
- package/dist/surface/plugins/types.d.ts +83 -0
- package/dist/surface/restty/active-pane-api.d.ts +33 -23
- package/dist/surface/restty/assembly.d.ts +23 -0
- package/dist/surface/restty/bootstrap.d.ts +21 -0
- package/dist/surface/restty/config.d.ts +46 -0
- package/dist/surface/restty/controller.d.ts +45 -0
- package/dist/surface/restty/events.d.ts +14 -0
- package/dist/surface/restty/manager-options.d.ts +4 -23
- package/dist/surface/restty/manager-options.types.d.ts +32 -0
- package/dist/surface/restty/pane-command-ops.d.ts +37 -0
- package/dist/surface/restty/pane-handle-ops.d.ts +24 -0
- package/dist/surface/{restty-pane-handle.d.ts → restty/pane-handle.d.ts} +42 -40
- package/dist/surface/restty/pane-lookup.d.ts +22 -0
- package/dist/surface/restty/pane-manager-assembly.d.ts +18 -0
- package/dist/surface/restty/pane-ops.d.ts +3 -51
- package/dist/surface/restty/pane-style-ops.d.ts +6 -0
- package/dist/surface/restty/plugin-surface.d.ts +5 -0
- package/dist/surface/restty/shader-ops.d.ts +6 -5
- package/dist/surface/restty.d.ts +28 -49
- package/dist/surface/search-ui/controller.d.ts +2 -0
- package/dist/surface/search-ui/index.d.ts +2 -0
- package/dist/surface/search-ui/styles.d.ts +5 -0
- package/dist/surface/{pane-search-ui.d.ts → search-ui/types.d.ts} +22 -13
- package/dist/wasm/embedded.d.ts +1 -1
- package/dist/wasm/runtime/types.d.ts +0 -6
- package/dist/xterm/compat-services.d.ts +2 -0
- package/dist/xterm.d.ts +4 -3
- package/dist/xterm.js +14 -8
- package/package.json +52 -33
- package/dist/internal.esm.js +0 -22285
- package/dist/runtime/create-runtime/debug-tools/create-dump-glyph-render.d.ts +0 -2
- package/dist/runtime/create-runtime/debug-tools/diagnose-codepoint.d.ts +0 -2
- package/dist/runtime/create-runtime/debug-tools/dump-atlas-for-codepoint.d.ts +0 -2
- package/dist/runtime/create-runtime/debug-tools/read-texture-to-image-data.d.ts +0 -1
- package/dist/runtime/create-runtime/debug-tools/setup-debug-expose.d.ts +0 -2
- package/dist/runtime/create-runtime/debug-tools/types.d.ts +0 -63
- package/dist/runtime/create-runtime/debug-tools.d.ts +0 -6
- package/dist/runtime/create-runtime/font-runtime-grid-helpers.d.ts +0 -31
- package/dist/runtime/create-runtime/font-runtime-helpers.d.ts +0 -15
- package/dist/runtime/create-runtime/font-runtime-text-helpers.d.ts +0 -21
- package/dist/runtime/create-runtime/font-runtime-webgpu-atlas.d.ts +0 -29
- package/dist/runtime/create-runtime/lifecycle-theme-size-theme.d.ts +0 -6
- package/dist/runtime/create-runtime/runtime-app-api.d.ts +0 -113
- package/dist/runtime/create-runtime/runtime-logger.d.ts +0 -17
- package/dist/runtime/font-sources.d.ts +0 -5
- package/dist/runtime/pty-output-buffer.d.ts +0 -12
- package/dist/runtime/session.d.ts +0 -9
- package/dist/surface/app-factory.d.ts +0 -3
- package/dist/surface/restty-plugin-runtime.d.ts +0 -57
- package/dist/xterm/app-options.d.ts +0 -2
- package/dist/xterm.esm.js +0 -12210
- /package/dist/runtime/create-runtime/{atlas-debug-utils.d.ts → atlas-bitmap-utils.d.ts} +0 -0
- /package/dist/runtime/{clipboard-paste.d.ts → create-runtime/clipboard-paste.d.ts} +0 -0
- /package/dist/runtime/{render-stage-shaders.d.ts → create-runtime/render-stage-shaders.d.ts} +0 -0
- /package/dist/runtime/{create-app-io-utils.d.ts → create-runtime/runtime-io-utils.d.ts} +0 -0
- /package/dist/surface/{restty-plugin-utils.d.ts → plugins/utils.d.ts} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ResttyResolvedFontSource } from "../core/models";
|
|
2
|
+
import type { ResttyFontResourceFace, ResttyFontResourceStore } from "../core/resources";
|
|
2
3
|
type ParsedFontFace = {
|
|
3
4
|
font: ResttyFontResourceFace["font"];
|
|
4
5
|
metadataLabel?: string;
|
|
@@ -13,7 +14,7 @@ export type CreateResttyFontResourceStoreOptions = {
|
|
|
13
14
|
/** Toggle persistent URL-byte cache (IndexedDB). */
|
|
14
15
|
usePersistentUrlCache?: boolean;
|
|
15
16
|
/** Override source loading (used by tests/mocks). */
|
|
16
|
-
loadSourceBuffer?: (source:
|
|
17
|
+
loadSourceBuffer?: (source: ResttyResolvedFontSource, sourceKey: string) => Promise<ArrayBuffer | null>;
|
|
17
18
|
/** Override parse step (used by tests/mocks). */
|
|
18
19
|
parseBuffer?: (buffer: ArrayBuffer, sourceKey: string) => Promise<ParsedFontFace[]>;
|
|
19
20
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ResttyFontInput, ResttyResolvedFontSource } from "../core/models";
|
|
2
|
+
/** Default local-first fallback chain for terminal, symbols, emoji, and CJK coverage. */
|
|
3
|
+
export declare const DEFAULT_FONT_INPUTS: readonly ResttyFontInput[];
|
|
4
|
+
export declare function resolveFontInputs(inputs: readonly ResttyFontInput[] | undefined): ResttyResolvedFontSource[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResttyShaderStage } from "./
|
|
1
|
+
import type { ResttyShaderStage } from "./core/models";
|
|
2
2
|
export declare const RESTTY_SHADER_STAGE_UNIFORM_CAP = 8;
|
|
3
3
|
export declare function cloneShaderStage(stage: ResttyShaderStage): ResttyShaderStage;
|
|
4
4
|
export declare function cloneShaderStages(stages: ResttyShaderStage[]): ResttyShaderStage[];
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,393 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import type { Font as TextShaperFont } from "text-shaper";
|
|
8
|
-
/** Callback for WASM log messages. */
|
|
9
|
-
export type ResttyWasmLogListener = (message: string) => void;
|
|
10
|
-
export type ResttySearchState = {
|
|
11
|
-
query: string;
|
|
12
|
-
active: boolean;
|
|
13
|
-
pending: boolean;
|
|
14
|
-
complete: boolean;
|
|
15
|
-
total: number;
|
|
16
|
-
selectedIndex: number | null;
|
|
17
|
-
};
|
|
18
|
-
export type ResttySearchViewportMatch = SearchViewportMatch;
|
|
19
|
-
/** Shared parsed font face reused across panes within a session. */
|
|
20
|
-
export type ResttyFontResourceFace = {
|
|
21
|
-
/** Human-readable label for debug/log output. */
|
|
22
|
-
label: string;
|
|
23
|
-
/** Parsed text-shaper font instance. */
|
|
24
|
-
font: TextShaperFont;
|
|
25
|
-
};
|
|
26
|
-
/** Lease handle returned by the shared font resource store. */
|
|
27
|
-
export type ResttyFontResourceLease = {
|
|
28
|
-
/** Ordered parsed faces (primary + fallbacks). */
|
|
29
|
-
faces: ResttyFontResourceFace[];
|
|
30
|
-
/** Release the lease when pane/runtime no longer needs the faces. */
|
|
31
|
-
release: () => void;
|
|
32
|
-
};
|
|
33
|
-
/** Session-level font resource store for deduped loading/parsing and caching. */
|
|
34
|
-
export type ResttyFontResourceStore = {
|
|
35
|
-
/** Acquire parsed faces for a source list. */
|
|
36
|
-
acquire: (sources: ResttyFontSource[]) => Promise<ResttyFontResourceLease>;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Session provider that supplies shared WASM and WebGPU resources.
|
|
40
|
-
*/
|
|
41
|
-
export type ResttyAppSession = {
|
|
42
|
-
/** Lazily initialize and return the WASM module. */
|
|
43
|
-
getWasm: () => Promise<ResttyWasm>;
|
|
44
|
-
/** Lazily initialize and return the WebGPU renderer core for a canvas. */
|
|
45
|
-
getWebGPUCore: (canvas: HTMLCanvasElement) => Promise<WebGPUCoreState | null>;
|
|
46
|
-
/** Return the shared font resource store for this session/tab. */
|
|
47
|
-
getFontResourceStore?: () => ResttyFontResourceStore;
|
|
48
|
-
/** Subscribe to WASM log output. */
|
|
49
|
-
addWasmLogListener?: (listener: ResttyWasmLogListener) => void;
|
|
50
|
-
/** Unsubscribe from WASM log output. */
|
|
51
|
-
removeWasmLogListener?: (listener: ResttyWasmLogListener) => void;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Optional DOM elements for debug/status displays.
|
|
55
|
-
*/
|
|
56
|
-
export type ResttyAppElements = {
|
|
57
|
-
/** Renderer backend name display. */
|
|
58
|
-
backendEl?: HTMLElement | null;
|
|
59
|
-
/** Frames-per-second counter display. */
|
|
60
|
-
fpsEl?: HTMLElement | null;
|
|
61
|
-
/** Device pixel ratio display. */
|
|
62
|
-
dprEl?: HTMLElement | null;
|
|
63
|
-
/** Canvas pixel size display. */
|
|
64
|
-
sizeEl?: HTMLElement | null;
|
|
65
|
-
/** Grid column/row count display. */
|
|
66
|
-
gridEl?: HTMLElement | null;
|
|
67
|
-
/** Cell pixel dimensions display. */
|
|
68
|
-
cellEl?: HTMLElement | null;
|
|
69
|
-
/** Terminal size (cols x rows) display. */
|
|
70
|
-
termSizeEl?: HTMLElement | null;
|
|
71
|
-
/** Cursor position display. */
|
|
72
|
-
cursorPosEl?: HTMLElement | null;
|
|
73
|
-
/** Input sequence debug display. */
|
|
74
|
-
inputDebugEl?: HTMLElement | null;
|
|
75
|
-
/** General debug text display. */
|
|
76
|
-
dbgEl?: HTMLElement | null;
|
|
77
|
-
/** PTY connection status display. */
|
|
78
|
-
ptyStatusEl?: HTMLElement | null;
|
|
79
|
-
/** Mouse mode/status display. */
|
|
80
|
-
mouseStatusEl?: HTMLElement | null;
|
|
81
|
-
/** Terminal internal debug display. */
|
|
82
|
-
termDebugEl?: HTMLElement | null;
|
|
83
|
-
/** Scrollable log output display. */
|
|
84
|
-
logEl?: HTMLElement | null;
|
|
85
|
-
/** Glyph atlas info display. */
|
|
86
|
-
atlasInfoEl?: HTMLElement | null;
|
|
87
|
-
/** Canvas element for atlas visualization. */
|
|
88
|
-
atlasCanvas?: HTMLCanvasElement | null;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Callbacks fired by the app when internal state changes.
|
|
92
|
-
*/
|
|
93
|
-
export type ResttyAppCallbacks = {
|
|
94
|
-
/** A log line was emitted. */
|
|
95
|
-
onLog?: (line: string) => void;
|
|
96
|
-
/** Renderer backend was determined. */
|
|
97
|
-
onBackend?: (backend: string) => void;
|
|
98
|
-
/** Frame rate updated. */
|
|
99
|
-
onFps?: (fps: number) => void;
|
|
100
|
-
/** Device pixel ratio changed. */
|
|
101
|
-
onDpr?: (dpr: number) => void;
|
|
102
|
-
/** Canvas pixel dimensions changed. */
|
|
103
|
-
onCanvasSize?: (width: number, height: number) => void;
|
|
104
|
-
/** Grid size (cols x rows) changed. */
|
|
105
|
-
onGridSize?: (cols: number, rows: number) => void;
|
|
106
|
-
/** Cell pixel dimensions changed. */
|
|
107
|
-
onCellSize?: (cellW: number, cellH: number) => void;
|
|
108
|
-
/** Terminal size (cols x rows) changed. */
|
|
109
|
-
onTermSize?: (cols: number, rows: number) => void;
|
|
110
|
-
/** Cursor position changed. */
|
|
111
|
-
onCursor?: (col: number, row: number) => void;
|
|
112
|
-
/** General debug text updated. */
|
|
113
|
-
onDebug?: (text: string) => void;
|
|
114
|
-
/** Input sequence debug text updated. */
|
|
115
|
-
onInputDebug?: (text: string) => void;
|
|
116
|
-
/** PTY connection status changed. */
|
|
117
|
-
onPtyStatus?: (status: string) => void;
|
|
118
|
-
/** Mouse mode/status changed. */
|
|
119
|
-
onMouseStatus?: (status: string) => void;
|
|
120
|
-
/** Terminal requested a desktop notification via OSC 9 / OSC 777. */
|
|
121
|
-
onDesktopNotification?: (notification: DesktopNotification) => void;
|
|
122
|
-
/** Terminal search state changed. */
|
|
123
|
-
onSearchState?: (state: ResttySearchState) => void;
|
|
124
|
-
};
|
|
125
|
-
/** Raw font data as an ArrayBuffer or typed-array view. */
|
|
126
|
-
export type ResttyFontBufferData = ArrayBuffer | ArrayBufferView;
|
|
127
|
-
/** Font source loaded from a URL. */
|
|
128
|
-
export type ResttyUrlFontSource = {
|
|
129
|
-
type: "url";
|
|
130
|
-
/** URL to fetch the font file from. */
|
|
131
|
-
url: string;
|
|
132
|
-
/** Human-readable label for debug/log output. */
|
|
133
|
-
label?: string;
|
|
134
|
-
};
|
|
135
|
-
/** Font source loaded from an in-memory buffer. */
|
|
136
|
-
export type ResttyBufferFontSource = {
|
|
137
|
-
type: "buffer";
|
|
138
|
-
/** Raw font file bytes. */
|
|
139
|
-
data: ResttyFontBufferData;
|
|
140
|
-
/** Human-readable label for debug/log output. */
|
|
141
|
-
label?: string;
|
|
142
|
-
};
|
|
143
|
-
/** Font source resolved from locally installed fonts via the Local Font Access API. */
|
|
144
|
-
export type ResttyLocalFontSource = {
|
|
145
|
-
type: "local";
|
|
146
|
-
/** Font family name patterns to match against installed fonts. */
|
|
147
|
-
matchers: string[];
|
|
148
|
-
/** Human-readable label for debug/log output. */
|
|
149
|
-
label?: string;
|
|
150
|
-
/** If true, font loading fails when no local match is found. */
|
|
151
|
-
required?: boolean;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* A font source specification.
|
|
155
|
-
* - url: fetched from a URL
|
|
156
|
-
* - buffer: provided as in-memory bytes
|
|
157
|
-
* - local: resolved from locally installed fonts
|
|
158
|
-
*/
|
|
159
|
-
export type ResttyFontSource = ResttyUrlFontSource | ResttyBufferFontSource | ResttyLocalFontSource;
|
|
160
|
-
/** Alias for ResttyFontSource. */
|
|
161
|
-
export type FontSource = ResttyFontSource;
|
|
162
|
-
/**
|
|
163
|
-
* Built-in font preset.
|
|
164
|
-
* - default-cdn: load the default font from CDN
|
|
165
|
-
* - none: do not load any preset fonts
|
|
166
|
-
*/
|
|
167
|
-
export type ResttyFontPreset = "default-cdn" | "none";
|
|
168
|
-
/**
|
|
169
|
-
* Touch-based text selection behavior.
|
|
170
|
-
* - drag: immediate drag-selection on touch
|
|
171
|
-
* - long-press: selection starts after a long-press timeout
|
|
172
|
-
* - off: disable touch selection entirely
|
|
173
|
-
*/
|
|
174
|
-
export type ResttyTouchSelectionMode = "drag" | "long-press" | "off";
|
|
175
|
-
/** Hinting target mode used when TrueType hinting is enabled. */
|
|
176
|
-
export type ResttyFontHintTarget = "auto" | "light" | "normal";
|
|
177
|
-
/** Input payload passed to ResttyApp before-input hooks. */
|
|
178
|
-
export type ResttyAppInputPayload = {
|
|
179
|
-
text: string;
|
|
180
|
-
source: string;
|
|
181
|
-
};
|
|
182
|
-
/** Render-stage phase ordering. */
|
|
183
|
-
export type ResttyShaderStageMode = "before-main" | "after-main" | "replace-main";
|
|
184
|
-
/** Target backend(s) for a shader stage. */
|
|
185
|
-
export type ResttyShaderStageBackend = "webgpu" | "webgl2" | "both";
|
|
186
|
-
/** Stage shader source definitions. */
|
|
187
|
-
export type ResttyShaderStageSource = {
|
|
188
|
-
/**
|
|
189
|
-
* WGSL source that defines:
|
|
190
|
-
* fn resttyStage(color: vec4f, uv: vec2f, time: f32, params0: vec4f, params1: vec4f) -> vec4f
|
|
191
|
-
*/
|
|
192
|
-
wgsl?: string;
|
|
193
|
-
/**
|
|
194
|
-
* GLSL source that defines:
|
|
195
|
-
* vec4 resttyStage(vec4 color, vec2 uv, float time, vec4 params0, vec4 params1)
|
|
196
|
-
*/
|
|
197
|
-
glsl?: string;
|
|
198
|
-
};
|
|
199
|
-
/** User-defined frame shader stage. */
|
|
200
|
-
export type ResttyShaderStage = {
|
|
201
|
-
id: string;
|
|
202
|
-
mode?: ResttyShaderStageMode;
|
|
203
|
-
backend?: ResttyShaderStageBackend;
|
|
204
|
-
priority?: number;
|
|
205
|
-
enabled?: boolean;
|
|
206
|
-
/** Optional numeric uniforms packed into params0/params1 (up to 8 values). */
|
|
207
|
-
uniforms?: number[];
|
|
208
|
-
shader: ResttyShaderStageSource;
|
|
209
|
-
/** Optional compile/runtime error callback for this stage. */
|
|
210
|
-
onError?: (message: string) => void;
|
|
211
|
-
};
|
|
212
|
-
/**
|
|
213
|
-
* Options for creating a ResttyApp instance.
|
|
214
|
-
*/
|
|
215
|
-
export type ResttyAppOptions = {
|
|
216
|
-
/** Target canvas element for terminal rendering. */
|
|
217
|
-
canvas: HTMLCanvasElement;
|
|
218
|
-
/** Shared session for WASM/WebGPU resource reuse across panes. */
|
|
219
|
-
session?: ResttyAppSession;
|
|
220
|
-
/** Hidden textarea for IME composition input. */
|
|
221
|
-
imeInput?: HTMLTextAreaElement | null;
|
|
222
|
-
/** Optional DOM elements for debug/status displays. */
|
|
223
|
-
elements?: ResttyAppElements;
|
|
224
|
-
/** Callbacks for state-change notifications. */
|
|
225
|
-
callbacks?: ResttyAppCallbacks;
|
|
226
|
-
/** Renderer backend preference (default "auto"). */
|
|
227
|
-
renderer?: "auto" | "webgpu" | "webgl2";
|
|
228
|
-
/** Font size in CSS pixels. */
|
|
229
|
-
fontSize?: number;
|
|
230
|
-
/** Enable programming ligature shaping across adjacent operator cells (default true). */
|
|
231
|
-
ligatures?: boolean;
|
|
232
|
-
/** Enable TrueType hinting during atlas rasterization (default false). */
|
|
233
|
-
fontHinting?: boolean;
|
|
234
|
-
/**
|
|
235
|
-
* Hinting target mode passed to text-shaper when hinting is enabled.
|
|
236
|
-
* - auto: infer from pixel mode
|
|
237
|
-
* - light: prefer light/subpixel-like vertical hinting
|
|
238
|
-
* - normal: prefer full hinting
|
|
239
|
-
*/
|
|
240
|
-
fontHintTarget?: ResttyFontHintTarget;
|
|
241
|
-
/**
|
|
242
|
-
* Font sizing mode used by text-shaper scale resolution.
|
|
243
|
-
* - em: interpret fontSize as EM size
|
|
244
|
-
* - height: interpret fontSize as full font height (ascender-descender-lineGap)
|
|
245
|
-
*/
|
|
246
|
-
fontSizeMode?: "em" | "height";
|
|
247
|
-
/**
|
|
248
|
-
* Alpha blending strategy.
|
|
249
|
-
* - native: GPU-native premultiplied alpha
|
|
250
|
-
* - linear: linear-space blending
|
|
251
|
-
* - linear-corrected: linear-space with gamma correction
|
|
252
|
-
*/
|
|
253
|
-
alphaBlending?: "native" | "linear" | "linear-corrected";
|
|
254
|
-
/** Built-in font preset to load. */
|
|
255
|
-
fontPreset?: ResttyFontPreset;
|
|
256
|
-
/** Custom font sources to load. */
|
|
257
|
-
fontSources?: ResttyFontSource[];
|
|
258
|
-
/** Maximum scale factor for the symbol atlas texture. */
|
|
259
|
-
maxSymbolAtlasScale?: number;
|
|
260
|
-
/** Per-glyph scale overrides matched by regex. */
|
|
261
|
-
fontScaleOverrides?: {
|
|
262
|
-
match: RegExp;
|
|
263
|
-
scale: number;
|
|
264
|
-
}[];
|
|
265
|
-
/** Scale factor applied to Nerd Font icons. */
|
|
266
|
-
nerdIconScale?: number;
|
|
267
|
-
/** Automatically resize the terminal on container/window changes (default true). */
|
|
268
|
-
autoResize?: boolean;
|
|
269
|
-
/** Attach resize/focus listeners to the window object. */
|
|
270
|
-
attachWindowEvents?: boolean;
|
|
271
|
-
/** Attach pointer/keyboard listeners to the canvas. */
|
|
272
|
-
attachCanvasEvents?: boolean;
|
|
273
|
-
/**
|
|
274
|
-
* Touch selection behavior on pointerType=touch:
|
|
275
|
-
* - drag: immediate drag-selection (legacy behavior)
|
|
276
|
-
* - long-press: selection starts after press timeout (default)
|
|
277
|
-
* - off: disable touch selection, keep touch scrolling
|
|
278
|
-
*/
|
|
279
|
-
touchSelectionMode?: ResttyTouchSelectionMode;
|
|
280
|
-
/**
|
|
281
|
-
* Long-press timeout in ms for touch selection intent.
|
|
282
|
-
* Only used when touchSelectionMode is "long-press".
|
|
283
|
-
*/
|
|
284
|
-
touchSelectionLongPressMs?: number;
|
|
285
|
-
/**
|
|
286
|
-
* Pointer move threshold in CSS pixels before long-press selection is
|
|
287
|
-
* canceled and touch pan-scroll takes priority.
|
|
288
|
-
*/
|
|
289
|
-
touchSelectionMoveThresholdPx?: number;
|
|
290
|
-
/** Expose internal state on the window object for debugging. */
|
|
291
|
-
debugExpose?: boolean;
|
|
292
|
-
/** PTY transport layer for terminal I/O. */
|
|
293
|
-
ptyTransport?: PtyTransport;
|
|
294
|
-
/**
|
|
295
|
-
* Optional hook to transform or suppress terminal/program input
|
|
296
|
-
* before it is written to the terminal core.
|
|
297
|
-
*/
|
|
298
|
-
beforeInput?: (payload: ResttyAppInputPayload) => string | null | void;
|
|
299
|
-
/**
|
|
300
|
-
* Optional hook to transform or suppress PTY output before it is
|
|
301
|
-
* queued for rendering.
|
|
302
|
-
*/
|
|
303
|
-
beforeRenderOutput?: (payload: ResttyAppInputPayload) => string | null | void;
|
|
304
|
-
/** Optional render-stage shader chain. */
|
|
305
|
-
shaderStages?: ResttyShaderStage[];
|
|
306
|
-
/**
|
|
307
|
-
* Maximum scrollback buffer size in bytes passed to the WASM terminal.
|
|
308
|
-
* Default is 10_000_000 (10MB).
|
|
309
|
-
*/
|
|
310
|
-
maxScrollbackBytes?: number;
|
|
311
|
-
/**
|
|
312
|
-
* Deprecated alias for maxScrollbackBytes.
|
|
313
|
-
* If both are set, maxScrollbackBytes takes precedence.
|
|
314
|
-
*/
|
|
315
|
-
maxScrollback?: number;
|
|
316
|
-
};
|
|
317
|
-
/**
|
|
318
|
-
* Public API for a terminal app instance.
|
|
319
|
-
*/
|
|
320
|
-
export type ResttyApp = {
|
|
321
|
-
/** Initialize the renderer, fonts, and terminal state. */
|
|
322
|
-
init: () => Promise<void>;
|
|
323
|
-
/** Tear down all resources and event listeners. */
|
|
324
|
-
destroy: () => void;
|
|
325
|
-
/** Switch the renderer backend at runtime. */
|
|
326
|
-
setRenderer: (value: "auto" | "webgpu" | "webgl2") => void;
|
|
327
|
-
/** Pause or resume rendering. */
|
|
328
|
-
setPaused: (value: boolean) => void;
|
|
329
|
-
/** Toggle the rendering pause state. */
|
|
330
|
-
togglePause: () => void;
|
|
331
|
-
/** Update the terminal font size in CSS pixels. */
|
|
332
|
-
setFontSize: (value: number) => void;
|
|
333
|
-
/** Enable or disable programming ligature shaping. */
|
|
334
|
-
setLigatures: (value: boolean) => void;
|
|
335
|
-
/** Enable or disable TrueType hinting for atlas glyph rasterization. */
|
|
336
|
-
setFontHinting: (value: boolean) => void;
|
|
337
|
-
/** Update hinting target mode used when hinting is enabled. */
|
|
338
|
-
setFontHintTarget: (value: ResttyFontHintTarget) => void;
|
|
339
|
-
/** Replace the active font sources and reload fonts. */
|
|
340
|
-
setFontSources: (sources: ResttyFontSource[]) => Promise<void>;
|
|
341
|
-
/** Apply a Ghostty color theme. */
|
|
342
|
-
applyTheme: (theme: GhosttyTheme, sourceLabel?: string) => void;
|
|
343
|
-
/** Reset colors to the default theme. */
|
|
344
|
-
resetTheme: () => void;
|
|
345
|
-
/** Write raw text to the terminal PTY. */
|
|
346
|
-
sendInput: (text: string, source?: string) => void;
|
|
347
|
-
/** Encode and send a key sequence to the terminal PTY. */
|
|
348
|
-
sendKeyInput: (text: string, source?: string) => void;
|
|
349
|
-
/** Clear the visible screen and scrollback. */
|
|
350
|
-
clearScreen: () => void;
|
|
351
|
-
/** Open a PTY connection, optionally to a specific URL. */
|
|
352
|
-
connectPty: (url?: string) => void;
|
|
353
|
-
/** Close the active PTY connection. */
|
|
354
|
-
disconnectPty: () => void;
|
|
355
|
-
/** Check whether the PTY transport is currently connected. */
|
|
356
|
-
isPtyConnected: () => boolean;
|
|
357
|
-
/** Override the mouse reporting mode. */
|
|
358
|
-
setMouseMode: (value: MouseMode) => void;
|
|
359
|
-
/** Return current mouse reporting status. */
|
|
360
|
-
getMouseStatus: () => ReturnType<InputHandler["getMouseStatus"]>;
|
|
361
|
-
/** Copy the current text selection to the clipboard. */
|
|
362
|
-
copySelectionToClipboard: () => Promise<boolean>;
|
|
363
|
-
/** Paste clipboard contents into the terminal. */
|
|
364
|
-
pasteFromClipboard: () => Promise<boolean>;
|
|
365
|
-
/** Select the word at a viewport client coordinate. */
|
|
366
|
-
selectWordAtClientPoint: (clientX: number, clientY: number) => boolean;
|
|
367
|
-
/** Update the active terminal search query. */
|
|
368
|
-
setSearchQuery: (query: string) => void;
|
|
369
|
-
/** Clear terminal search state and visible highlights. */
|
|
370
|
-
clearSearch: () => void;
|
|
371
|
-
/** Navigate to the next terminal search match. */
|
|
372
|
-
searchNext: () => void;
|
|
373
|
-
/** Navigate to the previous terminal search match. */
|
|
374
|
-
searchPrevious: () => void;
|
|
375
|
-
/** Get the current terminal search state. */
|
|
376
|
-
getSearchState: () => ResttySearchState;
|
|
377
|
-
/** Dump the glyph atlas entry for a given Unicode codepoint. */
|
|
378
|
-
dumpAtlasForCodepoint: (cp: number) => void;
|
|
379
|
-
/** Resize terminal grid to explicit columns/rows. */
|
|
380
|
-
resize: (cols: number, rows: number) => void;
|
|
381
|
-
/** Focus terminal input targets. */
|
|
382
|
-
focus: () => void;
|
|
383
|
-
/** Blur terminal input targets. */
|
|
384
|
-
blur: () => void;
|
|
385
|
-
/** Recalculate terminal dimensions from the canvas size. */
|
|
386
|
-
updateSize: (force?: boolean) => void;
|
|
387
|
-
/** Return the name of the active renderer backend. */
|
|
388
|
-
getBackend: () => string;
|
|
389
|
-
/** Replace the active shader stage list. */
|
|
390
|
-
setShaderStages: (stages: ResttyShaderStage[]) => void;
|
|
391
|
-
/** Get the current shader stage list. */
|
|
392
|
-
getShaderStages: () => ResttyShaderStage[];
|
|
393
|
-
};
|
|
1
|
+
export type { ResttyRuntimeLifecycleState } from "./core/lifecycle";
|
|
2
|
+
export type { ResttyRuntimeEvent } from "./core/runtime-events";
|
|
3
|
+
export type { ResttyRuntimeInputPayload, ResttyFontBufferInput, ResttyFontData, ResttyFontFallbackInput, ResttyFontFamilyInput, ResttyFontHintTarget, ResttyFontInput, ResttyFontPathInput, ResttyFontStyle, ResttyFontUrlInput, ResttyLocalFontMode, ResttySearchState, ResttySearchViewportMatch, ResttyShaderStage, ResttyShaderStageBackend, ResttyShaderStageMode, ResttyShaderStageSource, ResttyTouchSelectionMode, } from "./core/models";
|
|
4
|
+
export type { ResttyRuntimeCallbacks, ResttyRuntimeSession, ResttyFontResourceFace, ResttyFontResourceLease, ResttyFontResourceStore, ResttyWasmLogListener, } from "./core/resources";
|
|
5
|
+
export type { ResttyRuntimeConfig, ResttyRuntimeMountConfig, ResttyRuntimeServicesConfig, ResttyTerminalConfig, } from "./core/config";
|
|
6
|
+
export type { ResttyRuntime, ResttyRuntimeEventsApi, ResttyRuntimeEventsView, ResttyRuntimeGroupedApi, ResttyRuntimeInteractionApi, ResttyRuntimeIoApi, ResttyRuntimeLifecycleApi, ResttyRuntimeLifecycleView, ResttyRuntimeRenderApi, ResttyRuntimeSearchApi, ResttyRuntimeTerminalApi, } from "./core/api";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResttyPaneContextMenuOptions, ResttyPaneDefinition, ResttyPaneManager } from "./
|
|
1
|
+
import type { ResttyPaneContextMenuOptions, ResttyPaneDefinition, ResttyPaneManager } from "./types";
|
|
2
2
|
/**
|
|
3
3
|
* Context menu controller for pane right-click interactions.
|
|
4
4
|
* - element: the menu DOM node
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { CreateDefaultResttyPaneContextMenuItemsOptions, ResttyPaneContextMenuItem,
|
|
1
|
+
import type { CreateDefaultResttyPaneContextMenuItemsOptions, ResttyPaneContextMenuItem, ResttyPaneWithRuntimeActions } from "./types";
|
|
2
2
|
/** Return the platform-appropriate shortcut modifier label ("Cmd" on macOS, "Ctrl" elsewhere). */
|
|
3
3
|
export declare function getResttyShortcutModifierLabel(): "Cmd" | "Ctrl";
|
|
4
4
|
/**
|
|
5
5
|
* Build the standard right-click context menu items for a pane
|
|
6
6
|
* (copy, paste, split, close, clear, PTY toggle, pause toggle).
|
|
7
7
|
*/
|
|
8
|
-
export declare function createDefaultResttyPaneContextMenuItems<TPane extends
|
|
8
|
+
export declare function createDefaultResttyPaneContextMenuItems<TPane extends ResttyPaneWithRuntimeActions>(options: CreateDefaultResttyPaneContextMenuItemsOptions<TPane>): Array<ResttyPaneContextMenuItem | "separator">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResttyPaneDefinition, ResttyPaneSplitDirection } from "
|
|
1
|
+
import type { ResttyPaneDefinition, ResttyPaneSplitDirection } from "./types";
|
|
2
2
|
export declare function findClosestPaneToRect<TPane extends ResttyPaneDefinition>(sourceRect: DOMRectReadOnly | null, panes: Iterable<TPane>): TPane | null;
|
|
3
3
|
export declare function collapseSplitAncestors(start: HTMLElement | null): void;
|
|
4
4
|
export declare function createSplitDividerFactory(options: {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ResttyRuntimeCallbacks, ResttyRuntimeSession } from "../../runtime/core/resources";
|
|
2
|
+
import type { ResttyManagedPane, ResttyRuntimeServicesConfigInput, ResttyTerminalConfigInput } from "./managed-pane-types";
|
|
3
|
+
export type ManagedPaneDomClassNames = {
|
|
4
|
+
paneClassName: string;
|
|
5
|
+
canvasClassName: string;
|
|
6
|
+
imeInputClassName: string;
|
|
7
|
+
};
|
|
8
|
+
export type CreateManagedPaneOptions = {
|
|
9
|
+
id: number;
|
|
10
|
+
sourcePane: ResttyManagedPane | null;
|
|
11
|
+
dom: ManagedPaneDomClassNames;
|
|
12
|
+
terminal?: ResttyTerminalConfigInput;
|
|
13
|
+
services?: ResttyRuntimeServicesConfigInput;
|
|
14
|
+
session: ResttyRuntimeSession;
|
|
15
|
+
autoInit?: boolean;
|
|
16
|
+
onSearchState?: ResttyRuntimeCallbacks["onSearchState"];
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ManagedPaneDom = {
|
|
2
|
+
container: HTMLDivElement;
|
|
3
|
+
canvas: HTMLCanvasElement;
|
|
4
|
+
imeInput: HTMLTextAreaElement;
|
|
5
|
+
};
|
|
6
|
+
export type CreateManagedPaneDomOptions = {
|
|
7
|
+
doc?: Document;
|
|
8
|
+
paneClassName: string;
|
|
9
|
+
canvasClassName: string;
|
|
10
|
+
imeInputClassName: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function createImeInput(className: string, doc?: Document): HTMLTextAreaElement;
|
|
13
|
+
export declare function createManagedPaneDom(options: CreateManagedPaneDomOptions): ManagedPaneDom;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CreateResttyManagedPaneManagerOptions, ResttyManagedPaneManager } from "./managed-pane-types";
|
|
2
|
+
/**
|
|
3
|
+
* Create a managed-pane manager that automatically constructs
|
|
4
|
+
* canvas, IME input, and terminal runtime instances for each pane.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createResttyManagedPaneManager(options: CreateResttyManagedPaneManagerOptions): ResttyManagedPaneManager;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ResttyPaneContextMenuOptions, ResttyPaneShortcutsOptions } from "./types";
|
|
2
|
+
import type { ResttyManagedPane } from "./managed-pane-types";
|
|
3
|
+
import type { ManagedPaneContextMenuResolutionOptions, ManagedPaneShortcutResolutionOptions } from "./managed-pane-options.types";
|
|
4
|
+
export declare function defaultManagedPaneInputTargetPredicate(target: HTMLElement): boolean;
|
|
5
|
+
export declare function resolveManagedPaneContextMenu(options: ManagedPaneContextMenuResolutionOptions): ResttyPaneContextMenuOptions<ResttyManagedPane> | null;
|
|
6
|
+
export declare function resolveManagedPaneShortcuts(shortcuts: ManagedPaneShortcutResolutionOptions): boolean | ResttyPaneShortcutsOptions | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ResttyPaneContextMenuOptions, ResttyPaneShortcutsOptions } from "./types";
|
|
2
|
+
import type { ResttyDefaultPaneContextMenuOptions, ResttyManagedPane } from "./managed-pane-types";
|
|
3
|
+
export type ManagedPaneContextMenuResolutionOptions = {
|
|
4
|
+
contextMenu?: ResttyPaneContextMenuOptions<ResttyManagedPane> | null;
|
|
5
|
+
defaultContextMenu?: boolean | ResttyDefaultPaneContextMenuOptions;
|
|
6
|
+
};
|
|
7
|
+
export type ManagedPaneShortcutResolutionOptions = boolean | ResttyPaneShortcutsOptions | undefined;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ResttyRuntimeConfig } from "../../runtime/core/config";
|
|
2
|
+
import type { CreateManagedPaneRuntimeConfigOptions } from "./managed-pane-runtime-config.types";
|
|
3
|
+
export declare function createManagedPaneRuntimeConfig(options: CreateManagedPaneRuntimeConfigOptions): ResttyRuntimeConfig;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ResttyRuntimeCallbacks, ResttyRuntimeSession } from "../../runtime/core/resources";
|
|
2
|
+
import type { ResttyPaneRuntimeContext, ResttyRuntimeServicesConfigInput, ResttyTerminalConfigInput } from "./managed-pane-types";
|
|
3
|
+
export type CreateManagedPaneRuntimeConfigOptions = {
|
|
4
|
+
context: ResttyPaneRuntimeContext;
|
|
5
|
+
terminal?: ResttyTerminalConfigInput;
|
|
6
|
+
services?: ResttyRuntimeServicesConfigInput;
|
|
7
|
+
session: ResttyRuntimeSession;
|
|
8
|
+
onSearchState?: ResttyRuntimeCallbacks["onSearchState"];
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ResttyRuntimeCallbacks, ResttyRuntimeSession } from "../../runtime/core/resources";
|
|
2
|
+
import type { ResttyPaneRuntimeContext, ResttyRuntimeServicesConfigInput, ResttyTerminalConfigInput } from "./managed-pane-types";
|
|
3
|
+
export type CreateManagedPaneRuntimeOptions = {
|
|
4
|
+
context: ResttyPaneRuntimeContext;
|
|
5
|
+
terminal?: ResttyTerminalConfigInput;
|
|
6
|
+
services?: ResttyRuntimeServicesConfigInput;
|
|
7
|
+
session: ResttyRuntimeSession;
|
|
8
|
+
autoInit?: boolean;
|
|
9
|
+
onSearchState?: ResttyRuntimeCallbacks["onSearchState"];
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type PaneSearchUiController } from "../search-ui";
|
|
2
|
+
import type { ResttyManagedPane, ResttyManagedPaneSearchUiOptions } from "./managed-pane-types";
|
|
3
|
+
export type CreateManagedPaneSearchUiControllerOptions = {
|
|
4
|
+
root: HTMLElement;
|
|
5
|
+
searchUi?: boolean | ResttyManagedPaneSearchUiOptions;
|
|
6
|
+
getActivePane: () => ResttyManagedPane | null;
|
|
7
|
+
getFocusedPane: () => ResttyManagedPane | null;
|
|
8
|
+
};
|
|
9
|
+
export declare function createManagedPaneSearchUiController(options: CreateManagedPaneSearchUiControllerOptions): PaneSearchUiController;
|