@opentui/react 0.0.0-20260303-1dd94f99 → 0.0.0-20260307-536c401b
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/{chunk-52w1akpw.js → chunk-dsv5d949.js} +1 -1
- package/index.js +11 -3
- package/package.json +2 -2
- package/src/index.d.ts +1 -0
- package/src/time-to-first-draw.d.ts +12 -0
- package/test-utils.js +1 -1
|
@@ -166,7 +166,7 @@ import { TextNodeRenderable as TextNodeRenderable2 } from "@opentui/core";
|
|
|
166
166
|
// package.json
|
|
167
167
|
var package_default = {
|
|
168
168
|
name: "@opentui/react",
|
|
169
|
-
version: "0.0.0-
|
|
169
|
+
version: "0.0.0-20260307-536c401b",
|
|
170
170
|
description: "React renderer for building terminal user interfaces using OpenTUI core",
|
|
171
171
|
license: "MIT",
|
|
172
172
|
repository: {
|
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getComponentCatalogue,
|
|
12
12
|
jsxDEV,
|
|
13
13
|
useAppContext
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-dsv5d949.js";
|
|
15
15
|
import"./chunk-2mx7fq49.js";
|
|
16
16
|
// src/hooks/use-keyboard.ts
|
|
17
17
|
import { useEffect } from "react";
|
|
@@ -305,9 +305,16 @@ function Slot(props) {
|
|
|
305
305
|
]
|
|
306
306
|
}, undefined, true, undefined, this);
|
|
307
307
|
}
|
|
308
|
+
// src/time-to-first-draw.tsx
|
|
309
|
+
import { TimeToFirstDrawRenderable } from "@opentui/core";
|
|
310
|
+
import { createElement } from "react";
|
|
311
|
+
extend({ "time-to-first-draw": TimeToFirstDrawRenderable });
|
|
312
|
+
var TimeToFirstDraw = (props) => {
|
|
313
|
+
return createElement("time-to-first-draw", props);
|
|
314
|
+
};
|
|
308
315
|
|
|
309
316
|
// src/index.ts
|
|
310
|
-
import { createElement } from "react";
|
|
317
|
+
import { createElement as createElement2 } from "react";
|
|
311
318
|
export {
|
|
312
319
|
useTimeline,
|
|
313
320
|
useTerminalDimensions,
|
|
@@ -322,9 +329,10 @@ export {
|
|
|
322
329
|
createRoot,
|
|
323
330
|
createReactSlotRegistry,
|
|
324
331
|
createPortal,
|
|
325
|
-
createElement,
|
|
332
|
+
createElement2 as createElement,
|
|
326
333
|
componentCatalogue,
|
|
327
334
|
baseComponents,
|
|
335
|
+
TimeToFirstDraw,
|
|
328
336
|
Slot,
|
|
329
337
|
AppContext
|
|
330
338
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "src/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.0.0-
|
|
7
|
+
"version": "0.0.0-20260307-536c401b",
|
|
8
8
|
"description": "React renderer for building terminal user interfaces using OpenTUI core",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@opentui/core": "0.0.0-
|
|
43
|
+
"@opentui/core": "0.0.0-20260307-536c401b",
|
|
44
44
|
"react-reconciler": "^0.32.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
package/src/index.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TimeToFirstDrawRenderable } from "@opentui/core";
|
|
2
|
+
import type { ExtendedComponentProps } from "./types/components";
|
|
3
|
+
declare module "@opentui/react" {
|
|
4
|
+
interface OpenTUIComponents {
|
|
5
|
+
"time-to-first-draw": typeof TimeToFirstDrawRenderable;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export type TimeToFirstDrawProps = ExtendedComponentProps<typeof TimeToFirstDrawRenderable>;
|
|
9
|
+
export declare const TimeToFirstDraw: (props: TimeToFirstDrawProps) => import("react").ReactElement<import("@opentui/core").TimeToFirstDrawOptions & {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
style?: Partial<Omit<import("@opentui/core").TimeToFirstDrawOptions | undefined, import("@opentui/react").NonStyledProps>> | undefined;
|
|
12
|
+
} & import("@opentui/react").ReactProps<TimeToFirstDrawRenderable>, string | import("react").JSXElementConstructor<any>>;
|