@opentui/core 0.0.0-20250923-da12fb15 → 0.0.0-20250924-d06b64fa

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.
package/lib/env.d.ts ADDED
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Environment variable registry
3
+ *
4
+ * Usage:
5
+ * ```ts
6
+ * import { registerEnvVar, env } from "./lib/env.ts";
7
+ *
8
+ * // Register environment variables
9
+ * registerEnvVar({
10
+ * name: "DEBUG",
11
+ * description: "Enable debug logging",
12
+ * type: "boolean",
13
+ * default: false
14
+ * });
15
+ *
16
+ * registerEnvVar({
17
+ * name: "PORT",
18
+ * description: "Server port number",
19
+ * type: "number",
20
+ * default: 3000
21
+ * });
22
+ *
23
+ * // Access environment variables
24
+ * if (env.DEBUG) {
25
+ * console.log("Debug mode enabled");
26
+ * }
27
+ *
28
+ * const port = env.PORT; // number
29
+ * ```
30
+ */
31
+ export interface EnvVarConfig {
32
+ name: string;
33
+ description: string;
34
+ default?: string | boolean | number;
35
+ type?: "string" | "boolean" | "number";
36
+ }
37
+ export declare const envRegistry: Record<string, EnvVarConfig>;
38
+ export declare function registerEnvVar(config: EnvVarConfig): void;
39
+ export declare function generateEnvMarkdown(): string;
40
+ export declare function generateEnvColored(): string;
41
+ export declare const env: Record<string, string | number | boolean>;
package/lib/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from "./styled-text";
8
8
  export * from "./yoga.options";
9
9
  export * from "./parse.mouse";
10
10
  export * from "./selection";
11
+ export * from "./env";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
7
- "version": "0.0.0-20250923-da12fb15",
7
+ "version": "0.0.0-20250924-d06b64fa",
8
8
  "description": "OpenTUI is a TypeScript library for building terminal user interfaces (TUIs)",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -40,11 +40,11 @@
40
40
  "bun-webgpu": "0.1.3",
41
41
  "planck": "^1.4.2",
42
42
  "three": "0.177.0",
43
- "@opentui/core-darwin-x64": "0.0.0-20250923-da12fb15",
44
- "@opentui/core-darwin-arm64": "0.0.0-20250923-da12fb15",
45
- "@opentui/core-linux-x64": "0.0.0-20250923-da12fb15",
46
- "@opentui/core-linux-arm64": "0.0.0-20250923-da12fb15",
47
- "@opentui/core-win32-x64": "0.0.0-20250923-da12fb15",
48
- "@opentui/core-win32-arm64": "0.0.0-20250923-da12fb15"
43
+ "@opentui/core-darwin-x64": "0.0.0-20250924-d06b64fa",
44
+ "@opentui/core-darwin-arm64": "0.0.0-20250924-d06b64fa",
45
+ "@opentui/core-linux-x64": "0.0.0-20250924-d06b64fa",
46
+ "@opentui/core-linux-arm64": "0.0.0-20250924-d06b64fa",
47
+ "@opentui/core-win32-x64": "0.0.0-20250924-d06b64fa",
48
+ "@opentui/core-win32-arm64": "0.0.0-20250924-d06b64fa"
49
49
  }
50
50
  }
package/testing.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  ANSI,
4
4
  CliRenderer,
5
5
  resolveRenderLib
6
- } from "./index-ce0mn4wa.js";
6
+ } from "./index-6kvgbzah.js";
7
7
 
8
8
  // src/testing/mock-keys.ts
9
9
  var KeyCodes = {
File without changes