@opentui/react 0.0.0-20260423-76a94f40 → 0.0.0-20260423-2b1a60f3
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.
|
@@ -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-20260423-
|
|
169
|
+
version: "0.0.0-20260423-2b1a60f3",
|
|
170
170
|
description: "React renderer for building terminal user interfaces using OpenTUI core",
|
|
171
171
|
license: "MIT",
|
|
172
172
|
repository: {
|
|
@@ -208,7 +208,6 @@ var package_default = {
|
|
|
208
208
|
test: "bun test"
|
|
209
209
|
},
|
|
210
210
|
devDependencies: {
|
|
211
|
-
"@opentui/keymap": "workspace:*",
|
|
212
211
|
"@types/bun": "latest",
|
|
213
212
|
"@types/node": "^24.0.0",
|
|
214
213
|
"@types/react": "^19.0.0",
|
|
@@ -261,8 +260,7 @@ import {
|
|
|
261
260
|
SelectRenderable as SelectRenderable2,
|
|
262
261
|
SelectRenderableEvents,
|
|
263
262
|
TabSelectRenderable as TabSelectRenderable2,
|
|
264
|
-
TabSelectRenderableEvents
|
|
265
|
-
TextareaRenderable as TextareaRenderable2
|
|
263
|
+
TabSelectRenderableEvents
|
|
266
264
|
} from "@opentui/core";
|
|
267
265
|
function initEventListeners(instance, eventName, listener, previousListener) {
|
|
268
266
|
if (previousListener) {
|
|
@@ -313,8 +311,6 @@ function setProperty(instance, type, propKey, propValue, oldPropValue) {
|
|
|
313
311
|
case "onSubmit":
|
|
314
312
|
if (instance instanceof InputRenderable2) {
|
|
315
313
|
initEventListeners(instance, InputRenderableEvents.ENTER, propValue, oldPropValue);
|
|
316
|
-
} else if (instance instanceof TextareaRenderable2) {
|
|
317
|
-
instance.onSubmit = propValue;
|
|
318
314
|
}
|
|
319
315
|
break;
|
|
320
316
|
case "onSelect":
|
package/index.js
CHANGED
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-20260423-
|
|
7
|
+
"version": "0.0.0-20260423-2b1a60f3",
|
|
8
8
|
"description": "React renderer for building terminal user interfaces using OpenTUI core",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
@@ -44,11 +44,10 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@opentui/core": "0.0.0-20260423-
|
|
47
|
+
"@opentui/core": "0.0.0-20260423-2b1a60f3",
|
|
48
48
|
"react-reconciler": "^0.32.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@opentui/keymap": "workspace:*",
|
|
52
51
|
"@types/bun": "latest",
|
|
53
52
|
"@types/node": "^24.0.0",
|
|
54
53
|
"@types/react": "^19.0.0",
|
|
@@ -4,7 +4,7 @@ import { createRuntimePlugin, type RuntimeModuleEntry } from "@opentui/core/runt
|
|
|
4
4
|
import * as reactRuntime from "react"
|
|
5
5
|
import * as reactJsxRuntime from "react/jsx-runtime"
|
|
6
6
|
import * as reactJsxDevRuntime from "react/jsx-dev-runtime"
|
|
7
|
-
import * as opentuiReactRuntime from "../index.js"
|
|
7
|
+
import * as opentuiReactRuntime from "../src/index.js"
|
|
8
8
|
|
|
9
9
|
const runtimePluginSupportInstalledKey = "__opentuiReactRuntimePluginSupportInstalled__"
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ASCIIFontOptions, ASCIIFontRenderable, BaseRenderable, BoxOptions, BoxRenderable, CodeOptions, CodeRenderable, DiffRenderable, DiffRenderableOptions, InputRenderable, InputRenderableOptions, LineNumberOptions, LineNumberRenderable, MarkdownOptions, MarkdownRenderable, RenderableOptions, RenderContext, ScrollBoxOptions, ScrollBoxRenderable, SelectOption, SelectRenderable, SelectRenderableOptions, TabSelectOption, TabSelectRenderable, TabSelectRenderableOptions, TextareaOptions, TextareaRenderable, TextNodeOptions, TextNodeRenderable, TextOptions, TextRenderable
|
|
1
|
+
import type { ASCIIFontOptions, ASCIIFontRenderable, BaseRenderable, BoxOptions, BoxRenderable, CodeOptions, CodeRenderable, DiffRenderable, DiffRenderableOptions, InputRenderable, InputRenderableOptions, LineNumberOptions, LineNumberRenderable, MarkdownOptions, MarkdownRenderable, RenderableOptions, RenderContext, ScrollBoxOptions, ScrollBoxRenderable, SelectOption, SelectRenderable, SelectRenderableOptions, TabSelectOption, TabSelectRenderable, TabSelectRenderableOptions, TextareaOptions, TextareaRenderable, TextNodeOptions, TextNodeRenderable, TextOptions, TextRenderable } from "@opentui/core";
|
|
2
2
|
import type React from "react";
|
|
3
3
|
/** Properties that should not be included in the style prop */
|
|
4
4
|
export type NonStyledProps = "id" | "buffered" | "live" | "enableLayout" | "selectable" | "renderAfter" | "renderBefore" | `on${string}`;
|
|
@@ -46,10 +46,6 @@ export type InputProps = ComponentProps<InputRenderableOptions, InputRenderable>
|
|
|
46
46
|
};
|
|
47
47
|
export type TextareaProps = ComponentProps<TextareaOptions, TextareaRenderable> & {
|
|
48
48
|
focused?: boolean;
|
|
49
|
-
onSubmit?: () => void;
|
|
50
|
-
onContentChange?: (event: ContentChangeEvent) => void;
|
|
51
|
-
onCursorChange?: (event: CursorChangeEvent) => void;
|
|
52
|
-
onKeyDown?: (event: KeyEvent) => void;
|
|
53
49
|
};
|
|
54
50
|
export type CodeProps = ComponentProps<CodeOptions, CodeRenderable>;
|
|
55
51
|
export type MarkdownProps = ComponentProps<MarkdownOptions, MarkdownRenderable>;
|
package/test-utils.js
CHANGED
package/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./src/index.js";
|