@opentuah/react 0.1.77 → 0.1.78

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.
@@ -17,10 +17,10 @@ import {
17
17
  TabSelectRenderable,
18
18
  TextareaRenderable,
19
19
  TextRenderable
20
- } from "@opentui/core";
20
+ } from "@opentuah/core";
21
21
 
22
22
  // src/components/text.ts
23
- import { TextAttributes, TextNodeRenderable } from "@opentui/core";
23
+ import { TextAttributes, TextNodeRenderable } from "@opentuah/core";
24
24
  var textNodeKeys = ["span", "b", "strong", "i", "em", "u", "br", "a"];
25
25
 
26
26
  class SpanRenderable extends TextNodeRenderable {
@@ -125,12 +125,12 @@ var useAppContext = () => {
125
125
  };
126
126
 
127
127
  // src/reconciler/renderer.ts
128
- import { CliRenderEvents, engine } from "@opentui/core";
128
+ import { CliRenderEvents, engine } from "@opentuah/core";
129
129
  import React2 from "react";
130
130
 
131
131
  // src/components/error-boundary.tsx
132
132
  import React from "react";
133
- import { jsxDEV } from "@opentui/react/jsx-dev-runtime";
133
+ import { jsxDEV } from "@opentuah/react/jsx-dev-runtime";
134
134
 
135
135
  class ErrorBoundary extends React.Component {
136
136
  constructor(props) {
@@ -159,11 +159,11 @@ import ReactReconciler from "react-reconciler";
159
159
  import { ConcurrentRoot } from "react-reconciler/constants";
160
160
 
161
161
  // src/reconciler/host-config.ts
162
- import { TextNodeRenderable as TextNodeRenderable2 } from "@opentui/core";
162
+ import { TextNodeRenderable as TextNodeRenderable2 } from "@opentuah/core";
163
163
  // package.json
164
164
  var package_default = {
165
165
  name: "@opentuah/react",
166
- version: "0.1.77",
166
+ version: "0.1.78",
167
167
  description: "React renderer for building terminal user interfaces using OpenTUI core",
168
168
  license: "MIT",
169
169
  repository: {
@@ -253,7 +253,7 @@ import {
253
253
  SelectRenderableEvents,
254
254
  TabSelectRenderable as TabSelectRenderable2,
255
255
  TabSelectRenderableEvents
256
- } from "@opentui/core";
256
+ } from "@opentuah/core";
257
257
  function initEventListeners(instance, eventName, listener, previousListener) {
258
258
  if (previousListener) {
259
259
  instance.off(eventName, previousListener);
@@ -511,7 +511,7 @@ var hostConfig = {
511
511
  getInstanceFromScope() {
512
512
  return null;
513
513
  },
514
- rendererPackageName: "@opentui/react",
514
+ rendererPackageName: "@opentuah/react",
515
515
  rendererVersion: package_default.version
516
516
  };
517
517
 
package/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  flushSync,
10
10
  getComponentCatalogue,
11
11
  useAppContext
12
- } from "./chunk-7627c4s7.js";
12
+ } from "./chunk-zr0nkmwe.js";
13
13
  import"./chunk-eecw9x2f.js";
14
14
  // src/hooks/use-keyboard.ts
15
15
  import { useEffect } from "react";
@@ -80,7 +80,7 @@ var useTerminalDimensions = () => {
80
80
  return dimensions;
81
81
  };
82
82
  // src/hooks/use-timeline.ts
83
- import { engine, Timeline } from "@opentui/core";
83
+ import { engine, Timeline } from "@opentuah/core";
84
84
  import { useEffect as useEffect3 } from "react";
85
85
  var useTimeline = (options = {}) => {
86
86
  const timeline = new Timeline(options);
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.77",
7
+ "version": "0.1.78",
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
- "@opentuah/core": "0.1.77",
43
+ "@opentuah/core": "0.1.78",
44
44
  "react-reconciler": "^0.32.0"
45
45
  },
46
46
  "devDependencies": {
@@ -1,4 +1,4 @@
1
- import type { CliRenderer, KeyHandler } from "@opentui/core";
1
+ import type { CliRenderer, KeyHandler } from "@opentuah/core";
2
2
  interface AppContext {
3
3
  keyHandler: KeyHandler | null;
4
4
  renderer: CliRenderer | null;
@@ -1,4 +1,4 @@
1
- import { ASCIIFontRenderable, BoxRenderable, CodeRenderable, DiffRenderable, InputRenderable, LineNumberRenderable, MarkdownRenderable, ScrollBoxRenderable, SelectRenderable, TabSelectRenderable, TextareaRenderable, TextRenderable } from "@opentui/core";
1
+ import { ASCIIFontRenderable, BoxRenderable, CodeRenderable, DiffRenderable, InputRenderable, LineNumberRenderable, MarkdownRenderable, ScrollBoxRenderable, SelectRenderable, TabSelectRenderable, TextareaRenderable, TextRenderable } from "@opentuah/core";
2
2
  import type { RenderableConstructor } from "../types/components";
3
3
  import { BoldSpanRenderable, ItalicSpanRenderable, LineBreakRenderable, LinkRenderable, SpanRenderable, UnderlineSpanRenderable } from "./text";
4
4
  export declare const baseComponents: {
@@ -1,4 +1,4 @@
1
- import { TextNodeRenderable, type RenderContext, type TextNodeOptions } from "@opentui/core";
1
+ import { TextNodeRenderable, type RenderContext, type TextNodeOptions } from "@opentuah/core";
2
2
  export declare const textNodeKeys: readonly ["span", "b", "strong", "i", "em", "u", "br", "a"];
3
3
  export type TextNodeKey = (typeof textNodeKeys)[number];
4
4
  export declare class SpanRenderable extends TextNodeRenderable {
@@ -1,4 +1,4 @@
1
- import type { KeyEvent } from "@opentui/core";
1
+ import type { KeyEvent } from "@opentuah/core";
2
2
  export interface UseKeyboardOptions {
3
3
  /** Include release events - callback receives events with eventType: "release" */
4
4
  release?: boolean;
@@ -1,2 +1,2 @@
1
- import { Timeline, type TimelineOptions } from "@opentui/core";
1
+ import { Timeline, type TimelineOptions } from "@opentuah/core";
2
2
  export declare const useTimeline: (options?: TimelineOptions) => Timeline;
@@ -1,5 +1,5 @@
1
- import type { RootRenderable } from "@opentui/core";
1
+ import type { RootRenderable } from "@opentuah/core";
2
2
  import React from "react";
3
3
  import ReactReconciler from "react-reconciler";
4
- export declare const reconciler: ReactReconciler.Reconciler<RootRenderable, import("@opentui/core").BaseRenderable, import("@opentui/core").TextNodeRenderable, unknown, unknown, import("@opentui/core").BaseRenderable>;
4
+ export declare const reconciler: ReactReconciler.Reconciler<RootRenderable, import("@opentuah/core").BaseRenderable, import("@opentuah/core").TextNodeRenderable, unknown, unknown, import("@opentuah/core").BaseRenderable>;
5
5
  export declare function _render(element: React.ReactNode, root: RootRenderable): any;
@@ -1,4 +1,4 @@
1
- import { CliRenderer } from "@opentui/core";
1
+ import { CliRenderer } from "@opentuah/core";
2
2
  import { type ReactNode } from "react";
3
3
  declare const flushSync: {
4
4
  (): void;
@@ -1,9 +1,9 @@
1
- import { type TestRendererOptions } from "@opentui/core/testing";
1
+ import { type TestRendererOptions } from "@opentuah/core/testing";
2
2
  import { type ReactNode } from "react";
3
3
  export declare function testRender(node: ReactNode, testRendererOptions: TestRendererOptions): Promise<{
4
- renderer: import("@opentui/core/testing").TestRenderer;
5
- mockInput: import("@opentui/core/testing").MockInput;
6
- mockMouse: import("@opentui/core/testing").MockMouse;
4
+ renderer: import("@opentuah/core/testing").TestRenderer;
5
+ mockInput: import("@opentuah/core/testing").MockInput;
6
+ mockMouse: import("@opentuah/core/testing").MockMouse;
7
7
  renderOnce: () => Promise<void>;
8
8
  captureCharFrame: () => string;
9
9
  captureSpans: () => import("node_modules/@opentuah/core/dist").CapturedFrame;
@@ -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 } from "@opentui/core";
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 "@opentuah/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}`;
@@ -1,4 +1,4 @@
1
- import type { BaseRenderable, RootRenderable, TextNodeRenderable } from "@opentui/core";
1
+ import type { BaseRenderable, RootRenderable, TextNodeRenderable } from "@opentuah/core";
2
2
  import { baseComponents } from "../components";
3
3
  export type Type = keyof typeof baseComponents;
4
4
  export type Props = Record<string, any>;
package/test-utils.js CHANGED
@@ -1,11 +1,11 @@
1
1
  // @bun
2
2
  import {
3
3
  createRoot
4
- } from "./chunk-7627c4s7.js";
4
+ } from "./chunk-zr0nkmwe.js";
5
5
  import"./chunk-eecw9x2f.js";
6
6
 
7
7
  // src/test-utils.ts
8
- import { createTestRenderer } from "@opentui/core/testing";
8
+ import { createTestRenderer } from "@opentuah/core/testing";
9
9
  import { act } from "react";
10
10
  function setIsReactActEnvironment(isReactActEnvironment) {
11
11
  globalThis.IS_REACT_ACT_ENVIRONMENT = isReactActEnvironment;