@opentui/core 0.1.17 → 0.1.19-snapshot4-010c3be8

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.17",
7
+ "version": "0.1.19-snapshot4-010c3be8",
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.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"
41
+ "@opentui/core-darwin-x64": "0.1.19-snapshot4-010c3be8",
42
+ "@opentui/core-darwin-arm64": "0.1.19-snapshot4-010c3be8",
43
+ "@opentui/core-linux-x64": "0.1.19-snapshot4-010c3be8",
44
+ "@opentui/core-linux-arm64": "0.1.19-snapshot4-010c3be8",
45
+ "@opentui/core-win32-x64": "0.1.19-snapshot4-010c3be8",
46
+ "@opentui/core-win32-arm64": "0.1.19-snapshot4-010c3be8"
47
47
  }
48
48
  }
@@ -52,6 +52,7 @@ export declare class InputRenderable extends Renderable {
52
52
  get value(): string;
53
53
  set value(value: string);
54
54
  set placeholder(placeholder: string);
55
+ get cursorPosition(): number;
55
56
  set cursorPosition(position: number);
56
57
  private insertText;
57
58
  private deleteCharacter;
@@ -66,5 +67,4 @@ export declare class InputRenderable extends Renderable {
66
67
  updateFromLayout(): void;
67
68
  protected onResize(width: number, height: number): void;
68
69
  protected onRemove(): void;
69
- protected destroySelf(): void;
70
70
  }
@@ -6,8 +6,9 @@ export interface PendingCall {
6
6
  args: any[];
7
7
  isProperty?: boolean;
8
8
  }
9
+ declare const BrandedVNode: unique symbol;
9
10
  export interface VNode<P = any, C = VChild[]> {
10
- __isVNode: true;
11
+ [BrandedVNode]: true;
11
12
  type: Construct<P>;
12
13
  props?: P;
13
14
  children?: C;
@@ -26,7 +27,7 @@ export declare function h<TCtor extends RenderableConstructor<any>>(type: TCtor,
26
27
  export declare function h<P>(type: FunctionalConstruct<P>, props?: P, ...children: VChild[]): VNode<P>;
27
28
  export declare function h<P>(type: Construct<P>, props?: P, ...children: VChild[]): VNode<P> | ProxiedVNode<any>;
28
29
  export declare function isVNode(node: any): node is VNode;
29
- export declare function ensureRenderable(ctx: RenderContext, node: Renderable | VNode<any, any[]>): Renderable;
30
+ export declare function maybeMakeRenderable(ctx: RenderContext, node: Renderable | VNode<any, any[]>): Renderable | null;
30
31
  export declare function wrapWithDelegates<T extends InstanceType<RenderableConstructor>>(instance: T, delegateMap: Record<string, string> | undefined): T;
31
32
  export type InstantiateFn<NodeType extends VNode | Renderable> = Renderable & {
32
33
  __node?: NodeType;