@mintjamsinc/ichigojs 0.1.2 → 0.1.3

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.
@@ -1,3 +1,4 @@
1
+ import { VApplication } from "./VApplication";
1
2
  import { VBindings } from "./VBindings";
2
3
  /**
3
4
  * Initialization arguments for bindings.
@@ -12,4 +13,8 @@ export interface VBindingsInit {
12
13
  * @param identifier The identifier that changed.
13
14
  */
14
15
  onChange?: (identifier: string) => void;
16
+ /**
17
+ * The virtual application instance, if any.
18
+ */
19
+ vApplication?: VApplication;
15
20
  }
@@ -1,9 +1,24 @@
1
1
  import { VLogger } from "./VLogger";
2
2
  import { LogLevel } from "./LogLevel";
3
+ /**
4
+ * Manages loggers and their log levels.
5
+ */
3
6
  export declare class VLogManager {
4
7
  #private;
5
8
  constructor(logLevel?: LogLevel);
9
+ /**
10
+ * Sets the log level for all loggers.
11
+ * @param level The log level to set.
12
+ */
6
13
  set logLevel(level: LogLevel);
14
+ /**
15
+ * Gets the current log level.
16
+ */
7
17
  get logLevel(): LogLevel;
18
+ /**
19
+ * Gets a logger by name, creating it if it doesn't exist.
20
+ * @param name The name of the logger.
21
+ * @returns The logger instance.
22
+ */
8
23
  getLogger(name: string): VLogger;
9
24
  }
@@ -1,9 +1,40 @@
1
1
  import { VLogManager } from "./VLogManager";
2
+ /**
3
+ * A simple logger class for virtual applications.
4
+ */
2
5
  export declare class VLogger {
3
6
  #private;
4
7
  constructor(name: string, logManager: VLogManager);
8
+ /**
9
+ * Indicates whether the debug level is enabled.
10
+ */
11
+ get isDebugEnabled(): boolean;
12
+ /**
13
+ * Indicates whether the info level is enabled.
14
+ */
15
+ get isInfoEnabled(): boolean;
16
+ /**
17
+ * Indicates whether the warn level is enabled.
18
+ */
19
+ get isWarnEnabled(): boolean;
20
+ /**
21
+ * Logs a debug message.
22
+ * @param message The message to log.
23
+ */
5
24
  debug(message: string): void;
25
+ /**
26
+ * Logs an info message.
27
+ * @param message The message to log.
28
+ */
6
29
  info(message: string): void;
30
+ /**
31
+ * Logs a warn message.
32
+ * @param message The message to log.
33
+ */
7
34
  warn(message: string): void;
35
+ /**
36
+ * Logs an error message.
37
+ * @param message The message to log.
38
+ */
8
39
  error(message: string): void;
9
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintjamsinc/ichigojs",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "ichigo.js - Simple and intuitive reactive framework. Lightweight, fast, and user-friendly virtual DOM library",
5
5
  "main": "./dist/ichigo.umd.js",
6
6
  "module": "./dist/ichigo.esm.js",