@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/3d.js +1 -1
- package/animation/Timeline.d.ts +2 -1
- package/{index-ce0mn4wa.js → index-6kvgbzah.js} +208 -21
- package/{index-ce0mn4wa.js.map → index-6kvgbzah.js.map} +8 -7
- package/index.js +12 -2
- package/index.js.map +3 -3
- package/lib/env.d.ts +41 -0
- package/lib/index.d.ts +1 -0
- package/package.json +7 -7
- package/testing.js +1 -1
- /package/{singleton.d.ts → lib/singleton.d.ts} +0 -0
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
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-
|
|
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-
|
|
44
|
-
"@opentui/core-darwin-arm64": "0.0.0-
|
|
45
|
-
"@opentui/core-linux-x64": "0.0.0-
|
|
46
|
-
"@opentui/core-linux-arm64": "0.0.0-
|
|
47
|
-
"@opentui/core-win32-x64": "0.0.0-
|
|
48
|
-
"@opentui/core-win32-arm64": "0.0.0-
|
|
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
|
File without changes
|