marko 6.0.116 → 6.0.118
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 +4 -0
- package/dist/debug/dom.mjs +4 -0
- package/dist/debug/html.js +4 -4
- package/dist/debug/html.mjs +3 -3
- package/dist/dom/dom.d.ts +1 -0
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +4 -0
- package/dist/dom.mjs +4 -0
- package/dist/html/content.d.ts +1 -1
- package/dist/html.d.ts +1 -1
- package/dist/html.js +4 -4
- package/dist/html.mjs +3 -3
- package/dist/translator/core/html-script.d.ts +1 -8
- package/dist/translator/core/html-style.d.ts +1 -8
- package/dist/translator/core/index.d.ts +0 -2
- package/dist/translator/core/textarea.d.ts +2 -3
- package/dist/translator/index.d.ts +0 -2
- package/dist/translator/index.js +846 -1756
- package/dist/translator/util/is-non-html-text.d.ts +1 -0
- package/dist/translator/util/references.d.ts +1 -0
- package/dist/translator/util/runtime.d.ts +4 -2
- package/package.json +2 -2
- package/tags/html-comment.d.marko +1 -0
- package/tags/html-script.d.marko +1 -0
- package/tags/html-style.d.marko +1 -0
- package/dist/translator/core/title.d.ts +0 -10
|
@@ -100,6 +100,7 @@ export declare function createSources(state: Sources["state"], param: Sources["p
|
|
|
100
100
|
export declare function compareSources(a: Sources, b: Sources): number;
|
|
101
101
|
export declare function mergeSources(a: undefined | Sources, b: undefined | Sources): Sources | undefined;
|
|
102
102
|
export declare const bindingUtil: Sorted<Binding>;
|
|
103
|
+
export declare const propsUtil: Sorted<string>;
|
|
103
104
|
export declare function dropReferences(node: t.Node | t.Node[]): void;
|
|
104
105
|
export declare function getCanonicalBinding(binding: Binding): Binding;
|
|
105
106
|
export declare function getAllTagReferenceNodes(tag: t.MarkoTag, referenceNodes?: t.Node[]): t.Node[];
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { types as t } from "@marko/compiler";
|
|
2
2
|
import type { Falsy } from "../../common/types";
|
|
3
3
|
import { _attr, _attr_class, _attr_style, _escape, _escape_script, _escape_style, _unescaped } from "../../html";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type DOMRuntimeHelpers = keyof typeof import("../../dom");
|
|
5
|
+
export type HTMLRuntimeHelpers = keyof typeof import("../../html");
|
|
6
|
+
export declare function importRuntime(name: DOMRuntimeHelpers | HTMLRuntimeHelpers): t.MemberExpression;
|
|
7
|
+
export declare function callRuntime(name: DOMRuntimeHelpers | HTMLRuntimeHelpers, ...args: Array<Parameters<typeof t.callExpression>[1][number] | Falsy>): t.CallExpression;
|
|
6
8
|
export declare function getHTMLRuntime(): {
|
|
7
9
|
_escape: typeof _escape;
|
|
8
10
|
_unescaped: typeof _unescaped;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marko",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.118",
|
|
4
4
|
"description": "Optimized runtime for Marko templates.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"build": "node -r ~ts ./scripts/bundle.ts"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@marko/compiler": "^5.39.
|
|
51
|
+
"@marko/compiler": "^5.39.43",
|
|
52
52
|
"csstype": "^3.1.3",
|
|
53
53
|
"magic-string": "^0.30.17"
|
|
54
54
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export interface Input {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export interface Input extends Marko.HTML.Script {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export interface Input extends Marko.HTML.Style {}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type Tag } from "@marko/compiler/babel-utils";
|
|
2
|
-
import { type Binding } from "../util/references";
|
|
3
|
-
declare const kNodeBinding: unique symbol;
|
|
4
|
-
declare module "@marko/compiler/dist/types" {
|
|
5
|
-
interface NodeExtra {
|
|
6
|
-
[kNodeBinding]?: Binding;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
declare const _default: Tag;
|
|
10
|
-
export default _default;
|