@cascadetui/core 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
7
- "version": "0.1.11",
7
+ "version": "0.1.13",
8
8
  "description": "Cascade is a TypeScript library on a native Zig core for building terminal user interfaces (TUIs)",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -57,11 +57,11 @@
57
57
  "bun-webgpu": "0.1.5",
58
58
  "planck": "^1.4.2",
59
59
  "three": "0.177.0",
60
- "@cascadetui/core-win32-x64": "0.1.11",
61
- "@cascadetui/core-win32-arm64": "0.1.11",
62
- "@cascadetui/core-darwin-x64": "0.1.11",
63
- "@cascadetui/core-darwin-arm64": "0.1.11",
64
- "@cascadetui/core-linux-x64": "0.1.11",
65
- "@cascadetui/core-linux-arm64": "0.1.11"
60
+ "@cascadetui/core-win32-x64": "0.1.13",
61
+ "@cascadetui/core-win32-arm64": "0.1.13",
62
+ "@cascadetui/core-darwin-x64": "0.1.13",
63
+ "@cascadetui/core-darwin-arm64": "0.1.13",
64
+ "@cascadetui/core-linux-x64": "0.1.13",
65
+ "@cascadetui/core-linux-arm64": "0.1.13"
66
66
  }
67
67
  }
package/renderer.d.ts CHANGED
@@ -245,6 +245,7 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
245
245
  private _cachedPalette;
246
246
  private _paletteDetectionPromise;
247
247
  private _onDestroy?;
248
+ private _destroyCallbacks;
248
249
  private _themeMode;
249
250
  private inputHandlers;
250
251
  private prependedInputHandlers;
@@ -396,6 +397,12 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
396
397
  private internalPause;
397
398
  stop(): void;
398
399
  private internalStop;
400
+ /**
401
+ * Register a callback to be called when the renderer is destroyed.
402
+ * Returns an unsubscribe function.
403
+ * If the renderer is already destroyed, the callback is called immediately via queueMicrotask.
404
+ */
405
+ onDestroy(cb: () => void | Promise<void>): () => void;
399
406
  destroy(): void;
400
407
  private finalizeDestroy;
401
408
  /**
package/testing.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  CliRenderer,
5
5
  TreeSitterClient,
6
6
  resolveRenderLib
7
- } from "./index-gv8mtakv.js";
7
+ } from "./index-kfh59ta6.js";
8
8
 
9
9
  // src/testing/test-renderer.ts
10
10
  import { Readable } from "stream";