@marko/runtime-tags 0.1.6 → 0.1.8
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/compat-meta.d.ts +2 -0
- package/dist/common/helpers.d.ts +1 -1
- package/dist/common/meta.d.ts +2 -0
- package/dist/common/types.d.ts +14 -4
- package/dist/debug/dom.js +328 -225
- package/dist/debug/dom.mjs +328 -225
- package/dist/debug/html.js +985 -639
- package/dist/debug/html.mjs +984 -634
- package/dist/dom/compat.d.ts +7 -4
- package/dist/dom/control-flow.d.ts +6 -6
- package/dist/dom/queue.d.ts +1 -0
- package/dist/dom/resume.d.ts +0 -1
- package/dist/dom/signals.d.ts +2 -1
- package/dist/dom/template.d.ts +3 -3
- package/dist/dom.d.ts +9 -9
- package/dist/dom.js +258 -188
- package/dist/dom.mjs +258 -188
- package/dist/html/attrs.d.ts +1 -0
- package/dist/html/compat.d.ts +14 -0
- package/dist/html/dynamic-tag.d.ts +8 -2
- package/dist/html/inlined-runtimes.d.ts +2 -0
- package/dist/html/serializer.d.ts +3 -2
- package/dist/html/template.d.ts +27 -5
- package/dist/html/writer.d.ts +92 -37
- package/dist/html.d.ts +4 -3
- package/dist/html.js +573 -431
- package/dist/html.mjs +572 -426
- package/package.json +1 -1
- package/dist/html/reorder-runtime.d.ts +0 -1
package/dist/common/helpers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function classValue(value: unknown): string;
|
|
2
2
|
export declare function styleValue(value: unknown): string;
|
|
3
|
-
export declare function isVoid(value: unknown):
|
|
3
|
+
export declare function isVoid(value: unknown): value is false | null | undefined;
|
|
4
4
|
export declare function alphaEncode(num: number): string;
|
package/dist/common/types.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export declare enum ResumeSymbol {
|
|
|
27
27
|
PlaceholderStart = "",
|
|
28
28
|
PlaceholderEnd = "",
|
|
29
29
|
ReplacementId = "",
|
|
30
|
-
VarResume = "$h",
|
|
31
30
|
VarReorderRuntime = "$r"
|
|
32
31
|
}
|
|
33
32
|
export declare enum AccessorChar {
|
|
@@ -75,8 +74,19 @@ export declare enum WalkRangeSize {
|
|
|
75
74
|
Multiplier = 10
|
|
76
75
|
}
|
|
77
76
|
export type Accessor = string | number;
|
|
78
|
-
export
|
|
79
|
-
|
|
77
|
+
export interface $Global {
|
|
78
|
+
[x: PropertyKey]: unknown;
|
|
79
|
+
signal?: AbortSignal;
|
|
80
|
+
cspNonce?: string;
|
|
81
|
+
renderId?: string;
|
|
82
|
+
runtimeId?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface Input {
|
|
85
|
+
[x: PropertyKey]: unknown;
|
|
86
|
+
}
|
|
87
|
+
export interface TemplateInput extends Input {
|
|
88
|
+
$global?: $Global;
|
|
89
|
+
}
|
|
80
90
|
export interface Template {
|
|
81
91
|
_: unknown;
|
|
82
92
|
mount(input: Input, reference: ParentNode & Node, position?: InsertPosition): TemplateInstance;
|
|
@@ -86,6 +96,6 @@ export interface TemplateInstance {
|
|
|
86
96
|
update(input: unknown): void;
|
|
87
97
|
destroy(): void;
|
|
88
98
|
}
|
|
89
|
-
export type RenderResult =
|
|
99
|
+
export type RenderResult = PromiseLike<string> & AsyncIterable<string> & {
|
|
90
100
|
toReadable(): ReadableStream;
|
|
91
101
|
};
|