restty 0.1.28 → 0.1.30
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/dist/chunk-w0c4b651.js +117196 -0
- package/dist/internal.js +1 -1
- package/dist/restty.js +1 -1
- package/dist/runtime/create-runtime/runtime-app-api.d.ts +2 -0
- package/dist/runtime/max-scrollback.d.ts +9 -0
- package/dist/runtime/types.d.ts +10 -0
- package/dist/wasm/embedded.d.ts +1 -1
- package/dist/xterm.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-8za9xm0g.js +0 -61644
package/dist/internal.js
CHANGED
package/dist/restty.js
CHANGED
|
@@ -68,6 +68,8 @@ type CreateRuntimeAppApiOptions = {
|
|
|
68
68
|
runBeforeRenderOutputHook: (text: string, source: string) => string | null;
|
|
69
69
|
getSelectionText: () => string;
|
|
70
70
|
initialPreferredRenderer: PreferredRenderer;
|
|
71
|
+
maxScrollbackBytes?: number;
|
|
72
|
+
maxScrollback?: number;
|
|
71
73
|
CURSOR_BLINK_MS: number;
|
|
72
74
|
RESIZE_ACTIVE_MS: number;
|
|
73
75
|
TARGET_RENDER_FPS: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const DEFAULT_MAX_SCROLLBACK_BYTES = 10000000;
|
|
2
|
+
export declare const MAX_MAX_SCROLLBACK_BYTES = 256000000;
|
|
3
|
+
type MaxScrollbackOptions = {
|
|
4
|
+
maxScrollbackBytes?: number;
|
|
5
|
+
maxScrollback?: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function normalizeMaxScrollbackBytes(value: number | undefined): number;
|
|
8
|
+
export declare function resolveMaxScrollbackBytes(options: MaxScrollbackOptions): number;
|
|
9
|
+
export {};
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -256,6 +256,16 @@ export type ResttyAppOptions = {
|
|
|
256
256
|
beforeRenderOutput?: (payload: ResttyAppInputPayload) => string | null | void;
|
|
257
257
|
/** Optional render-stage shader chain. */
|
|
258
258
|
shaderStages?: ResttyShaderStage[];
|
|
259
|
+
/**
|
|
260
|
+
* Maximum scrollback buffer size in bytes passed to the WASM terminal.
|
|
261
|
+
* Default is 10_000_000 (10MB).
|
|
262
|
+
*/
|
|
263
|
+
maxScrollbackBytes?: number;
|
|
264
|
+
/**
|
|
265
|
+
* Deprecated alias for maxScrollbackBytes.
|
|
266
|
+
* If both are set, maxScrollbackBytes takes precedence.
|
|
267
|
+
*/
|
|
268
|
+
maxScrollback?: number;
|
|
259
269
|
};
|
|
260
270
|
/**
|
|
261
271
|
* Public API for a terminal app instance.
|