marko 6.1.23 → 6.2.0

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.
@@ -0,0 +1,5 @@
1
+ import { type Binding } from "./references";
2
+ import { type Section } from "./sections";
3
+ export declare function getForSelectorKey(bodySection: Section, closure: Binding): Binding | undefined;
4
+ export declare function isForSelectorValue(binding: Binding): boolean;
5
+ export declare function detectForSelector(bodySection: Section, keyBinding: Binding): void;
@@ -69,6 +69,7 @@ interface Read {
69
69
  extra: t.NodeExtra;
70
70
  ownVar: boolean;
71
71
  getter: Getter | undefined;
72
+ comparedTo: t.Node | undefined;
72
73
  }
73
74
  interface ExtraRead {
74
75
  binding: Binding;
@@ -122,12 +123,15 @@ export declare const intersectionMeta: WeakMap<Intersection, {
122
123
  id: number;
123
124
  scopeOffset: Binding | undefined;
124
125
  }>;
126
+ export declare const collapsedIntersectionSource: WeakMap<Intersection, Binding>;
125
127
  export declare function setBindingDownstream(binding: Binding, expr: boolean | Opt<t.NodeExtra>): void;
126
128
  export declare function createSources(state: Sources["state"], param: Sources["param"]): Sources;
127
129
  export declare function compareSources(a: Sources, b: Sources): number;
128
130
  export declare function mergeSources(a: undefined | Sources, b: undefined | Sources): Sources | undefined;
129
131
  export declare const bindingUtil: Sorted<Binding>;
130
132
  export declare const propsUtil: Sorted<string>;
133
+ export declare function onFinalizeReferences(finalize: () => void): void;
134
+ export declare function getExpressionReads(exprExtra: ReferencedExtra): Opt<Read>;
131
135
  export declare function addRead(exprExtra: ReferencedExtra, extra: t.NodeExtra, binding: Binding, section: Section, getter: Getter | undefined): Read;
132
136
  export declare function dropNodes(node: t.Node | t.Node[]): void;
133
137
  export declare function getCanonicalBinding(binding: Binding): Binding;
@@ -20,12 +20,17 @@ export interface Signal {
20
20
  effectReferencedBindings: ReferencedBindings;
21
21
  hasDynamicSubscribers: boolean;
22
22
  hasSideEffect: boolean;
23
+ forcePersist: boolean;
24
+ inline: {
25
+ value: t.Expression;
26
+ } | undefined;
23
27
  export: boolean;
24
28
  extraArgs: t.Expression[] | undefined;
25
29
  prependStatements: t.Statement[] | undefined;
26
30
  buildAssignment: ((valueSection: Section, value: t.Expression) => t.Expression | undefined) | undefined;
27
31
  }
28
32
  type closureSignalBuilder = (closure: Binding, render: t.Expression) => t.Expression;
33
+ export declare const getSignals: (section: Section) => Map<unknown, Signal>;
29
34
  export declare function setClosureSignalBuilder(tag: t.NodePath<t.MarkoTag>, builder: closureSignalBuilder): void;
30
35
  export declare const getTryHasPlaceholder: (section: Section) => true | undefined, setTryHasPlaceholder: (section: Section, value: true | undefined) => void;
31
36
  export declare function setSectionSerializedValue(section: Section, prop: AccessorProp, expression: t.Expression): void;
@@ -0,0 +1,3 @@
1
+ import { types as t } from "@marko/compiler";
2
+ export declare const htmlStyleTagAlternateMsg = " For a native html [`<style>` tag](https://markojs.com/docs/reference/core-tag#style) use the `html-style` core tag instead.";
3
+ export declare function checkStyleInterpolations(tag: t.NodePath<t.MarkoTag>): void;
@@ -1,4 +1,5 @@
1
1
  import { types as t } from "@marko/compiler";
2
+ export declare function getMemberExpressionPropString(expr: t.MemberExpression | t.OptionalMemberExpression): string | undefined;
2
3
  export declare function isValidPropertyIdentifier(name: string): boolean;
3
4
  export declare function toPropertyName(name: string): t.Identifier | t.NumericLiteral | t.StringLiteral;
4
5
  export declare function toObjectProperty(name: string, value: t.Expression): t.ObjectProperty;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.1.23",
3
+ "version": "6.2.0",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",