marko 6.0.60 → 6.0.61
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/debug/dom.js +278 -296
- package/dist/debug/dom.mjs +278 -296
- package/dist/debug/html.js +219 -219
- package/dist/debug/html.mjs +169 -169
- package/dist/dom/abort-signal.d.ts +2 -2
- package/dist/dom/control-flow.d.ts +8 -8
- package/dist/dom/controllable.d.ts +11 -11
- package/dist/dom/dom.d.ts +17 -18
- package/dist/dom/event.d.ts +1 -1
- package/dist/dom/queue.d.ts +1 -1
- package/dist/dom/renderer.d.ts +4 -4
- package/dist/dom/resume.d.ts +3 -3
- package/dist/dom/signals.d.ts +14 -14
- package/dist/dom/template.d.ts +1 -1
- package/dist/dom.d.ts +10 -10
- package/dist/dom.js +254 -265
- package/dist/dom.mjs +254 -265
- package/dist/html/attrs.d.ts +14 -14
- package/dist/html/compat.d.ts +5 -5
- package/dist/html/content.d.ts +4 -4
- package/dist/html/dynamic-tag.d.ts +3 -3
- package/dist/html/template.d.ts +1 -1
- package/dist/html/writer.d.ts +26 -26
- package/dist/html.d.ts +5 -5
- package/dist/html.js +210 -210
- package/dist/html.mjs +160 -160
- package/dist/translator/index.js +500 -482
- package/dist/translator/util/runtime.d.ts +8 -8
- package/dist/translator/util/signals.d.ts +1 -1
- package/package.json +1 -1
@@ -1,15 +1,15 @@
|
|
1
1
|
import { types as t } from "@marko/compiler";
|
2
2
|
import type { Falsy } from "../../common/types";
|
3
|
-
import {
|
3
|
+
import { _attr, _attr_class, _attr_style, _escape, _escape_script, _escape_style, _unescaped } from "../../html";
|
4
4
|
export declare function importRuntime(name: keyof typeof import("../../dom") | keyof typeof import("../../html")): t.MemberExpression;
|
5
5
|
export declare function callRuntime(name: keyof typeof import("../../dom") | keyof typeof import("../../html"), ...args: Array<Parameters<typeof t.callExpression>[1][number] | Falsy>): t.CallExpression;
|
6
6
|
export declare function getHTMLRuntime(): {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
_escape: typeof _escape;
|
8
|
+
_unescaped: typeof _unescaped;
|
9
|
+
_attr: typeof _attr;
|
10
|
+
_attr_class: typeof _attr_class;
|
11
|
+
_attr_style: typeof _attr_style;
|
12
|
+
_escape_script: typeof _escape_script;
|
13
|
+
_escape_style: typeof _escape_style;
|
14
14
|
};
|
15
15
|
export declare function getCompatRuntimeFile(): string;
|
@@ -33,7 +33,7 @@ export declare function setSerializedValue(section: Section, key: string, expres
|
|
33
33
|
export declare const getHTMLSectionStatements: (section: Section) => t.Statement[];
|
34
34
|
export declare function getHoistFunctionIdentifier(hoistedBinding: Binding): t.Identifier;
|
35
35
|
export declare function getSignal(section: Section, referencedBindings: ReferencedBindings, name?: string): Signal;
|
36
|
-
export declare function initValue(binding: Binding,
|
36
|
+
export declare function initValue(binding: Binding, isLet?: boolean): Signal;
|
37
37
|
export declare function getSignalFn(signal: Signal): t.Expression;
|
38
38
|
export declare function subscribe(references: ReferencedBindings, subscriber: Signal): void;
|
39
39
|
export declare function replaceNullishAndEmptyFunctionsWith0(args: (t.Expression | undefined | false)[]): t.Expression[];
|