14 Commits

Author SHA1 Message Date
Simon Klee a70f18026a core: port test suite and runtime to Node.js
The test suite was tightly coupled to Bun-specific APIs (bun:test,
Bun.sleep) making it impossible to validate behavior on other
runtimes. A module hook now rewrites bun:test imports for Node's
test runner, and fake clocks replace wall-clock delays so tests
run deterministically everywhere.

Fix FFI type mismatches and boolean normalization that caused
silent failures on non-Bun runtimes. Correct bundled asset
resolution so published packages load without a TypeScript loader.

Reorganize the example menu with themed sections, two-panel focus
management, and proper tree-sitter cleanup to prevent worker leaks.
2026-06-08 12:20:40 +02:00
Sebastian 342dadda09 refine keymap (#1007) 2026-05-01 21:01:19 +02:00
Matt Simpson 4fc3fd3bf7 fix(react): correct runtime-plugin-support import path for published package (#962)
## Summary
- Fixed `runtime-plugin-support.ts` importing from `../src/index.js`
which doesn't exist in the published `dist/` (only `dist/index.js` does)
- Changed to `../index.js` to match the pattern `@opentui/solid` already
uses
- Added root `index.ts` barrel so the import resolves at dev time and
tsc can generate declarations

Fixes #960
2026-04-22 06:22:15 +02:00
Simon Klee 6d5d25afda Switch tsconfig to NodeNext module resolution (#855)
Prevent regressions where extensionless imports break consumers using
NodeNext
or Node's ESM loader.

tsconfigs override back to "bundler" because bun-ffi-structs and
bun-webgpu
don't export NodeNext-compatible types yet.

Change this once @kommander fixes upstream. I think we can merge this pr
now and update the last things once you've updated upstream.

Close: #843
2026-03-24 11:32:43 +01:00
Sebastian 63df8307a8 Plugins (Slots) (#774) 2026-03-12 12:03:20 +01:00
Matt Simpson f3a7dbe963 fix(react): share app context across build entrypoints (#571) 2026-01-23 03:39:09 +01:00
Matt Simpson 8b7e66186b fix(react): export test renderer (#310) 2025-11-12 23:17:21 +01:00
Matt Simpson 613689c1e8 feat: set up react testing suite (#309) 2025-11-12 21:27:22 +01:00
Sebastian Herrlinger aa6cf24c49 fix react and solid ci builds 2025-10-12 23:55:48 +02:00
Sebastian Herrlinger b1c33a0b2d consider new snapshot version format to use snapshot npm tag 2025-09-09 00:06:36 +02:00
Sebastian Herrlinger 5ed8b651df publish as snapshot releae tags actually 2025-09-07 23:08:23 +02:00
Adictya 8176432d4e Basic CI setup (#80) 2025-08-26 14:06:34 +02:00
Matt Simpson e7f48bafb6 React: Fix JSX Namespace Compatibility (#45)
# Description

- Updated JSX.Element type from React.ReactElement<any, any> to
React.ReactNode for broader compatibility
- Enhanced IntrinsicElements to extend React's built-in JSX elements
while adding OpenTUI components
- Fixed ElementClass interface to properly extend React's ComponentClass
2025-08-19 17:56:26 +02:00
Sebastian Herrlinger 52fbbb45e9 setup react build 2025-08-19 00:57:18 +02:00