marko 6.0.0-next.3.22 → 6.0.0-next.3.24
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/for.d.ts +3 -4
- package/dist/common/types.d.ts +18 -17
- package/dist/debug/dom.js +717 -753
- package/dist/debug/dom.mjs +717 -753
- package/dist/debug/html.js +256 -99
- package/dist/debug/html.mjs +247 -95
- package/dist/dom/abort-signal.d.ts +1 -1
- package/dist/dom/compat.d.ts +1 -0
- package/dist/dom/control-flow.d.ts +6 -8
- package/dist/dom/parse-html.d.ts +1 -4
- package/dist/dom/queue.d.ts +4 -2
- package/dist/dom/reconcile.d.ts +2 -2
- package/dist/dom/renderer.d.ts +7 -8
- package/dist/dom/resume.d.ts +3 -3
- package/dist/dom/scope.d.ts +4 -4
- package/dist/dom/signals.d.ts +13 -26
- package/dist/dom/template.d.ts +2 -2
- package/dist/dom.d.ts +2 -2
- package/dist/dom.js +459 -494
- package/dist/dom.mjs +459 -494
- package/dist/html/dynamic-tag.d.ts +3 -3
- package/dist/html/writer.d.ts +12 -12
- package/dist/html.d.ts +1 -1
- package/dist/html.js +202 -65
- package/dist/html.mjs +193 -61
- package/dist/translator/core/for.d.ts +0 -2
- package/dist/translator/index.js +189 -224
- package/dist/translator/util/runtime.d.ts +1 -2
- package/dist/translator/util/sections.d.ts +2 -1
- package/dist/translator/util/signals.d.ts +2 -2
- package/package.json +2 -2
- package/tags-html.d.ts +152 -152
package/dist/common/for.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
type Falsy
|
2
|
-
export declare function forIn
|
3
|
-
export declare function forOf
|
1
|
+
import type { Falsy } from "./types";
|
2
|
+
export declare function forIn(obj: Falsy | {}, cb: (key: string, value: unknown) => void): void;
|
3
|
+
export declare function forOf(list: Falsy | Iterable<unknown>, cb: (item: unknown, index: number) => void): void;
|
4
4
|
export declare function forTo(to: number, from: number | Falsy, step: number | Falsy, cb: (index: number) => void): void;
|
5
|
-
export {};
|
package/dist/common/types.d.ts
CHANGED
@@ -1,29 +1,30 @@
|
|
1
1
|
import type { Renderer as ClientRenderer } from "../dom/renderer";
|
2
|
+
export type Falsy = undefined | null | false | 0 | "";
|
2
3
|
export type CommentWalker = TreeWalker & Record<string, Comment>;
|
3
|
-
export
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
export interface BranchScope extends Scope {
|
5
|
+
___parentBranch: BranchScope | undefined;
|
6
|
+
___destroyed: 1 | undefined;
|
7
|
+
___abortScopes: Set<Scope> | undefined;
|
8
|
+
___branchScopes: Set<BranchScope> | undefined;
|
9
|
+
}
|
10
|
+
export interface Scope {
|
11
|
+
$global: Record<string, unknown>;
|
12
|
+
_: Scope | undefined;
|
8
13
|
___args: unknown;
|
9
14
|
___startNode: Node & ChildNode;
|
10
15
|
___endNode: Node & ChildNode;
|
11
|
-
|
12
|
-
___client: 1 | undefined;
|
13
|
-
___bound: Map<unknown, unknown> | undefined;
|
16
|
+
___pending: 1 | 0 | undefined;
|
14
17
|
___renderer: ClientRenderer | undefined;
|
15
|
-
___abortControllers:
|
16
|
-
|
17
|
-
$global: Record<string, unknown>;
|
18
|
-
_: Scope | undefined;
|
18
|
+
___abortControllers: Record<string | number, AbortController | void> | undefined;
|
19
|
+
___closestBranch: BranchScope | undefined;
|
19
20
|
[x: string | number]: any;
|
20
|
-
}
|
21
|
+
}
|
21
22
|
export declare enum ResumeSymbol {
|
22
|
-
SectionStart = "[",
|
23
|
-
SectionEnd = "]",
|
24
|
-
SectionSingleNodesEnd = "|",
|
25
23
|
Node = "*",
|
26
|
-
|
24
|
+
BranchStart = "[",
|
25
|
+
BranchEnd = "]",
|
26
|
+
BranchSingleNode = "|",
|
27
|
+
ClosestBranch = "$"
|
27
28
|
}
|
28
29
|
export declare enum AccessorChar {
|
29
30
|
Dynamic = "?",
|