@runtypelabs/ink-components 0.3.5 → 0.3.7

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -5
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import * as react from 'react';
3
2
  import { ComponentProps, ReactNode } from 'react';
4
3
  import InkSpinner from 'ink-spinner';
@@ -9,14 +8,14 @@ interface SpinnerProps {
9
8
  color?: string;
10
9
  type?: InkSpinnerType;
11
10
  }
12
- declare function Spinner({ label, color, type, }: SpinnerProps): react_jsx_runtime.JSX.Element;
11
+ declare function Spinner({ label, color, type, }: SpinnerProps): react.JSX.Element;
13
12
 
14
13
  interface StatusBarProps {
15
14
  left?: ReactNode;
16
15
  center?: string;
17
16
  right?: string;
18
17
  }
19
- declare function StatusBar({ left, center, right }: StatusBarProps): react_jsx_runtime.JSX.Element;
18
+ declare function StatusBar({ left, center, right }: StatusBarProps): react.JSX.Element;
20
19
 
21
20
  interface StreamOutputProps {
22
21
  content: string;
@@ -31,13 +30,13 @@ interface StreamOutputProps {
31
30
  * Uses the module-level `marked` + `marked-terminal` configuration.
32
31
  */
33
32
  declare function renderMarkdownToTerminal(content: string): string;
34
- declare const StreamOutput: react.MemoExoticComponent<({ content, isStreaming, enableMarkdown, maxVisibleLines, scrollOffset, }: StreamOutputProps) => react_jsx_runtime.JSX.Element>;
33
+ declare const StreamOutput: react.MemoExoticComponent<({ content, isStreaming, enableMarkdown, maxVisibleLines, scrollOffset, }: StreamOutputProps) => react.JSX.Element>;
35
34
 
36
35
  interface ErrorDisplayProps {
37
36
  error: Error | string;
38
37
  context?: string;
39
38
  }
40
- declare function ErrorDisplay({ error, context }: ErrorDisplayProps): react_jsx_runtime.JSX.Element;
39
+ declare function ErrorDisplay({ error, context }: ErrorDisplayProps): react.JSX.Element;
41
40
 
42
41
  declare const theme: {
43
42
  readonly backgroundDeep: "#000000";
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@runtypelabs/ink-components",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
4
4
  "description": "Shared Ink (React for CLI) components for the Runtype CLI — spinners, status bars, streaming output, and error displays.",
5
5
  "license": "MIT",
6
- "author": "Runtype Labs",
6
+ "author": "Runtype",
7
7
  "type": "module",
8
8
  "exports": {
9
9
  ".": {
@@ -23,11 +23,11 @@
23
23
  "ink-spinner": "5.0.0",
24
24
  "marked": "^17.0.3",
25
25
  "marked-terminal": "^7.0.0",
26
- "react": "^19.2.4",
26
+ "react": "^19.2.8",
27
27
  "strip-ansi": "^7.2.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@types/react": "^19.2.14",
30
+ "@types/react": "^19.2.18",
31
31
  "ink-testing-library": "4.0.0",
32
32
  "tsup": "^8.0.2",
33
33
  "typescript": "^6.0.3",