@opentui/react 0.1.75 → 0.1.77

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.
@@ -0,0 +1,4 @@
1
+ // @bun
2
+ var __require = import.meta.require;
3
+
4
+ export { __require };
@@ -1,8 +1,7 @@
1
1
  // @bun
2
2
  import {
3
- __require,
4
- __toESM
5
- } from "./chunk-e11q5a3p.js";
3
+ __require
4
+ } from "./chunk-eecw9x2f.js";
6
5
 
7
6
  // src/components/index.ts
8
7
  import {
@@ -167,7 +166,7 @@ import { TextNodeRenderable as TextNodeRenderable2 } from "@opentui/core";
167
166
  // package.json
168
167
  var package_default = {
169
168
  name: "@opentui/react",
170
- version: "0.1.75",
169
+ version: "0.1.77",
171
170
  description: "React renderer for building terminal user interfaces using OpenTUI core",
172
171
  license: "MIT",
173
172
  repository: {
@@ -523,7 +522,7 @@ var hostConfig = {
523
522
  var reconciler = ReactReconciler(hostConfig);
524
523
  if (process.env["DEV"] === "true") {
525
524
  try {
526
- await import("./chunk-fcedq94e.js");
525
+ await import("./chunk-pm1hna8x.js");
527
526
  } catch (error) {
528
527
  if (error.code === "ERR_MODULE_NOT_FOUND") {
529
528
  console.warn(`
@@ -1,8 +1,7 @@
1
1
  // @bun
2
2
  import {
3
- __require,
4
- __toESM
5
- } from "./chunk-e11q5a3p.js";
3
+ __require
4
+ } from "./chunk-eecw9x2f.js";
6
5
 
7
6
  // src/reconciler/devtools-polyfill.ts
8
7
  var g = globalThis;
package/index.js CHANGED
@@ -9,8 +9,8 @@ import {
9
9
  flushSync,
10
10
  getComponentCatalogue,
11
11
  useAppContext
12
- } from "./chunk-j5j59zk3.js";
13
- import"./chunk-e11q5a3p.js";
12
+ } from "./chunk-f2my2j6f.js";
13
+ import"./chunk-eecw9x2f.js";
14
14
  // src/hooks/use-keyboard.ts
15
15
  import { useEffect } from "react";
16
16
 
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.75",
7
+ "version": "0.1.77",
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.75",
43
+ "@opentui/core": "0.1.77",
44
44
  "react-reconciler": "^0.32.0"
45
45
  },
46
46
  "devDependencies": {
@@ -35,7 +35,9 @@ export type LinkProps = SpanProps & {
35
35
  href: string;
36
36
  };
37
37
  export type LineBreakProps = Pick<SpanProps, "id">;
38
- export type BoxProps = ComponentProps<ContainerProps<BoxOptions>, BoxRenderable>;
38
+ export type BoxProps = ComponentProps<ContainerProps<BoxOptions>, BoxRenderable> & {
39
+ focused?: boolean;
40
+ };
39
41
  export type InputProps = ComponentProps<InputRenderableOptions, InputRenderable> & {
40
42
  focused?: boolean;
41
43
  onInput?: (value: string) => void;
package/test-utils.js CHANGED
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  createRoot
4
- } from "./chunk-j5j59zk3.js";
5
- import"./chunk-e11q5a3p.js";
4
+ } from "./chunk-f2my2j6f.js";
5
+ import"./chunk-eecw9x2f.js";
6
6
 
7
7
  // src/test-utils.ts
8
8
  import { createTestRenderer } from "@opentui/core/testing";
package/chunk-e11q5a3p.js DELETED
@@ -1,20 +0,0 @@
1
- // @bun
2
- var __create = Object.create;
3
- var __getProtoOf = Object.getPrototypeOf;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __toESM = (mod, isNodeMode, target) => {
8
- target = mod != null ? __create(__getProtoOf(mod)) : {};
9
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
- for (let key of __getOwnPropNames(mod))
11
- if (!__hasOwnProp.call(to, key))
12
- __defProp(to, key, {
13
- get: () => mod[key],
14
- enumerable: true
15
- });
16
- return to;
17
- };
18
- var __require = import.meta.require;
19
-
20
- export { __toESM, __require };