@marko/runtime-tags 0.1.13 → 0.1.15
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/helpers.d.ts +1 -0
- package/dist/common/types.d.ts +3 -5
- package/dist/debug/dom.js +307 -288
- package/dist/debug/dom.mjs +307 -288
- package/dist/debug/html.js +66 -37
- package/dist/debug/html.mjs +62 -37
- package/dist/dom/control-flow.d.ts +5 -5
- package/dist/dom/parse-html.d.ts +5 -0
- package/dist/dom/reconcile.d.ts +2 -1
- package/dist/dom/renderer.d.ts +8 -6
- package/dist/dom/resume.d.ts +1 -2
- package/dist/dom/scope.d.ts +0 -5
- package/dist/dom/signals.d.ts +6 -6
- package/dist/dom/template.d.ts +2 -10
- package/dist/dom.d.ts +3 -3
- package/dist/dom.js +255 -256
- package/dist/dom.mjs +255 -256
- package/dist/html/compat.d.ts +2 -2
- package/dist/html/dynamic-tag.d.ts +6 -7
- package/dist/html/template.d.ts +3 -31
- package/dist/html/writer.d.ts +11 -3
- package/dist/html.d.ts +2 -1
- package/dist/html.js +48 -33
- package/dist/html.mjs +44 -33
- package/package.json +1 -1
- package/dist/dom/reconcile-domdiff.d.ts +0 -2
- package/dist/dom/reconcile-listdiff.d.ts +0 -2
- package/dist/dom/reconcile-longest-increasing-subsequence.d.ts +0 -2
package/dist/common/helpers.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export declare function classValue(value: unknown): string;
|
|
|
2
2
|
export declare function styleValue(value: unknown): string;
|
|
3
3
|
export declare function isVoid(value: unknown): value is false | null | undefined;
|
|
4
4
|
export declare function alphaEncode(num: number): string;
|
|
5
|
+
export declare function normalizeDynamicRenderer<Renderer>(value: any): Renderer | string | undefined;
|
package/dist/common/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Renderer as ClientRenderer } from "../dom/renderer";
|
|
2
|
-
export type Renderer = (...args: unknown[]) => unknown;
|
|
3
2
|
export type CommentWalker = TreeWalker & Record<string, Comment>;
|
|
4
3
|
export type Scope<T extends {
|
|
5
4
|
[x: string | number]: unknown;
|
|
@@ -14,6 +13,7 @@ export type Scope<T extends {
|
|
|
14
13
|
___bound: Map<unknown, unknown> | undefined;
|
|
15
14
|
___renderer: ClientRenderer | undefined;
|
|
16
15
|
___abortControllers: Map<string | number, AbortController> | undefined;
|
|
16
|
+
___cleanupOwner: Scope | undefined;
|
|
17
17
|
$global: Record<string, unknown>;
|
|
18
18
|
_: Scope | undefined;
|
|
19
19
|
[x: string | number]: any;
|
|
@@ -22,7 +22,8 @@ export declare enum ResumeSymbol {
|
|
|
22
22
|
SectionStart = "[",
|
|
23
23
|
SectionEnd = "]",
|
|
24
24
|
SectionSingleNodesEnd = "|",
|
|
25
|
-
Node = "*"
|
|
25
|
+
Node = "*",
|
|
26
|
+
Cleanup = "$"
|
|
26
27
|
}
|
|
27
28
|
export declare enum AccessorChar {
|
|
28
29
|
Dynamic = "?",
|
|
@@ -45,8 +46,6 @@ export declare enum NodeType {
|
|
|
45
46
|
}
|
|
46
47
|
export declare enum WalkCode {
|
|
47
48
|
Get = 32,
|
|
48
|
-
Before = 33,
|
|
49
|
-
After = 35,
|
|
50
49
|
Inside = 36,
|
|
51
50
|
Replace = 37,
|
|
52
51
|
EndChild = 38,
|
|
@@ -81,7 +80,6 @@ export interface TemplateInput extends Input {
|
|
|
81
80
|
$global?: $Global;
|
|
82
81
|
}
|
|
83
82
|
export interface Template {
|
|
84
|
-
_: unknown;
|
|
85
83
|
mount(input: Input, reference: ParentNode & Node, position?: InsertPosition): TemplateInstance;
|
|
86
84
|
render(input?: Input): RenderResult;
|
|
87
85
|
}
|