marko 6.1.2 → 6.1.4
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 +5 -0
- package/dist/common/accessor.debug.d.ts +5 -0
- package/dist/common/compat-meta.d.ts +0 -1
- package/dist/common/opt.d.ts +3 -1
- package/dist/common/types.d.ts +1 -1
- package/dist/debug/dom.js +315 -122
- package/dist/debug/dom.mjs +306 -123
- package/dist/debug/html.js +922 -712
- package/dist/debug/html.mjs +920 -713
- package/dist/dom/compat.d.ts +3 -2
- package/dist/dom/control-flow.d.ts +2 -1
- package/dist/dom/load.d.ts +23 -0
- package/dist/dom/queue.d.ts +4 -2
- package/dist/dom/resume.d.ts +10 -8
- package/dist/dom/signals.d.ts +4 -3
- package/dist/dom.d.ts +3 -2
- package/dist/dom.js +195 -66
- package/dist/dom.mjs +195 -66
- package/dist/html/assets.d.ts +47 -0
- package/dist/html/compat.d.ts +3 -2
- package/dist/html/inlined-runtimes.d.ts +1 -1
- package/dist/html/inlined-runtimes.debug.d.ts +1 -1
- package/dist/html/serializer.d.ts +14 -9
- package/dist/html/writer.d.ts +34 -15
- package/dist/html.d.ts +1 -0
- package/dist/html.js +502 -345
- package/dist/html.mjs +502 -345
- package/dist/translator/index.d.ts +1 -0
- package/dist/translator/index.js +342 -76
- package/dist/translator/interop/index.d.ts +1 -0
- package/dist/translator/util/marko-config.d.ts +2 -0
- package/dist/translator/util/references.d.ts +1 -5
- package/dist/translator/util/runtime.d.ts +1 -0
- package/dist/translator/util/tag-name-type.d.ts +2 -0
- package/dist/translator/util/walks.d.ts +1 -1
- package/dist/translator/visitors/import-declaration.d.ts +10 -1
- package/dist/translator/visitors/tag/custom-tag.d.ts +7 -0
- package/package.json +2 -2
|
@@ -29,6 +29,7 @@ export declare enum AccessorProp {
|
|
|
29
29
|
DetachedAwait = "V",
|
|
30
30
|
EndNode = "K",
|
|
31
31
|
Id = "L",
|
|
32
|
+
Load = "X",
|
|
32
33
|
LoopKey = "M",
|
|
33
34
|
ParentBranch = "N",
|
|
34
35
|
PendingEffects = "J",
|
|
@@ -62,3 +63,7 @@ export declare enum ClosureSignalProp {
|
|
|
62
63
|
SignalIndexAccessor = "b",
|
|
63
64
|
Index = "c"
|
|
64
65
|
}
|
|
66
|
+
export declare enum LoadSignalValue {
|
|
67
|
+
Value = "a",
|
|
68
|
+
Signal = "b"
|
|
69
|
+
}
|
|
@@ -29,6 +29,7 @@ export declare enum AccessorProp {
|
|
|
29
29
|
DetachedAwait = "#DetachedAwait",
|
|
30
30
|
EndNode = "#EndNode",
|
|
31
31
|
Id = "#Id",
|
|
32
|
+
Load = "#Load",
|
|
32
33
|
LoopKey = "#LoopKey",
|
|
33
34
|
ParentBranch = "#ParentBranch",
|
|
34
35
|
PendingEffects = "#PendingEffects",
|
|
@@ -62,3 +63,7 @@ export declare enum ClosureSignalProp {
|
|
|
62
63
|
SignalIndexAccessor = "signalIndexAccessor",
|
|
63
64
|
Index = "index"
|
|
64
65
|
}
|
|
66
|
+
export declare enum LoadSignalValue {
|
|
67
|
+
Value = "value",
|
|
68
|
+
Signal = "signal"
|
|
69
|
+
}
|
package/dist/common/opt.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type OneMany<T> = T[] | T;
|
|
2
|
-
export type Opt<T> = OneMany<T> | undefined;
|
|
2
|
+
export type Opt<T> = OneMany<T> | undefined | null;
|
|
3
3
|
export declare function toArray<T>(oneMany: OneMany<T>): [T, ...T[]];
|
|
4
4
|
export declare function toArray<T>(opt: Opt<T>): T[];
|
|
5
|
+
export declare function forEach<T>(opt: Opt<T>, cb: (item: T) => void): void;
|
|
5
6
|
export declare function push<T>(opt: Opt<T>, item: T): OneMany<T>;
|
|
6
7
|
export declare function push<T>(oneMany: OneMany<T>, item: T): T[];
|
|
8
|
+
export declare function concat<T>(opt: Opt<T>, other: Opt<T>): Opt<T>;
|
package/dist/common/types.d.ts
CHANGED