marko 6.0.155 → 6.0.157

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.
@@ -3,6 +3,7 @@ declare module "@marko/compiler/dist/types" {
3
3
  interface ProgramExtra {
4
4
  needsCompat?: boolean;
5
5
  isInteractive?: boolean;
6
+ page?: boolean;
6
7
  }
7
8
  }
8
9
  type EntryFile = t.BabelFile & {
@@ -63,11 +63,13 @@ export interface Getter {
63
63
  interface Read {
64
64
  binding: Binding;
65
65
  extra: t.NodeExtra;
66
+ ownVar: boolean;
66
67
  getter: Getter | undefined;
67
68
  }
68
69
  interface ExtraRead {
69
70
  binding: Binding;
70
71
  props: Opt<string>;
72
+ ownVar: boolean;
71
73
  getter: Getter | undefined;
72
74
  }
73
75
  declare module "@marko/compiler/dist/types" {
@@ -107,6 +109,7 @@ export declare function getOrCreatePropertyAlias(binding: Binding, property: str
107
109
  export declare function trackDomVarReferences(tag: t.NodePath<t.MarkoTag>, binding: Binding): Binding | undefined;
108
110
  export declare function trackVarReferences(tag: t.NodePath<t.MarkoTag>, type: BindingType, upstreamAlias?: Binding["upstreamAlias"]): Binding | undefined;
109
111
  export declare function trackParamsReferences(body: t.NodePath<t.MarkoTagBody | t.Program>, type: BindingType): Binding | undefined;
112
+ export declare function isReferenceInOwnBody(bindingPath: t.NodePath, reference: t.NodePath): boolean;
110
113
  export declare function isReferenceHoisted(bindingPath: t.NodePath, reference: t.NodePath): boolean;
111
114
  export declare function setReferencesScope(path: t.NodePath<any>): void;
112
115
  export declare function mergeReferences<T extends t.Node>(section: Section, target: T, nodes: (t.Node | undefined)[]): NonNullable<T["extra"]> & ReferencedExtra;
@@ -139,7 +142,8 @@ export declare function getSectionInstancesAccessorLiteral(section: Section): t.
139
142
  export declare function getReadReplacement(node: t.Identifier | t.MemberExpression | t.OptionalMemberExpression, signal?: Signal): t.Expression | undefined;
140
143
  export declare function hasNonConstantPropertyAlias(ref: Binding): boolean;
141
144
  export declare function pruneBinding(binding: Binding): boolean;
142
- export declare function createRead(binding: Binding, props: Opt<string>, getter: Getter | undefined): ExtraRead;
145
+ export declare function createRead(binding: Binding, props: Opt<string>, ownVar?: boolean): ExtraRead;
146
+ export declare function createGetterRead(binding: Binding, props: Opt<string>, getter: Getter): ExtraRead;
143
147
  export declare function getObjectPropertyKeyString(expr: t.ObjectProperty | t.ObjectMethod): string | undefined;
144
148
  export interface ReferencedExtra extends t.NodeExtra {
145
149
  section: Section;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.155",
3
+ "version": "6.0.157",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",
@@ -49,7 +49,7 @@
49
49
  "build": "node -r ~ts ./scripts/bundle.ts"
50
50
  },
51
51
  "dependencies": {
52
- "@marko/compiler": "^5.39.60",
52
+ "@marko/compiler": "^5.39.61",
53
53
  "csstype": "^3.2.3",
54
54
  "fastest-levenshtein": "^1.0.16",
55
55
  "magic-string": "^0.30.21"
package/tags-html.d.ts CHANGED
@@ -1393,6 +1393,12 @@ declare global {
1393
1393
  */
1394
1394
  value?: AttrStringOrNumber;
1395
1395
 
1396
+ /**
1397
+ * Indicates that the file input allows the user to select a directory instead of a file.
1398
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory
1399
+ */
1400
+ webkitdirectory?: AttrBoolean;
1401
+
1396
1402
  /**
1397
1403
  * The width of an image input in pixels.
1398
1404
  * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width