@opentui/react 0.1.86 → 0.1.87
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-55jh4xgn.js → chunk-6x3h6qt2.js} +1 -1
- package/index.js +12 -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.1.
|
|
169
|
+
version: "0.1.87",
|
|
170
170
|
description: "React renderer for building terminal user interfaces using OpenTUI core",
|
|
171
171
|
license: "MIT",
|
|
172
172
|
repository: {
|
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
flushSync,
|
|
10
10
|
getComponentCatalogue,
|
|
11
11
|
useAppContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6x3h6qt2.js";
|
|
13
13
|
import"./chunk-2mx7fq49.js";
|
|
14
14
|
// src/hooks/use-keyboard.ts
|
|
15
15
|
import { useEffect } from "react";
|
|
@@ -96,8 +96,16 @@ var useTimeline = (options = {}) => {
|
|
|
96
96
|
}, []);
|
|
97
97
|
return timeline;
|
|
98
98
|
};
|
|
99
|
-
// src/
|
|
99
|
+
// src/time-to-first-draw.tsx
|
|
100
|
+
import { TimeToFirstDrawRenderable } from "@opentui/core";
|
|
100
101
|
import { createElement } from "react";
|
|
102
|
+
extend({ "time-to-first-draw": TimeToFirstDrawRenderable });
|
|
103
|
+
var TimeToFirstDraw = (props) => {
|
|
104
|
+
return createElement("time-to-first-draw", props);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// src/index.ts
|
|
108
|
+
import { createElement as createElement2 } from "react";
|
|
101
109
|
export {
|
|
102
110
|
useTimeline,
|
|
103
111
|
useTerminalDimensions,
|
|
@@ -110,8 +118,9 @@ export {
|
|
|
110
118
|
extend,
|
|
111
119
|
createRoot,
|
|
112
120
|
createPortal,
|
|
113
|
-
createElement,
|
|
121
|
+
createElement2 as createElement,
|
|
114
122
|
componentCatalogue,
|
|
115
123
|
baseComponents,
|
|
124
|
+
TimeToFirstDraw,
|
|
116
125
|
AppContext
|
|
117
126
|
};
|
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.1.
|
|
7
|
+
"version": "0.1.87",
|
|
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.1.
|
|
43
|
+
"@opentui/core": "0.1.87",
|
|
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>>;
|