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.
@@ -1,2 +1,3 @@
1
1
  import { types as t } from "@marko/compiler";
2
2
  export declare function isNonHTMLText(placeholder: t.NodePath<t.MarkoPlaceholder | t.MarkoText>): boolean;
3
+ export declare function isTextOnlyNativeTag(tag: t.NodePath<t.MarkoTag>): boolean;
@@ -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 declare function importRuntime(name: keyof typeof import("../../dom") | keyof typeof import("../../html")): t.MemberExpression;
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;
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.116",
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.42",
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;