@opentui/core 0.1.16 → 0.1.17

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.16",
7
+ "version": "0.1.17",
8
8
  "description": "OpenTUI is a TypeScript library for building terminal user interfaces (TUIs)",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -38,11 +38,11 @@
38
38
  "bun-webgpu": "0.1.3",
39
39
  "planck": "^1.4.2",
40
40
  "three": "0.177.0",
41
- "@opentui/core-darwin-x64": "0.1.16",
42
- "@opentui/core-darwin-arm64": "0.1.16",
43
- "@opentui/core-linux-x64": "0.1.16",
44
- "@opentui/core-linux-arm64": "0.1.16",
45
- "@opentui/core-win32-x64": "0.1.16",
46
- "@opentui/core-win32-arm64": "0.1.16"
41
+ "@opentui/core-darwin-x64": "0.1.17",
42
+ "@opentui/core-darwin-arm64": "0.1.17",
43
+ "@opentui/core-linux-x64": "0.1.17",
44
+ "@opentui/core-linux-arm64": "0.1.17",
45
+ "@opentui/core-win32-x64": "0.1.17",
46
+ "@opentui/core-win32-arm64": "0.1.17"
47
47
  }
48
48
  }
package/renderer.d.ts CHANGED
@@ -45,12 +45,15 @@ export declare class MouseEvent {
45
45
  readonly target: Renderable | null;
46
46
  readonly isSelecting?: boolean;
47
47
  private _propagationStopped;
48
+ private _defaultPrevented;
48
49
  get propagationStopped(): boolean;
50
+ get defaultPrevented(): boolean;
49
51
  constructor(target: Renderable | null, attributes: RawMouseEvent & {
50
52
  source?: Renderable;
51
53
  isSelecting?: boolean;
52
54
  });
53
55
  stopPropagation(): void;
56
+ preventDefault(): void;
54
57
  }
55
58
  export declare enum MouseButton {
56
59
  LEFT = 0,
@@ -130,6 +133,7 @@ export declare class CliRenderer extends EventEmitter implements RenderContext {
130
133
  private mouseParser;
131
134
  private sigwinchHandler;
132
135
  private _capabilities;
136
+ private _latestPointer;
133
137
  constructor(lib: RenderLib, rendererPtr: Pointer, stdin: NodeJS.ReadStream, stdout: NodeJS.WriteStream, width: number, height: number, config?: CliRendererConfig);
134
138
  addToHitGrid(x: number, y: number, width: number, height: number, id: number): void;
135
139
  get widthMethod(): WidthMethod;