@opentui/solid 0.0.0-20250924-d06b64fa → 0.0.0-20250924-9d06e8e4

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/index.js CHANGED
@@ -17,7 +17,10 @@ import {
17
17
  } from "@opentui/core";
18
18
 
19
19
  // src/elements/hooks.ts
20
- import { engine, Timeline } from "@opentui/core";
20
+ import {
21
+ engine,
22
+ Timeline
23
+ } from "@opentui/core";
21
24
  import { createContext, createSignal, onCleanup, onMount, useContext } from "solid-js";
22
25
  var RendererContext = createContext();
23
26
  var useRenderer = () => {
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.0.0-20250924-d06b64fa",
7
+ "version": "0.0.0-20250924-9d06e8e4",
8
8
  "description": "SolidJS renderer for OpenTUI",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@babel/core": "7.28.0",
29
29
  "@babel/preset-typescript": "7.27.1",
30
- "@opentui/core": "0.0.0-20250924-d06b64fa",
30
+ "@opentui/core": "0.0.0-20250924-9d06e8e4",
31
31
  "babel-plugin-module-resolver": "5.0.2",
32
32
  "babel-preset-solid": "1.9.9",
33
33
  "s-js": "^0.4.9"
@@ -1,4 +1,4 @@
1
- import { Selection, Timeline, type CliRenderer, type ParsedKey, type TimelineOptions } from "@opentui/core";
1
+ import { PasteEvent, Selection, Timeline, type CliRenderer, type KeyEvent, type TimelineOptions } from "@opentui/core";
2
2
  export declare const RendererContext: import("solid-js").Context<CliRenderer | undefined>;
3
3
  export declare const useRenderer: () => CliRenderer;
4
4
  export declare const onResize: (callback: (width: number, height: number) => void) => void;
@@ -6,11 +6,11 @@ export declare const useTerminalDimensions: () => import("solid-js").Accessor<{
6
6
  width: number;
7
7
  height: number;
8
8
  }>;
9
- export declare const useKeyboard: (callback: (key: ParsedKey) => void) => void;
10
- export declare const usePaste: (callback: (text: string) => void) => void;
9
+ export declare const useKeyboard: (callback: (key: KeyEvent) => void) => void;
10
+ export declare const usePaste: (callback: (event: PasteEvent) => void) => void;
11
11
  /**
12
12
  * @deprecated renamed to useKeyboard
13
13
  */
14
- export declare const useKeyHandler: (callback: (key: ParsedKey) => void) => void;
14
+ export declare const useKeyHandler: (callback: (key: KeyEvent) => void) => void;
15
15
  export declare const useSelectionHandler: (callback: (selection: Selection) => void) => void;
16
16
  export declare const useTimeline: (options?: TimelineOptions) => Timeline;