@opentui/react 0.0.0-20260731-8e554196 → 0.0.0-20260803-1395a054

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.
@@ -161,14 +161,14 @@ class ErrorBoundary extends React.Component {
161
161
 
162
162
  // src/reconciler/reconciler.ts
163
163
  import ReactReconciler from "react-reconciler";
164
- import { ConcurrentRoot } from "react-reconciler/constants";
164
+ import { ConcurrentRoot } from "react-reconciler/constants.js";
165
165
 
166
166
  // src/reconciler/host-config.ts
167
- import { TextNodeRenderable as TextNodeRenderable2 } from "@opentui/core";
167
+ import { ImageRenderable as ImageRenderable2, TextNodeRenderable as TextNodeRenderable2 } from "@opentui/core";
168
168
  // package.json
169
169
  var package_default = {
170
170
  name: "@opentui/react",
171
- version: "0.0.0-20260731-8e554196",
171
+ version: "0.0.0-20260803-1395a054",
172
172
  description: "React renderer for building terminal user interfaces using OpenTUI core",
173
173
  license: "MIT",
174
174
  repository: {
@@ -246,7 +246,7 @@ var package_default = {
246
246
 
247
247
  // src/reconciler/host-config.ts
248
248
  import { createContext as createContext2 } from "react";
249
- import { DefaultEventPriority, NoEventPriority } from "react-reconciler/constants";
249
+ import { DefaultEventPriority, NoEventPriority } from "react-reconciler/constants.js";
250
250
 
251
251
  // src/utils/id.ts
252
252
  var idCounter = new Map;
@@ -378,6 +378,11 @@ function updateProperties(instance, type, oldProps, newProps) {
378
378
 
379
379
  // src/reconciler/host-config.ts
380
380
  var currentUpdatePriority = NoEventPriority;
381
+ function initialInstanceProps(type, props) {
382
+ if (type !== "image" || props.source === undefined)
383
+ return props;
384
+ return { ...props, source: undefined };
385
+ }
381
386
  var hostConfig = {
382
387
  supportsMutation: true,
383
388
  supportsPersistence: false,
@@ -395,7 +400,7 @@ var hostConfig = {
395
400
  }
396
401
  return new components[type](rootContainerInstance.ctx, {
397
402
  id,
398
- ...props
403
+ ...initialInstanceProps(type, props)
399
404
  });
400
405
  },
401
406
  appendChild(parent, child) {
@@ -446,10 +451,13 @@ var hostConfig = {
446
451
  return true;
447
452
  },
448
453
  finalizeInitialChildren(instance, type, props, rootContainerInstance, hostContext) {
449
- setInitialProperties(instance, type, props);
450
- return false;
454
+ setInitialProperties(instance, type, initialInstanceProps(type, props));
455
+ return type === "image" && props.source !== undefined;
456
+ },
457
+ commitMount(instance, type, props, internalInstanceHandle) {
458
+ if (instance instanceof ImageRenderable2)
459
+ instance.source = props.source;
451
460
  },
452
- commitMount(instance, type, props, internalInstanceHandle) {},
453
461
  commitUpdate(instance, type, oldProps, newProps, internalInstanceHandle) {
454
462
  updateProperties(instance, type, oldProps, newProps);
455
463
  },
package/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  getComponentCatalogue,
12
12
  jsxDEV,
13
13
  useAppContext
14
- } from "./chunk-nef2z2k1.js";
14
+ } from "./chunk-p0edd1ye.js";
15
15
  import"./chunk-2mx7fq49.js";
16
16
  // src/hooks/use-blur.ts
17
17
  import { useEffect } from "react";
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-20260731-8e554196",
7
+ "version": "0.0.0-20260803-1395a054",
8
8
  "description": "React renderer for building terminal user interfaces using OpenTUI core",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -52,7 +52,7 @@
52
52
  }
53
53
  },
54
54
  "dependencies": {
55
- "@opentui/core": "0.0.0-20260731-8e554196",
55
+ "@opentui/core": "0.0.0-20260803-1395a054",
56
56
  "react-reconciler": "^0.33.0"
57
57
  },
58
58
  "devDependencies": {
package/test-utils.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  createRoot
4
- } from "./chunk-nef2z2k1.js";
4
+ } from "./chunk-p0edd1ye.js";
5
5
  import"./chunk-2mx7fq49.js";
6
6
 
7
7
  // src/test-utils.ts