@opentui/core 0.1.87 → 0.1.89
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/3d/ThreeRenderable.d.ts +4 -4
- package/3d/WGPURenderer.d.ts +4 -4
- package/3d/animation/ExplodingSpriteEffect.d.ts +2 -2
- package/3d/animation/PhysicsExplodingSpriteEffect.d.ts +3 -3
- package/3d/animation/SpriteAnimator.d.ts +1 -1
- package/3d/animation/SpriteParticleGenerator.d.ts +1 -1
- package/3d/canvas.d.ts +2 -2
- package/3d/index.d.ts +12 -12
- package/3d/physics/PlanckPhysicsAdapter.d.ts +1 -1
- package/3d/physics/RapierPhysicsAdapter.d.ts +1 -1
- package/3d.d.ts +1 -1
- package/3d.js +1 -1
- package/3d.js.map +12 -12
- package/Renderable.d.ts +7 -7
- package/animation/Timeline.d.ts +1 -1
- package/buffer.d.ts +6 -4
- package/console.d.ts +7 -4
- package/edit-buffer.d.ts +4 -4
- package/editor-view.d.ts +3 -3
- package/{index-0wbvecnk.js → index-e89anq5x.js} +864 -175
- package/index-e89anq5x.js.map +64 -0
- package/index-rs5zwr4j.js +12373 -0
- package/index-rs5zwr4j.js.map +43 -0
- package/index-tae5jwnc.js +188 -0
- package/index-tae5jwnc.js.map +10 -0
- package/index.d.ts +20 -17
- package/index.js +86 -11596
- package/index.js.map +3 -35
- package/lib/KeyHandler.d.ts +7 -4
- package/lib/ascii.font.d.ts +2 -2
- package/lib/border.d.ts +1 -1
- package/lib/clipboard.d.ts +1 -1
- package/lib/clock.d.ts +4 -0
- package/lib/extmarks-history.d.ts +1 -1
- package/lib/extmarks.d.ts +2 -2
- package/lib/hast-styled-text.d.ts +3 -3
- package/lib/index.d.ts +21 -20
- package/lib/objects-in-viewport.d.ts +1 -1
- package/lib/parse.keypress-kitty.d.ts +1 -1
- package/lib/paste.d.ts +7 -0
- package/lib/renderable.validations.d.ts +2 -2
- package/lib/selection.d.ts +2 -2
- package/lib/stdin-parser.d.ts +14 -2
- package/lib/styled-text.d.ts +2 -2
- package/lib/terminal-palette.d.ts +4 -2
- package/lib/tree-sitter/client.d.ts +1 -1
- package/lib/tree-sitter/index.d.ts +7 -7
- package/lib/tree-sitter/parsers-config.d.ts +15 -0
- package/lib/tree-sitter/resolve-ft.d.ts +3 -0
- package/lib/tree-sitter/types.d.ts +1 -0
- package/lib/tree-sitter-styled-text.d.ts +5 -5
- package/package.json +17 -7
- package/parser.worker.js +52 -18
- package/parser.worker.js.map +3 -3
- package/plugins/core-slot.d.ts +72 -0
- package/plugins/registry.d.ts +38 -0
- package/plugins/types.d.ts +34 -0
- package/post/effects.d.ts +147 -0
- package/post/filters.d.ts +28 -68
- package/post/matrices.d.ts +20 -0
- package/renderables/ASCIIFont.d.ts +6 -6
- package/renderables/Box.d.ts +5 -5
- package/renderables/Code.d.ts +10 -8
- package/renderables/Diff.d.ts +7 -7
- package/renderables/EditBufferRenderable.d.ts +8 -8
- package/renderables/FrameBuffer.d.ts +3 -3
- package/renderables/Input.d.ts +3 -3
- package/renderables/LineNumberRenderable.d.ts +4 -4
- package/renderables/Markdown.d.ts +17 -9
- package/renderables/ScrollBar.d.ts +6 -6
- package/renderables/ScrollBox.d.ts +9 -8
- package/renderables/Select.d.ts +7 -7
- package/renderables/Slider.d.ts +1 -1
- package/renderables/TabSelect.d.ts +6 -6
- package/renderables/Text.d.ts +7 -7
- package/renderables/TextBufferRenderable.d.ts +9 -9
- package/renderables/TextNode.d.ts +6 -6
- package/renderables/Textarea.d.ts +7 -7
- package/renderables/__tests__/renderable-test-utils.d.ts +8 -3
- package/renderables/composition/VRenderable.d.ts +3 -3
- package/renderables/composition/constructs.d.ts +14 -14
- package/renderables/composition/vnode.d.ts +2 -2
- package/renderables/index.d.ts +22 -22
- package/renderer.d.ts +28 -16
- package/runtime-plugin-support.d.ts +3 -0
- package/runtime-plugin-support.js +29 -0
- package/runtime-plugin-support.js.map +10 -0
- package/runtime-plugin.d.ts +11 -0
- package/runtime-plugin.js +16 -0
- package/runtime-plugin.js.map +9 -0
- package/syntax-style.d.ts +2 -2
- package/testing/manual-clock.d.ts +1 -0
- package/testing/mock-keys.d.ts +2 -1
- package/testing/mock-mouse.d.ts +1 -1
- package/testing/mock-tree-sitter-client.d.ts +2 -2
- package/testing/test-recorder.d.ts +1 -1
- package/testing/test-renderer.d.ts +4 -4
- package/testing.d.ts +6 -6
- package/testing.js +12 -7
- package/testing.js.map +7 -7
- package/text-buffer-view.d.ts +3 -3
- package/text-buffer.d.ts +5 -5
- package/types.d.ts +9 -4
- package/utils.d.ts +1 -1
- package/zig-structs.d.ts +1 -1
- package/zig.d.ts +7 -5
- package/index-0wbvecnk.js.map +0 -63
package/post/filters.d.ts
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import type { OptimizedBuffer } from "../buffer";
|
|
1
|
+
import type { OptimizedBuffer } from "../buffer.js";
|
|
2
2
|
/**
|
|
3
|
-
* Applies a scanline effect by darkening every nth row.
|
|
3
|
+
* Applies a scanline effect by darkening every nth row using native color matrix.
|
|
4
|
+
* Only affects the background buffer to maintain text readability.
|
|
4
5
|
*/
|
|
5
6
|
export declare function applyScanlines(buffer: OptimizedBuffer, strength?: number, step?: number): void;
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
+
* Inverts the colors in the buffer using native color matrix.
|
|
9
|
+
* Uses negative matrix with alpha offset: output = 1.0 - input for each RGB channel.
|
|
8
10
|
*/
|
|
9
|
-
export declare function
|
|
11
|
+
export declare function applyInvert(buffer: OptimizedBuffer, strength?: number): void;
|
|
10
12
|
/**
|
|
11
|
-
*
|
|
12
|
-
|
|
13
|
-
export declare function applySepia(buffer: OptimizedBuffer): void;
|
|
14
|
-
/**
|
|
15
|
-
* Inverts the colors in the buffer.
|
|
16
|
-
*/
|
|
17
|
-
export declare function applyInvert(buffer: OptimizedBuffer): void;
|
|
18
|
-
/**
|
|
19
|
-
* Adds random noise to the buffer colors.
|
|
13
|
+
* Adds random noise to the buffer colors using colorMatrix with brightness matrix.
|
|
14
|
+
* Uses per-pixel random strength values to dim/brighten each cell.
|
|
20
15
|
*/
|
|
21
16
|
export declare function applyNoise(buffer: OptimizedBuffer, strength?: number): void;
|
|
22
17
|
/**
|
|
@@ -25,68 +20,33 @@ export declare function applyNoise(buffer: OptimizedBuffer, strength?: number):
|
|
|
25
20
|
export declare function applyChromaticAberration(buffer: OptimizedBuffer, strength?: number): void;
|
|
26
21
|
/**
|
|
27
22
|
* Converts the buffer to ASCII art based on background brightness.
|
|
23
|
+
* Uses native colorMatrix for efficient color corrections.
|
|
28
24
|
*/
|
|
29
|
-
export declare function applyAsciiArt(buffer: OptimizedBuffer, ramp?: string
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
private lastGlitchTime;
|
|
39
|
-
private glitchDuration;
|
|
40
|
-
private activeGlitches;
|
|
41
|
-
constructor(options?: Partial<DistortionEffect>);
|
|
42
|
-
/**
|
|
43
|
-
* Applies the animated distortion/glitch effect to the buffer.
|
|
44
|
-
*/
|
|
45
|
-
apply(buffer: OptimizedBuffer, deltaTime: number): void;
|
|
46
|
-
}
|
|
25
|
+
export declare function applyAsciiArt(buffer: OptimizedBuffer, ramp?: string, fgColor?: {
|
|
26
|
+
r: number;
|
|
27
|
+
g: number;
|
|
28
|
+
b: number;
|
|
29
|
+
}, bgColor?: {
|
|
30
|
+
r: number;
|
|
31
|
+
g: number;
|
|
32
|
+
b: number;
|
|
33
|
+
}): void;
|
|
47
34
|
/**
|
|
48
|
-
*
|
|
35
|
+
* Adjusts the brightness of the buffer using color matrix transformation.
|
|
36
|
+
* Brightness adds the brightness value to all RGB channels (additive brightness).
|
|
37
|
+
* If not provided, applies uniform brightness to entire buffer.
|
|
49
38
|
*/
|
|
50
|
-
export declare
|
|
51
|
-
private _strength;
|
|
52
|
-
private precomputedBaseAttenuation;
|
|
53
|
-
private cachedWidth;
|
|
54
|
-
private cachedHeight;
|
|
55
|
-
constructor(strength?: number);
|
|
56
|
-
set strength(newStrength: number);
|
|
57
|
-
get strength(): number;
|
|
58
|
-
private _computeFactors;
|
|
59
|
-
/**
|
|
60
|
-
* Applies the vignette effect using precomputed base attenuation and current strength.
|
|
61
|
-
*/
|
|
62
|
-
apply(buffer: OptimizedBuffer): void;
|
|
63
|
-
}
|
|
39
|
+
export declare function applyBrightness(buffer: OptimizedBuffer, brightness?: number, cellMask?: Float32Array): void;
|
|
64
40
|
/**
|
|
65
|
-
* Adjusts the
|
|
41
|
+
* Adjusts the gain of the buffer using color matrix transformation.
|
|
42
|
+
* Gain multiplies all RGB channels by the gain factor (no clamping).
|
|
43
|
+
* If not provided, applies uniform gain to entire buffer.
|
|
66
44
|
*/
|
|
67
|
-
export declare
|
|
68
|
-
private _brightness;
|
|
69
|
-
constructor(brightness?: number);
|
|
70
|
-
set brightness(newBrightness: number);
|
|
71
|
-
get brightness(): number;
|
|
72
|
-
/**
|
|
73
|
-
* Applies the brightness adjustment to the buffer.
|
|
74
|
-
*/
|
|
75
|
-
apply(buffer: OptimizedBuffer): void;
|
|
76
|
-
}
|
|
45
|
+
export declare function applyGain(buffer: OptimizedBuffer, gain?: number, cellMask?: Float32Array): void;
|
|
77
46
|
/**
|
|
78
|
-
* Applies a
|
|
47
|
+
* Applies a saturation adjustment to the buffer.
|
|
79
48
|
*/
|
|
80
|
-
export declare
|
|
81
|
-
private _radius;
|
|
82
|
-
constructor(radius?: number);
|
|
83
|
-
set radius(newRadius: number);
|
|
84
|
-
get radius(): number;
|
|
85
|
-
/**
|
|
86
|
-
* Applies an optimized separable box blur using a moving average (sliding window).
|
|
87
|
-
*/
|
|
88
|
-
apply(buffer: OptimizedBuffer): void;
|
|
89
|
-
}
|
|
49
|
+
export declare function applySaturation(buffer: OptimizedBuffer, cellMask?: Float32Array, strength?: number): void;
|
|
90
50
|
/**
|
|
91
51
|
* Applies a bloom effect based on bright areas (Simplified).
|
|
92
52
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const SEPIA_MATRIX: Float32Array<ArrayBuffer>;
|
|
2
|
+
/**
|
|
3
|
+
* Colorblindness simulation and compensation filters using color matrix transformations.
|
|
4
|
+
*/
|
|
5
|
+
export declare const PROTANOPIA_SIM_MATRIX: Float32Array<ArrayBuffer>;
|
|
6
|
+
export declare const DEUTERANOPIA_SIM_MATRIX: Float32Array<ArrayBuffer>;
|
|
7
|
+
export declare const TRITANOPIA_SIM_MATRIX: Float32Array<ArrayBuffer>;
|
|
8
|
+
export declare const ACHROMATOPSIA_MATRIX: Float32Array<ArrayBuffer>;
|
|
9
|
+
export declare const PROTANOPIA_COMP_MATRIX: Float32Array<ArrayBuffer>;
|
|
10
|
+
export declare const DEUTERANOPIA_COMP_MATRIX: Float32Array<ArrayBuffer>;
|
|
11
|
+
export declare const TRITANOPIA_COMP_MATRIX: Float32Array<ArrayBuffer>;
|
|
12
|
+
/**
|
|
13
|
+
* Creative color effect matrices.
|
|
14
|
+
*/
|
|
15
|
+
export declare const TECHNICOLOR_MATRIX: Float32Array<ArrayBuffer>;
|
|
16
|
+
export declare const SOLARIZATION_MATRIX: Float32Array<ArrayBuffer>;
|
|
17
|
+
export declare const SYNTHWAVE_MATRIX: Float32Array<ArrayBuffer>;
|
|
18
|
+
export declare const GREENSCALE_MATRIX: Float32Array<ArrayBuffer>;
|
|
19
|
+
export declare const GRAYSCALE_MATRIX: Float32Array<ArrayBuffer>;
|
|
20
|
+
export declare const INVERT_MATRIX: Float32Array<ArrayBuffer>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type ASCIIFontName, type fonts } from "../lib/ascii.font";
|
|
2
|
-
import { type ColorInput } from "../lib/RGBA";
|
|
3
|
-
import { Selection, type LocalSelectionBounds } from "../lib/selection";
|
|
4
|
-
import type { RenderableOptions } from "../Renderable";
|
|
5
|
-
import type { RenderContext } from "../types";
|
|
6
|
-
import { FrameBufferRenderable } from "./FrameBuffer";
|
|
1
|
+
import { type ASCIIFontName, type fonts } from "../lib/ascii.font.js";
|
|
2
|
+
import { type ColorInput } from "../lib/RGBA.js";
|
|
3
|
+
import { Selection, type LocalSelectionBounds } from "../lib/selection.js";
|
|
4
|
+
import type { RenderableOptions } from "../Renderable.js";
|
|
5
|
+
import type { RenderContext } from "../types.js";
|
|
6
|
+
import { FrameBufferRenderable } from "./FrameBuffer.js";
|
|
7
7
|
export interface ASCIIFontOptions extends Omit<RenderableOptions<ASCIIFontRenderable>, "width" | "height"> {
|
|
8
8
|
text?: string;
|
|
9
9
|
font?: ASCIIFontName;
|
package/renderables/Box.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type RenderableOptions, Renderable } from "../Renderable";
|
|
2
|
-
import type { OptimizedBuffer } from "../buffer";
|
|
3
|
-
import { type BorderCharacters, type BorderSides, type BorderSidesConfig, type BorderStyle } from "../lib";
|
|
4
|
-
import { type ColorInput, RGBA } from "../lib/RGBA";
|
|
5
|
-
import type { RenderContext } from "../types";
|
|
1
|
+
import { type RenderableOptions, Renderable } from "../Renderable.js";
|
|
2
|
+
import type { OptimizedBuffer } from "../buffer.js";
|
|
3
|
+
import { type BorderCharacters, type BorderSides, type BorderSidesConfig, type BorderStyle } from "../lib/index.js";
|
|
4
|
+
import { type ColorInput, RGBA } from "../lib/RGBA.js";
|
|
5
|
+
import type { RenderContext } from "../types.js";
|
|
6
6
|
export interface BoxOptions<TRenderable extends Renderable = BoxRenderable> extends RenderableOptions<TRenderable> {
|
|
7
7
|
backgroundColor?: string | RGBA;
|
|
8
8
|
borderStyle?: BorderStyle;
|
package/renderables/Code.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type RenderContext } from "../types";
|
|
2
|
-
import { SyntaxStyle } from "../syntax-style";
|
|
3
|
-
import { TreeSitterClient } from "../lib/tree-sitter";
|
|
4
|
-
import { TextBufferRenderable, type TextBufferOptions } from "./TextBufferRenderable";
|
|
5
|
-
import type { OptimizedBuffer } from "../buffer";
|
|
6
|
-
import type { SimpleHighlight } from "../lib/tree-sitter/types";
|
|
7
|
-
import type { TextChunk } from "../text-buffer";
|
|
1
|
+
import { type RenderContext } from "../types.js";
|
|
2
|
+
import { SyntaxStyle } from "../syntax-style.js";
|
|
3
|
+
import { TreeSitterClient } from "../lib/tree-sitter/index.js";
|
|
4
|
+
import { TextBufferRenderable, type TextBufferOptions } from "./TextBufferRenderable.js";
|
|
5
|
+
import type { OptimizedBuffer } from "../buffer.js";
|
|
6
|
+
import type { SimpleHighlight } from "../lib/tree-sitter/types.js";
|
|
7
|
+
import type { TextChunk } from "../text-buffer.js";
|
|
8
8
|
export interface HighlightContext {
|
|
9
9
|
content: string;
|
|
10
10
|
filetype: string;
|
|
@@ -42,6 +42,7 @@ export declare class CodeRenderable extends TextBufferRenderable {
|
|
|
42
42
|
private _lastHighlights;
|
|
43
43
|
private _onHighlight?;
|
|
44
44
|
private _onChunks?;
|
|
45
|
+
private _highlightingPromise;
|
|
45
46
|
protected _contentDefaultOptions: {
|
|
46
47
|
content: string;
|
|
47
48
|
conceal: true;
|
|
@@ -68,9 +69,10 @@ export declare class CodeRenderable extends TextBufferRenderable {
|
|
|
68
69
|
get onChunks(): OnChunksCallback | undefined;
|
|
69
70
|
set onChunks(value: OnChunksCallback | undefined);
|
|
70
71
|
get isHighlighting(): boolean;
|
|
72
|
+
get highlightingDone(): Promise<void>;
|
|
71
73
|
protected transformChunks(chunks: TextChunk[], context: ChunkRenderContext): Promise<TextChunk[]>;
|
|
72
74
|
private ensureVisibleTextBeforeHighlight;
|
|
73
75
|
private startHighlight;
|
|
74
|
-
getLineHighlights(lineIdx: number): import("
|
|
76
|
+
getLineHighlights(lineIdx: number): import("../types.js").Highlight[];
|
|
75
77
|
protected renderSelf(buffer: OptimizedBuffer): void;
|
|
76
78
|
}
|
package/renderables/Diff.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Renderable, type RenderableOptions } from "../Renderable";
|
|
2
|
-
import type { RenderContext } from "../types";
|
|
3
|
-
import { type LineColorConfig } from "./LineNumberRenderable";
|
|
4
|
-
import { RGBA } from "../lib/RGBA";
|
|
5
|
-
import { SyntaxStyle } from "../syntax-style";
|
|
6
|
-
import type { TreeSitterClient } from "../lib/tree-sitter";
|
|
7
|
-
import type { MouseEvent } from "../renderer";
|
|
1
|
+
import { Renderable, type RenderableOptions } from "../Renderable.js";
|
|
2
|
+
import type { RenderContext } from "../types.js";
|
|
3
|
+
import { type LineColorConfig } from "./LineNumberRenderable.js";
|
|
4
|
+
import { RGBA } from "../lib/RGBA.js";
|
|
5
|
+
import { SyntaxStyle } from "../syntax-style.js";
|
|
6
|
+
import type { TreeSitterClient } from "../lib/tree-sitter/index.js";
|
|
7
|
+
import type { MouseEvent } from "../renderer.js";
|
|
8
8
|
export interface DiffRenderableOptions extends RenderableOptions<DiffRenderable> {
|
|
9
9
|
diff?: string;
|
|
10
10
|
syncScroll?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Renderable, type RenderableOptions } from "../Renderable";
|
|
2
|
-
import { Selection, type LocalSelectionBounds } from "../lib/selection";
|
|
3
|
-
import { EditBuffer, type LogicalCursor } from "../edit-buffer";
|
|
4
|
-
import { EditorView, type VisualCursor } from "../editor-view";
|
|
5
|
-
import { RGBA } from "../lib/RGBA";
|
|
6
|
-
import type { RenderContext, Highlight, CursorStyleOptions, LineInfoProvider, LineInfo } from "../types";
|
|
7
|
-
import type { OptimizedBuffer } from "../buffer";
|
|
8
|
-
import type { SyntaxStyle } from "../syntax-style";
|
|
1
|
+
import { Renderable, type RenderableOptions } from "../Renderable.js";
|
|
2
|
+
import { Selection, type LocalSelectionBounds } from "../lib/selection.js";
|
|
3
|
+
import { EditBuffer, type LogicalCursor } from "../edit-buffer.js";
|
|
4
|
+
import { EditorView, type VisualCursor } from "../editor-view.js";
|
|
5
|
+
import { RGBA } from "../lib/RGBA.js";
|
|
6
|
+
import type { RenderContext, Highlight, CursorStyleOptions, LineInfoProvider, LineInfo } from "../types.js";
|
|
7
|
+
import type { OptimizedBuffer } from "../buffer.js";
|
|
8
|
+
import type { SyntaxStyle } from "../syntax-style.js";
|
|
9
9
|
export interface CursorChangeEvent {
|
|
10
10
|
line: number;
|
|
11
11
|
visualColumn: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type RenderableOptions, Renderable } from "../Renderable";
|
|
2
|
-
import { OptimizedBuffer } from "../buffer";
|
|
3
|
-
import type { RenderContext } from "../types";
|
|
1
|
+
import { type RenderableOptions, Renderable } from "../Renderable.js";
|
|
2
|
+
import { OptimizedBuffer } from "../buffer.js";
|
|
3
|
+
import type { RenderContext } from "../types.js";
|
|
4
4
|
export interface FrameBufferOptions extends RenderableOptions<FrameBufferRenderable> {
|
|
5
5
|
width: number;
|
|
6
6
|
height: number;
|
package/renderables/Input.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PasteEvent } from "../lib/KeyHandler";
|
|
2
|
-
import type { RenderContext } from "../types";
|
|
3
|
-
import { TextareaRenderable, type TextareaOptions, type TextareaAction, type KeyBinding as TextareaKeyBinding } from "./Textarea";
|
|
1
|
+
import type { PasteEvent } from "../lib/KeyHandler.js";
|
|
2
|
+
import type { RenderContext } from "../types.js";
|
|
3
|
+
import { TextareaRenderable, type TextareaOptions, type TextareaAction, type KeyBinding as TextareaKeyBinding } from "./Textarea.js";
|
|
4
4
|
export type InputAction = TextareaAction;
|
|
5
5
|
export type InputKeyBinding = TextareaKeyBinding;
|
|
6
6
|
export interface InputRenderableOptions extends Omit<TextareaOptions, "height" | "minHeight" | "maxHeight" | "initialValue"> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Renderable, type RenderableOptions } from "../Renderable";
|
|
2
|
-
import { OptimizedBuffer } from "../buffer";
|
|
3
|
-
import type { RenderContext, LineInfoProvider } from "../types";
|
|
4
|
-
import { RGBA } from "../lib/RGBA";
|
|
1
|
+
import { Renderable, type RenderableOptions } from "../Renderable.js";
|
|
2
|
+
import { OptimizedBuffer } from "../buffer.js";
|
|
3
|
+
import type { RenderContext, LineInfoProvider } from "../types.js";
|
|
4
|
+
import { RGBA } from "../lib/RGBA.js";
|
|
5
5
|
export interface LineSign {
|
|
6
6
|
before?: string;
|
|
7
7
|
beforeColor?: string | RGBA;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Renderable, type RenderableOptions } from "../Renderable";
|
|
2
|
-
import { type RenderContext } from "../types";
|
|
3
|
-
import { SyntaxStyle } from "../syntax-style";
|
|
4
|
-
import type { BorderStyle } from "../lib/border";
|
|
5
|
-
import type
|
|
1
|
+
import { Renderable, type RenderableOptions } from "../Renderable.js";
|
|
2
|
+
import { type RenderContext } from "../types.js";
|
|
3
|
+
import { SyntaxStyle } from "../syntax-style.js";
|
|
4
|
+
import type { BorderStyle } from "../lib/border.js";
|
|
5
|
+
import { RGBA, type ColorInput } from "../lib/RGBA.js";
|
|
6
6
|
import { type MarkedToken, type Token } from "marked";
|
|
7
|
-
import { type TextTableColumnFitter, type TextTableColumnWidthMode, type TextTableContent } from "./TextTable";
|
|
8
|
-
import type { TreeSitterClient } from "../lib/tree-sitter";
|
|
9
|
-
import { type ParseState } from "./markdown-parser";
|
|
10
|
-
import type { OptimizedBuffer } from "../buffer";
|
|
7
|
+
import { type TextTableColumnFitter, type TextTableColumnWidthMode, type TextTableContent } from "./TextTable.js";
|
|
8
|
+
import type { TreeSitterClient } from "../lib/tree-sitter/index.js";
|
|
9
|
+
import { type ParseState } from "./markdown-parser.js";
|
|
10
|
+
import type { OptimizedBuffer } from "../buffer.js";
|
|
11
11
|
export interface MarkdownTableOptions {
|
|
12
12
|
/**
|
|
13
13
|
* Strategy for sizing table columns.
|
|
@@ -51,6 +51,8 @@ export interface MarkdownTableOptions {
|
|
|
51
51
|
export interface MarkdownOptions extends RenderableOptions<MarkdownRenderable> {
|
|
52
52
|
content?: string;
|
|
53
53
|
syntaxStyle: SyntaxStyle;
|
|
54
|
+
fg?: ColorInput;
|
|
55
|
+
bg?: ColorInput;
|
|
54
56
|
/** Controls concealment for markdown syntax markers in markdown text blocks. */
|
|
55
57
|
conceal?: boolean;
|
|
56
58
|
/** Controls concealment inside fenced code blocks rendered by CodeRenderable. */
|
|
@@ -102,6 +104,8 @@ export type { ParseState };
|
|
|
102
104
|
export declare class MarkdownRenderable extends Renderable {
|
|
103
105
|
private _content;
|
|
104
106
|
private _syntaxStyle;
|
|
107
|
+
private _fg?;
|
|
108
|
+
private _bg?;
|
|
105
109
|
private _conceal;
|
|
106
110
|
private _concealCode;
|
|
107
111
|
private _treeSitterClient?;
|
|
@@ -123,6 +127,10 @@ export declare class MarkdownRenderable extends Renderable {
|
|
|
123
127
|
set content(value: string);
|
|
124
128
|
get syntaxStyle(): SyntaxStyle;
|
|
125
129
|
set syntaxStyle(value: SyntaxStyle);
|
|
130
|
+
get fg(): RGBA | undefined;
|
|
131
|
+
set fg(value: ColorInput | undefined);
|
|
132
|
+
get bg(): RGBA | undefined;
|
|
133
|
+
set bg(value: ColorInput | undefined);
|
|
126
134
|
get conceal(): boolean;
|
|
127
135
|
set conceal(value: boolean);
|
|
128
136
|
get concealCode(): boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { OptimizedBuffer } from "../buffer";
|
|
2
|
-
import { RGBA, type ColorInput } from "../lib";
|
|
3
|
-
import type { KeyEvent } from "../lib/KeyHandler";
|
|
4
|
-
import { Renderable, type RenderableOptions } from "../Renderable";
|
|
5
|
-
import type { RenderContext } from "../types";
|
|
6
|
-
import { SliderRenderable, type SliderOptions } from "./Slider";
|
|
1
|
+
import type { OptimizedBuffer } from "../buffer.js";
|
|
2
|
+
import { RGBA, type ColorInput } from "../lib/index.js";
|
|
3
|
+
import type { KeyEvent } from "../lib/KeyHandler.js";
|
|
4
|
+
import { Renderable, type RenderableOptions } from "../Renderable.js";
|
|
5
|
+
import type { RenderContext } from "../types.js";
|
|
6
|
+
import { SliderRenderable, type SliderOptions } from "./Slider.js";
|
|
7
7
|
export interface ScrollBarOptions extends RenderableOptions<ScrollBarRenderable> {
|
|
8
8
|
orientation: "vertical" | "horizontal";
|
|
9
9
|
showArrows?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type KeyEvent } from "../lib";
|
|
2
|
-
import { type ScrollAcceleration } from "../lib/scroll-acceleration";
|
|
3
|
-
import type { Renderable, RenderableOptions } from "../Renderable";
|
|
4
|
-
import type { MouseEvent } from "../renderer";
|
|
5
|
-
import type { RenderContext } from "../types";
|
|
6
|
-
import { BoxRenderable, type BoxOptions } from "./Box";
|
|
7
|
-
import type { VNode } from "./composition/vnode";
|
|
8
|
-
import { ScrollBarRenderable, type ScrollBarOptions, type ScrollUnit } from "./ScrollBar";
|
|
1
|
+
import { type KeyEvent } from "../lib/index.js";
|
|
2
|
+
import { type ScrollAcceleration } from "../lib/scroll-acceleration.js";
|
|
3
|
+
import type { Renderable, RenderableOptions } from "../Renderable.js";
|
|
4
|
+
import type { MouseEvent } from "../renderer.js";
|
|
5
|
+
import type { RenderContext } from "../types.js";
|
|
6
|
+
import { BoxRenderable, type BoxOptions } from "./Box.js";
|
|
7
|
+
import type { VNode } from "./composition/vnode.js";
|
|
8
|
+
import { ScrollBarRenderable, type ScrollBarOptions, type ScrollUnit } from "./ScrollBar.js";
|
|
9
9
|
declare class ContentRenderable extends BoxRenderable {
|
|
10
10
|
private viewport;
|
|
11
11
|
private _viewportCulling;
|
|
@@ -79,6 +79,7 @@ export declare class ScrollBoxRenderable extends BoxRenderable {
|
|
|
79
79
|
x: number;
|
|
80
80
|
y: number;
|
|
81
81
|
}, unit?: ScrollUnit): void;
|
|
82
|
+
scrollChildIntoView(childId: string): void;
|
|
82
83
|
scrollTo(position: number | {
|
|
83
84
|
x: number;
|
|
84
85
|
y: number;
|
package/renderables/Select.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { OptimizedBuffer } from "../buffer";
|
|
2
|
-
import { fonts } from "../lib/ascii.font";
|
|
3
|
-
import type { KeyEvent } from "../lib/KeyHandler";
|
|
4
|
-
import { type ColorInput } from "../lib/RGBA";
|
|
5
|
-
import { Renderable, type RenderableOptions } from "../Renderable";
|
|
6
|
-
import type { RenderContext } from "../types";
|
|
7
|
-
import { type KeyBinding as BaseKeyBinding, type KeyAliasMap } from "../lib/keymapping";
|
|
1
|
+
import { OptimizedBuffer } from "../buffer.js";
|
|
2
|
+
import { fonts } from "../lib/ascii.font.js";
|
|
3
|
+
import type { KeyEvent } from "../lib/KeyHandler.js";
|
|
4
|
+
import { type ColorInput } from "../lib/RGBA.js";
|
|
5
|
+
import { Renderable, type RenderableOptions } from "../Renderable.js";
|
|
6
|
+
import type { RenderContext } from "../types.js";
|
|
7
|
+
import { type KeyBinding as BaseKeyBinding, type KeyAliasMap } from "../lib/keymapping.js";
|
|
8
8
|
export interface SelectOption {
|
|
9
9
|
name: string;
|
|
10
10
|
description: string;
|
package/renderables/Slider.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ColorInput, OptimizedBuffer, Renderable, type RenderableOptions, type RenderContext, RGBA } from "../index";
|
|
1
|
+
import { type ColorInput, OptimizedBuffer, Renderable, type RenderableOptions, type RenderContext, RGBA } from "../index.js";
|
|
2
2
|
export interface SliderOptions extends RenderableOptions<SliderRenderable> {
|
|
3
3
|
orientation: "vertical" | "horizontal";
|
|
4
4
|
value?: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Renderable, type RenderableOptions } from "../Renderable";
|
|
2
|
-
import { OptimizedBuffer } from "../buffer";
|
|
3
|
-
import { type ColorInput } from "../lib/RGBA";
|
|
4
|
-
import type { KeyEvent } from "../lib/KeyHandler";
|
|
5
|
-
import type { RenderContext } from "../types";
|
|
6
|
-
import { type KeyBinding as BaseKeyBinding, type KeyAliasMap } from "../lib/keymapping";
|
|
1
|
+
import { Renderable, type RenderableOptions } from "../Renderable.js";
|
|
2
|
+
import { OptimizedBuffer } from "../buffer.js";
|
|
3
|
+
import { type ColorInput } from "../lib/RGBA.js";
|
|
4
|
+
import type { KeyEvent } from "../lib/KeyHandler.js";
|
|
5
|
+
import type { RenderContext } from "../types.js";
|
|
6
|
+
import { type KeyBinding as BaseKeyBinding, type KeyAliasMap } from "../lib/keymapping.js";
|
|
7
7
|
export interface TabSelectOption {
|
|
8
8
|
name: string;
|
|
9
9
|
description: string;
|
package/renderables/Text.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BaseRenderable } from "../Renderable";
|
|
2
|
-
import { StyledText } from "../lib/styled-text";
|
|
3
|
-
import { type TextChunk } from "../text-buffer";
|
|
4
|
-
import { RGBA } from "../lib/RGBA";
|
|
5
|
-
import { type RenderContext } from "../types";
|
|
6
|
-
import { RootTextNodeRenderable, TextNodeRenderable } from "./TextNode";
|
|
7
|
-
import { TextBufferRenderable, type TextBufferOptions } from "./TextBufferRenderable";
|
|
1
|
+
import { BaseRenderable } from "../Renderable.js";
|
|
2
|
+
import { StyledText } from "../lib/styled-text.js";
|
|
3
|
+
import { type TextChunk } from "../text-buffer.js";
|
|
4
|
+
import { RGBA } from "../lib/RGBA.js";
|
|
5
|
+
import { type RenderContext } from "../types.js";
|
|
6
|
+
import { RootTextNodeRenderable, TextNodeRenderable } from "./TextNode.js";
|
|
7
|
+
import { TextBufferRenderable, type TextBufferOptions } from "./TextBufferRenderable.js";
|
|
8
8
|
export interface TextOptions extends TextBufferOptions {
|
|
9
9
|
content?: StyledText | string;
|
|
10
10
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Renderable, type RenderableOptions } from "../Renderable";
|
|
2
|
-
import { Selection, type LocalSelectionBounds } from "../lib/selection";
|
|
3
|
-
import { TextBuffer } from "../text-buffer";
|
|
4
|
-
import { TextBufferView } from "../text-buffer-view";
|
|
5
|
-
import { RGBA } from "../lib/RGBA";
|
|
6
|
-
import { type RenderContext, type LineInfoProvider } from "../types";
|
|
7
|
-
import type { OptimizedBuffer } from "../buffer";
|
|
8
|
-
import type { LineInfo } from "../zig";
|
|
9
|
-
import { SyntaxStyle } from "../syntax-style";
|
|
1
|
+
import { Renderable, type RenderableOptions } from "../Renderable.js";
|
|
2
|
+
import { Selection, type LocalSelectionBounds } from "../lib/selection.js";
|
|
3
|
+
import { TextBuffer } from "../text-buffer.js";
|
|
4
|
+
import { TextBufferView } from "../text-buffer-view.js";
|
|
5
|
+
import { RGBA } from "../lib/RGBA.js";
|
|
6
|
+
import { type RenderContext, type LineInfoProvider } from "../types.js";
|
|
7
|
+
import type { OptimizedBuffer } from "../buffer.js";
|
|
8
|
+
import type { LineInfo } from "../zig.js";
|
|
9
|
+
import { SyntaxStyle } from "../syntax-style.js";
|
|
10
10
|
export interface TextBufferOptions extends RenderableOptions<TextBufferRenderable> {
|
|
11
11
|
fg?: string | RGBA;
|
|
12
12
|
bg?: string | RGBA;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { TextRenderable } from ".";
|
|
2
|
-
import { BaseRenderable, type BaseRenderableOptions } from "../Renderable";
|
|
3
|
-
import { RGBA } from "../lib/RGBA";
|
|
4
|
-
import { StyledText } from "../lib/styled-text";
|
|
5
|
-
import { type TextChunk } from "../text-buffer";
|
|
6
|
-
import type { RenderContext } from "../types";
|
|
1
|
+
import type { TextRenderable } from "./index.js";
|
|
2
|
+
import { BaseRenderable, type BaseRenderableOptions } from "../Renderable.js";
|
|
3
|
+
import { RGBA } from "../lib/RGBA.js";
|
|
4
|
+
import { StyledText } from "../lib/styled-text.js";
|
|
5
|
+
import { type TextChunk } from "../text-buffer.js";
|
|
6
|
+
import type { RenderContext } from "../types.js";
|
|
7
7
|
export interface TextNodeOptions extends BaseRenderableOptions {
|
|
8
8
|
fg?: string | RGBA;
|
|
9
9
|
bg?: string | RGBA;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { type KeyBinding as BaseKeyBinding, type KeyAliasMap } from "../lib/keymapping";
|
|
6
|
-
import { type StyledText } from "../lib/styled-text";
|
|
7
|
-
import type { ExtmarksController } from "../lib/extmarks";
|
|
1
|
+
import type { KeyEvent, PasteEvent } from "../lib/KeyHandler.js";
|
|
2
|
+
import { RGBA, type ColorInput } from "../lib/RGBA.js";
|
|
3
|
+
import { type RenderContext } from "../types.js";
|
|
4
|
+
import { EditBufferRenderable, type EditBufferOptions } from "./EditBufferRenderable.js";
|
|
5
|
+
import { type KeyBinding as BaseKeyBinding, type KeyAliasMap } from "../lib/keymapping.js";
|
|
6
|
+
import { type StyledText } from "../lib/styled-text.js";
|
|
7
|
+
import type { ExtmarksController } from "../lib/extmarks.js";
|
|
8
8
|
export type TextareaAction = "move-left" | "move-right" | "move-up" | "move-down" | "select-left" | "select-right" | "select-up" | "select-down" | "line-home" | "line-end" | "select-line-home" | "select-line-end" | "visual-line-home" | "visual-line-end" | "select-visual-line-home" | "select-visual-line-end" | "buffer-home" | "buffer-end" | "select-buffer-home" | "select-buffer-end" | "delete-line" | "delete-to-line-end" | "delete-to-line-start" | "backspace" | "delete" | "newline" | "undo" | "redo" | "word-forward" | "word-backward" | "select-word-forward" | "select-word-backward" | "delete-word-forward" | "delete-word-backward" | "select-all" | "submit";
|
|
9
9
|
export type KeyBinding = BaseKeyBinding<TextareaAction>;
|
|
10
10
|
export interface SubmitEvent {
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { TextareaRenderable } from "../Textarea";
|
|
2
|
-
import { type TestRenderer } from "../../testing/test-renderer";
|
|
3
|
-
import { type TextareaOptions } from "../Textarea";
|
|
1
|
+
import { TextareaRenderable } from "../Textarea.js";
|
|
2
|
+
import { type TestRenderer } from "../../testing/test-renderer.js";
|
|
3
|
+
import { type TextareaOptions } from "../Textarea.js";
|
|
4
|
+
import type { DiffRenderable } from "../Diff.js";
|
|
5
|
+
import type { MockTreeSitterClient } from "../../testing/mock-tree-sitter-client.js";
|
|
6
|
+
import type { ManualClock } from "../../testing/manual-clock.js";
|
|
4
7
|
export declare function createTextareaRenderable(renderer: TestRenderer, renderOnce: () => Promise<void>, options: TextareaOptions): Promise<{
|
|
5
8
|
textarea: TextareaRenderable;
|
|
6
9
|
root: any;
|
|
7
10
|
}>;
|
|
11
|
+
export declare function settleDiffHighlighting(diff: DiffRenderable, client: MockTreeSitterClient, render: () => Promise<void>): Promise<void>;
|
|
12
|
+
export declare function simulateFrames(clock: ManualClock, renderOnce: () => Promise<void>, ms: number, frameInterval?: number): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Renderable, type RenderableOptions } from "../../Renderable";
|
|
2
|
-
import type { OptimizedBuffer } from "../../buffer";
|
|
3
|
-
import type { RenderContext } from "../../types";
|
|
1
|
+
import { Renderable, type RenderableOptions } from "../../Renderable.js";
|
|
2
|
+
import type { OptimizedBuffer } from "../../buffer.js";
|
|
3
|
+
import type { RenderContext } from "../../types.js";
|
|
4
4
|
export interface VRenderableOptions extends RenderableOptions<VRenderable> {
|
|
5
5
|
render?: (this: VRenderable | VRenderableOptions, buffer: OptimizedBuffer, deltaTime: number, renderable: VRenderable) => void;
|
|
6
6
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ASCIIFontRenderable, BoxRenderable, CodeRenderable, InputRenderable, ScrollBoxRenderable, SelectRenderable, TabSelectRenderable, TextRenderable, VRenderable, FrameBufferRenderable, type ASCIIFontOptions, type BoxOptions, type CodeOptions, type TextOptions, type VRenderableOptions, type InputRenderableOptions, type ScrollBoxOptions, type SelectRenderableOptions, type TabSelectRenderableOptions, type FrameBufferOptions } from "
|
|
2
|
-
import { TextNodeRenderable } from "../TextNode";
|
|
3
|
-
import { type VChild } from "./vnode";
|
|
4
|
-
import type { RGBA } from "../../lib/RGBA";
|
|
5
|
-
export declare function Generic(props?: VRenderableOptions, ...children: VChild[]): import("./vnode").ProxiedVNode<typeof VRenderable>;
|
|
6
|
-
export declare function Box(props?: BoxOptions, ...children: VChild[]): import("./vnode").ProxiedVNode<typeof BoxRenderable>;
|
|
1
|
+
import { ASCIIFontRenderable, BoxRenderable, CodeRenderable, InputRenderable, ScrollBoxRenderable, SelectRenderable, TabSelectRenderable, TextRenderable, VRenderable, FrameBufferRenderable, type ASCIIFontOptions, type BoxOptions, type CodeOptions, type TextOptions, type VRenderableOptions, type InputRenderableOptions, type ScrollBoxOptions, type SelectRenderableOptions, type TabSelectRenderableOptions, type FrameBufferOptions } from "..//index.js";
|
|
2
|
+
import { TextNodeRenderable } from "../TextNode.js";
|
|
3
|
+
import { type VChild } from "./vnode.js";
|
|
4
|
+
import type { RGBA } from "../../lib/RGBA.js";
|
|
5
|
+
export declare function Generic(props?: VRenderableOptions, ...children: VChild[]): import("./vnode.js").ProxiedVNode<typeof VRenderable>;
|
|
6
|
+
export declare function Box(props?: BoxOptions, ...children: VChild[]): import("./vnode.js").ProxiedVNode<typeof BoxRenderable>;
|
|
7
7
|
export declare function Text(props?: TextOptions & {
|
|
8
8
|
content?: any;
|
|
9
|
-
}, ...children: VChild[] | TextNodeRenderable[]): import("./vnode").ProxiedVNode<typeof TextRenderable>;
|
|
10
|
-
export declare function ASCIIFont(props?: ASCIIFontOptions, ...children: VChild[]): import("./vnode").ProxiedVNode<typeof ASCIIFontRenderable>;
|
|
11
|
-
export declare function Input(props?: InputRenderableOptions, ...children: VChild[]): import("./vnode").ProxiedVNode<typeof InputRenderable>;
|
|
12
|
-
export declare function Select(props?: SelectRenderableOptions, ...children: VChild[]): import("./vnode").ProxiedVNode<typeof SelectRenderable>;
|
|
13
|
-
export declare function TabSelect(props?: TabSelectRenderableOptions, ...children: VChild[]): import("./vnode").ProxiedVNode<typeof TabSelectRenderable>;
|
|
14
|
-
export declare function FrameBuffer(props: FrameBufferOptions, ...children: VChild[]): import("./vnode").ProxiedVNode<typeof FrameBufferRenderable>;
|
|
15
|
-
export declare function Code(props: CodeOptions, ...children: VChild[]): import("./vnode").ProxiedVNode<typeof CodeRenderable>;
|
|
16
|
-
export declare function ScrollBox(props?: ScrollBoxOptions, ...children: VChild[]): import("./vnode").ProxiedVNode<typeof ScrollBoxRenderable>;
|
|
9
|
+
}, ...children: VChild[] | TextNodeRenderable[]): import("./vnode.js").ProxiedVNode<typeof TextRenderable>;
|
|
10
|
+
export declare function ASCIIFont(props?: ASCIIFontOptions, ...children: VChild[]): import("./vnode.js").ProxiedVNode<typeof ASCIIFontRenderable>;
|
|
11
|
+
export declare function Input(props?: InputRenderableOptions, ...children: VChild[]): import("./vnode.js").ProxiedVNode<typeof InputRenderable>;
|
|
12
|
+
export declare function Select(props?: SelectRenderableOptions, ...children: VChild[]): import("./vnode.js").ProxiedVNode<typeof SelectRenderable>;
|
|
13
|
+
export declare function TabSelect(props?: TabSelectRenderableOptions, ...children: VChild[]): import("./vnode.js").ProxiedVNode<typeof TabSelectRenderable>;
|
|
14
|
+
export declare function FrameBuffer(props: FrameBufferOptions, ...children: VChild[]): import("./vnode.js").ProxiedVNode<typeof FrameBufferRenderable>;
|
|
15
|
+
export declare function Code(props: CodeOptions, ...children: VChild[]): import("./vnode.js").ProxiedVNode<typeof CodeRenderable>;
|
|
16
|
+
export declare function ScrollBox(props?: ScrollBoxOptions, ...children: VChild[]): import("./vnode.js").ProxiedVNode<typeof ScrollBoxRenderable>;
|
|
17
17
|
export declare const vstyles: {
|
|
18
18
|
bold: (...children: (string | TextNodeRenderable)[]) => TextNodeRenderable;
|
|
19
19
|
italic: (...children: (string | TextNodeRenderable)[]) => TextNodeRenderable;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Renderable, type RenderableOptions } from "../../Renderable";
|
|
2
|
-
import type { RenderContext } from "../../types";
|
|
1
|
+
import { Renderable, type RenderableOptions } from "../../Renderable.js";
|
|
2
|
+
import type { RenderContext } from "../../types.js";
|
|
3
3
|
export type VChild = VNode | Renderable | VChild[] | null | undefined | false;
|
|
4
4
|
export interface PendingCall {
|
|
5
5
|
method: string;
|