@marko/runtime-tags 6.0.102 → 6.0.103
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/accessor.d.ts +37 -22
- package/dist/common/accessor.debug.d.ts +18 -3
- package/dist/common/errors.d.ts +4 -0
- package/dist/common/helpers.d.ts +1 -0
- package/dist/common/types.d.ts +20 -17
- package/dist/debug/dom.js +240 -139
- package/dist/debug/dom.mjs +240 -139
- package/dist/debug/html.js +61 -6
- package/dist/debug/html.mjs +61 -6
- package/dist/dom/abort-signal.d.ts +1 -1
- package/dist/dom/control-flow.d.ts +6 -6
- package/dist/dom/queue.d.ts +1 -1
- package/dist/dom/reconcile.d.ts +1 -1
- package/dist/dom/renderer.d.ts +3 -3
- package/dist/dom/resume.d.ts +3 -3
- package/dist/dom/scope.d.ts +2 -2
- package/dist/dom/signals.d.ts +8 -8
- package/dist/dom.js +244 -205
- package/dist/dom.mjs +244 -205
- package/dist/html/writer.d.ts +1 -1
- package/dist/html.js +31 -31
- package/dist/html.mjs +31 -31
- package/dist/translator/index.js +236 -181
- package/dist/translator/util/references.d.ts +2 -2
- package/dist/translator/util/scope-read.d.ts +1 -1
- package/dist/translator/util/signals.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,27 +1,42 @@
|
|
|
1
1
|
export declare enum AccessorPrefix {
|
|
2
|
-
ClosureScopes = "
|
|
3
|
-
ClosureSignalIndex = "
|
|
4
|
-
ConditionalRenderer = "
|
|
5
|
-
ConditionalScope = "
|
|
6
|
-
ControlledHandler = "
|
|
7
|
-
ControlledType = "
|
|
8
|
-
ControlledValue = "
|
|
9
|
-
DynamicPlaceholderLastChild = "
|
|
10
|
-
EventAttributes = "
|
|
11
|
-
Getter = "
|
|
12
|
-
LifecycleAbortController = "
|
|
13
|
-
LoopScopeArray = "
|
|
14
|
-
LoopScopeMap = "
|
|
15
|
-
Promise = "
|
|
16
|
-
TagVariableChange = "
|
|
2
|
+
ClosureScopes = "A",
|
|
3
|
+
ClosureSignalIndex = "B",
|
|
4
|
+
ConditionalRenderer = "C",
|
|
5
|
+
ConditionalScope = "D",
|
|
6
|
+
ControlledHandler = "E",
|
|
7
|
+
ControlledType = "F",
|
|
8
|
+
ControlledValue = "G",
|
|
9
|
+
DynamicPlaceholderLastChild = "H",
|
|
10
|
+
EventAttributes = "I",
|
|
11
|
+
Getter = "J",
|
|
12
|
+
LifecycleAbortController = "K",
|
|
13
|
+
LoopScopeArray = "L",
|
|
14
|
+
LoopScopeMap = "M",
|
|
15
|
+
Promise = "N",
|
|
16
|
+
TagVariableChange = "O"
|
|
17
17
|
}
|
|
18
18
|
export declare enum AccessorProp {
|
|
19
|
+
Global = "$",
|
|
19
20
|
Owner = "_",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
AbortControllers = "A",
|
|
22
|
+
AbortScopes = "B",
|
|
23
|
+
Args = "C",
|
|
24
|
+
BranchAccessor = "D",
|
|
25
|
+
BranchScopes = "E",
|
|
26
|
+
CatchContent = "F",
|
|
27
|
+
ClosestBranch = "G",
|
|
28
|
+
ClosestBranchId = "H",
|
|
29
|
+
Creating = "I",
|
|
30
|
+
Destroyed = "J",
|
|
31
|
+
Effects = "K",
|
|
32
|
+
EndNode = "L",
|
|
33
|
+
Id = "M",
|
|
34
|
+
ParentBranch = "N",
|
|
35
|
+
PendingAsyncCount = "O",
|
|
36
|
+
PlaceholderBranch = "P",
|
|
37
|
+
PlaceholderContent = "Q",
|
|
38
|
+
Renderer = "R",
|
|
39
|
+
StartNode = "S",
|
|
40
|
+
TagVariable = "T",
|
|
41
|
+
TagVariableChange = "U"
|
|
27
42
|
}
|
|
@@ -16,12 +16,27 @@ export declare enum AccessorPrefix {
|
|
|
16
16
|
TagVariableChange = "TagVariableChange:"
|
|
17
17
|
}
|
|
18
18
|
export declare enum AccessorProp {
|
|
19
|
-
|
|
19
|
+
Global = "$global",
|
|
20
|
+
Owner = "_",
|
|
21
|
+
AbortControllers = "#AbortControllers",
|
|
22
|
+
AbortScopes = "#AbortScopes",
|
|
23
|
+
Args = "#Args",
|
|
20
24
|
BranchAccessor = "#BranchAccessor",
|
|
25
|
+
BranchScopes = "#BranchScopes",
|
|
21
26
|
CatchContent = "#CatchContent",
|
|
27
|
+
ClosestBranch = "#ClosestBranch",
|
|
28
|
+
ClosestBranchId = "#ClosestBranchId",
|
|
29
|
+
Creating = "#Creating",
|
|
30
|
+
Destroyed = "#Destroyed",
|
|
31
|
+
Effects = "#Effects",
|
|
32
|
+
EndNode = "#EndNode",
|
|
33
|
+
Id = "#Id",
|
|
34
|
+
ParentBranch = "#ParentBranch",
|
|
35
|
+
PendingAsyncCount = "#PendingAsyncCount",
|
|
22
36
|
PlaceholderBranch = "#PlaceholderBranch",
|
|
23
37
|
PlaceholderContent = "#PlaceholderContent",
|
|
38
|
+
Renderer = "#Renderer",
|
|
39
|
+
StartNode = "#StartNode",
|
|
24
40
|
TagVariable = "#TagVariable",
|
|
25
|
-
TagVariableChange = "#TagVariableChange"
|
|
26
|
-
ClosestBranchId = "#ClosestBranchId"
|
|
41
|
+
TagVariableChange = "#TagVariableChange"
|
|
27
42
|
}
|
package/dist/common/errors.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export declare function _el_read_error(): void;
|
|
2
2
|
export declare function _hoist_read_error(): void;
|
|
3
3
|
export declare function _assert_hoist(value: unknown): void;
|
|
4
|
+
export declare function assertExclusiveAttrs(attrs: Record<string, unknown> | undefined, onError?: typeof throwErr): void;
|
|
5
|
+
export declare function assertValidTagName(tagName: string): void;
|
|
6
|
+
declare function throwErr(msg: string): void;
|
|
7
|
+
export {};
|
package/dist/common/helpers.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export declare function getEventHandlerName(name: `on${string}`): string;
|
|
|
6
6
|
export declare function isVoid(value: unknown): value is false | null | undefined;
|
|
7
7
|
export declare function alphaEncode(num: number): string;
|
|
8
8
|
export declare function normalizeDynamicRenderer<Renderer>(value: any): Renderer | string | undefined;
|
|
9
|
+
export declare const decodeAccessor: (num: number) => string;
|
package/dist/common/types.d.ts
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import type { Renderer as ClientRenderer } from "../dom/renderer";
|
|
2
|
+
import type { AccessorProp } from "./accessor.debug";
|
|
2
3
|
export type Falsy = undefined | null | false | 0 | "";
|
|
3
4
|
export type CommentWalker = TreeWalker & Record<string, Comment>;
|
|
4
5
|
export interface BranchScope extends Scope {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
[AccessorProp.StartNode]: ChildNode;
|
|
7
|
+
[AccessorProp.EndNode]: ChildNode;
|
|
8
|
+
[AccessorProp.ParentBranch]: BranchScope | undefined;
|
|
9
|
+
[AccessorProp.Destroyed]: 1 | undefined;
|
|
10
|
+
[AccessorProp.AbortScopes]: Set<Scope> | undefined;
|
|
11
|
+
[AccessorProp.BranchScopes]: Set<BranchScope> | undefined;
|
|
12
|
+
[AccessorProp.Renderer]: ClientRenderer | string;
|
|
13
|
+
[AccessorProp.PendingAsyncCount]: number | undefined;
|
|
14
|
+
[AccessorProp.Effects]: unknown[] | undefined;
|
|
14
15
|
}
|
|
15
16
|
export interface Scope {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
[AccessorProp.Owner]: Scope | undefined;
|
|
18
|
+
[AccessorProp.Global]: Record<string, unknown>;
|
|
19
|
+
[AccessorProp.Id]: number;
|
|
20
|
+
[AccessorProp.Args]: unknown;
|
|
21
|
+
[AccessorProp.Creating]: 1 | 0 | undefined;
|
|
22
|
+
[AccessorProp.AbortControllers]: Record<string | number, AbortController | void> | undefined;
|
|
23
|
+
[AccessorProp.ClosestBranch]: BranchScope | undefined;
|
|
24
|
+
[x: `___${string}`]: never;
|
|
23
25
|
[x: string | number]: any;
|
|
24
26
|
}
|
|
25
27
|
export declare enum ResumeSymbol {
|
|
@@ -61,7 +63,8 @@ export declare enum WalkRangeSize {
|
|
|
61
63
|
Out = 10,// 107 through 116
|
|
62
64
|
Multiplier = 10
|
|
63
65
|
}
|
|
64
|
-
export type Accessor = string
|
|
66
|
+
export type Accessor = string;
|
|
67
|
+
export type EncodedAccessor = number | string;
|
|
65
68
|
export interface $Global {
|
|
66
69
|
[x: PropertyKey]: unknown;
|
|
67
70
|
signal?: AbortSignal;
|