marko 6.0.0-next.3.25 → 6.0.0-next.3.27
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/common/types.d.ts +4 -3
- package/dist/debug/dom.js +360 -340
- package/dist/debug/dom.mjs +360 -340
- package/dist/debug/html.js +7 -7
- package/dist/debug/html.mjs +7 -7
- package/dist/dom/compat.d.ts +3 -3
- package/dist/dom/dom.d.ts +2 -1
- package/dist/dom/reconcile.d.ts +1 -1
- package/dist/dom/renderer.d.ts +1 -1
- package/dist/dom/scope.d.ts +2 -2
- package/dist/dom/signals.d.ts +1 -1
- package/dist/dom/walker.d.ts +2 -2
- package/dist/dom.js +257 -249
- package/dist/dom.mjs +257 -249
- package/dist/html/writer.d.ts +3 -3
- package/dist/html.js +7 -7
- package/dist/html.mjs +7 -7
- package/dist/translator/index.js +40 -46
- package/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/common/types.d.ts
CHANGED
@@ -2,7 +2,10 @@ import type { Renderer as ClientRenderer } from "../dom/renderer";
|
|
2
2
|
export type Falsy = undefined | null | false | 0 | "";
|
3
3
|
export type CommentWalker = TreeWalker & Record<string, Comment>;
|
4
4
|
export interface BranchScope extends Scope {
|
5
|
+
___startNode: ChildNode;
|
6
|
+
___endNode: ChildNode;
|
5
7
|
___parentBranch: BranchScope | undefined;
|
8
|
+
___branchDepth: number;
|
6
9
|
___destroyed: 1 | undefined;
|
7
10
|
___abortScopes: Set<Scope> | undefined;
|
8
11
|
___branchScopes: Set<BranchScope> | undefined;
|
@@ -11,8 +14,6 @@ export interface Scope {
|
|
11
14
|
$global: Record<string, unknown>;
|
12
15
|
_: Scope | undefined;
|
13
16
|
___args: unknown;
|
14
|
-
___startNode: Node & ChildNode;
|
15
|
-
___endNode: Node & ChildNode;
|
16
17
|
___pending: 1 | 0 | undefined;
|
17
18
|
___renderer: ClientRenderer | undefined;
|
18
19
|
___abortControllers: Record<string | number, AbortController | void> | undefined;
|
@@ -85,7 +86,7 @@ export interface TemplateInput extends Input {
|
|
85
86
|
$global?: $Global;
|
86
87
|
}
|
87
88
|
export interface Template {
|
88
|
-
mount(input: Input, reference:
|
89
|
+
mount(input: Input, reference: Node, position?: InsertPosition): TemplateInstance;
|
89
90
|
render(input?: Input): RenderResult;
|
90
91
|
}
|
91
92
|
export interface TemplateInstance {
|