@mintjamsinc/ichigojs 0.1.12 → 0.1.14

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.
@@ -45,6 +45,10 @@ export declare class VApplication {
45
45
  * @param target The CSS selector string or HTMLElement to mount the application to.
46
46
  */
47
47
  mount(target: string | HTMLElement): void;
48
+ /**
49
+ * Unmounts the application and cleans up resources.
50
+ */
51
+ unmount(): void;
48
52
  /**
49
53
  * Creates a child application instance with the same registries.
50
54
  * @param options The application options for the child.
@@ -66,16 +66,9 @@ export declare class VComponentDirective implements VDirective {
66
66
  * @inheritdoc
67
67
  */
68
68
  get onUnmounted(): (() => void) | undefined;
69
+ cloneNode(): HTMLElement;
69
70
  /**
70
71
  * @inheritdoc
71
72
  */
72
73
  destroy(): void;
73
- /**
74
- * Renders the component.
75
- */
76
- private renderComponent;
77
- /**
78
- * Cleans up the component.
79
- */
80
- private cleanupComponent;
81
74
  }
@@ -3,6 +3,7 @@ import { VNode } from "../VNode";
3
3
  import { VBindingsPreparer } from "../VBindingsPreparer";
4
4
  import { VDOMUpdater } from "../VDOMUpdater";
5
5
  import { VBindDirective } from "./VBindDirective";
6
+ import { VComponentDirective } from "./VComponentDirective";
6
7
  /**
7
8
  * Manages directives associated with a virtual node (VNode).
8
9
  * This class is responsible for parsing, storing, and managing the lifecycle of directives.
@@ -38,10 +39,10 @@ export declare class VDirectiveManager {
38
39
  */
39
40
  get keyDirective(): VBindDirective | undefined;
40
41
  /**
41
- * Gets a record of VBindDirectives for options specific to certain directives.
42
- * The keys are directive names (e.g., 'options', 'options.intersection').
42
+ * Gets the v-component directive associated with this node, if any.
43
+ * This may be undefined if there is no v-component directive.
43
44
  */
44
- get optionsDirectives(): Record<string, VBindDirective | undefined>;
45
+ get componentDirective(): VComponentDirective | undefined;
45
46
  /**
46
47
  * Gets the VBindDirective for options specific to the given directive name.
47
48
  * Searches in order: `:options.{directive}` -> `:options`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintjamsinc/ichigojs",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
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",