@ydant/base 0.1.1 → 0.1.2
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/README.md +11 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -58,14 +58,14 @@ interface RenderContextExtensions {
|
|
|
58
58
|
unmountCallbacks: Array<() => void>;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
// PluginAPI extensions
|
|
61
|
+
// PluginAPI extensions
|
|
62
62
|
interface PluginAPIExtensions {
|
|
63
63
|
// DOM operations
|
|
64
|
-
readonly
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
setCurrentElement(element: Element | null): void;
|
|
64
|
+
readonly parent: Node;
|
|
65
|
+
readonly currentElement: globalThis.Element | null;
|
|
66
|
+
setCurrentElement(element: globalThis.Element | null): void;
|
|
68
67
|
setParent(parent: Node): void;
|
|
68
|
+
appendChild(node: Node): void;
|
|
69
69
|
|
|
70
70
|
// Lifecycle
|
|
71
71
|
onMount(callback: () => void | (() => void)): void;
|
|
@@ -74,7 +74,13 @@ interface PluginAPIExtensions {
|
|
|
74
74
|
executeMount(): void;
|
|
75
75
|
getUnmountCallbacks(): Array<() => void>;
|
|
76
76
|
|
|
77
|
+
// Children processing
|
|
78
|
+
processChildren(builder: Builder, options?: { parent?: Node; inheritContext?: boolean }): void;
|
|
79
|
+
createChildAPI(parent: Node): PluginAPI;
|
|
80
|
+
|
|
77
81
|
// Keyed elements
|
|
82
|
+
readonly isCurrentElementReused: boolean;
|
|
83
|
+
setCurrentElementReused(reused: boolean): void;
|
|
78
84
|
getKeyedNode(key: string | number): KeyedNode | undefined;
|
|
79
85
|
setKeyedNode(key: string | number, node: KeyedNode): void;
|
|
80
86
|
deleteKeyedNode(key: string | number): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ydant/base",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Base DSL primitives and plugin for Ydant",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dom",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@ydant/core": "0.1.
|
|
43
|
+
"@ydant/core": "0.1.1"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "vite build",
|