@mintjamsinc/ichigojs 0.1.80 → 0.1.81
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/dist/ichigo.cjs +43 -6
- package/dist/ichigo.cjs.map +1 -1
- package/dist/ichigo.esm.js +43 -6
- package/dist/ichigo.esm.js.map +1 -1
- package/dist/ichigo.esm.min.js +1 -1
- package/dist/ichigo.min.cjs +1 -1
- package/dist/ichigo.umd.js +43 -6
- package/dist/ichigo.umd.js.map +1 -1
- package/dist/ichigo.umd.min.js +1 -1
- package/dist/types/ichigo/VNode.d.ts +11 -2
- package/dist/types/ichigo/directives/VDirective.d.ts +8 -0
- package/dist/types/ichigo/directives/VSlotOutletDirective.d.ts +4 -0
- package/package.json +1 -1
- package/dist/ichigo.esm.min.js.map +0 -1
- package/dist/ichigo.umd.min.js.map +0 -1
- package/dist/types/ichigo/ExpressionEvaluator.d.ts +0 -118
- package/dist/types/ichigo/VComponent.d.ts +0 -2
- package/dist/types/ichigo/VComponentRegistry.d.ts +0 -2
- package/dist/types/ichigo/VUpdateContext.d.ts +0 -21
- package/dist/types/ichigo/directives/VBindingsPreparer.d.ts +0 -24
- package/dist/types/ichigo/directives/VDOMUpdater.d.ts +0 -17
- package/dist/types/ichigo/util/BindingsUtils.d.ts +0 -10
- package/dist/types/ichigo/util/VLogLevel.d.ts +0 -9
|
@@ -32,8 +32,17 @@ export declare class VNode {
|
|
|
32
32
|
* Walking only {@link childVNodes} keeps the traversal inside this
|
|
33
33
|
* application: the internals of an expanded component were never compiled
|
|
34
34
|
* here, so they are not reachable and are left to their own application.
|
|
35
|
-
*
|
|
36
|
-
*
|
|
35
|
+
* The one exception is content a directive rendered outside its own
|
|
36
|
+
* children — scoped slot content — reached through
|
|
37
|
+
* {@link VDirective.expandComponents}.
|
|
38
|
+
*
|
|
39
|
+
* Only connected elements are expanded. v-if / v-for call this right after
|
|
40
|
+
* inserting a clone, but when that clone sits inside another clone that is
|
|
41
|
+
* still detached (nested directives, or slot content rendered by an outlet
|
|
42
|
+
* inside a component's v-if), the insertion is not into the document yet;
|
|
43
|
+
* the outer inserter's walk reaches the same nodes once it is. A
|
|
44
|
+
* templatized node (a v-if / v-for source) is not expanded itself, but its
|
|
45
|
+
* rendered clones are its children and are walked.
|
|
37
46
|
*/
|
|
38
47
|
expandComponents(): void;
|
|
39
48
|
/**
|
|
@@ -88,6 +88,14 @@ export interface VDirective {
|
|
|
88
88
|
* The element reference is still available at this point.
|
|
89
89
|
*/
|
|
90
90
|
get onUnmounted(): (() => void) | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Expands the components in a subtree this directive rendered but that is
|
|
93
|
+
* not reachable through the VNode's children — the scoped slot content of
|
|
94
|
+
* a `<slot>` outlet, whose VNodes belong to the parent application.
|
|
95
|
+
* Called by VNode.expandComponents() when it walks this directive's node.
|
|
96
|
+
* Optional; most directives render nothing outside their own VNode tree.
|
|
97
|
+
*/
|
|
98
|
+
expandComponents?(): void;
|
|
91
99
|
/**
|
|
92
100
|
* Cleans up any resources used by the directive.
|
|
93
101
|
* This method is called when the directive is no longer needed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintjamsinc/ichigojs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.81",
|
|
4
4
|
"description": "ichigo.js - Simple and intuitive reactive framework. Lightweight, fast, and user-friendly virtual DOM library",
|
|
5
5
|
"main": "./dist/ichigo.cjs",
|
|
6
6
|
"module": "./dist/ichigo.esm.js",
|