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.
- package/dist/common/accessor.d.ts +4 -0
- package/dist/common/accessor.debug.d.ts +4 -0
- package/dist/common/helpers.d.ts +1 -0
- package/dist/common/types.d.ts +1 -1
- package/dist/debug/dom.js +100 -2
- package/dist/debug/dom.mjs +97 -3
- package/dist/debug/html.js +38 -11
- package/dist/debug/html.mjs +35 -12
- package/dist/dom/control-flow.d.ts +1 -0
- package/dist/dom/dom.d.ts +2 -0
- package/dist/dom/signals.d.ts +1 -0
- package/dist/dom.d.ts +3 -3
- package/dist/dom.js +68 -3
- package/dist/dom.mjs +68 -3
- package/dist/html/attrs.d.ts +1 -0
- package/dist/html/content.d.ts +1 -0
- package/dist/html/inlined-runtimes.d.ts +1 -1
- package/dist/html/inlined-runtimes.debug.d.ts +1 -1
- package/dist/html/writer.d.ts +2 -0
- package/dist/html.d.ts +3 -3
- package/dist/html.js +25 -6
- package/dist/html.mjs +25 -6
- package/dist/translator/core/index.d.ts +1 -0
- package/dist/translator/core/show.d.ts +17 -0
- package/dist/translator/core/style.d.ts +6 -0
- package/dist/translator/index.d.ts +1 -0
- package/dist/translator/index.js +587 -76
- package/dist/translator/util/for-selector.d.ts +5 -0
- package/dist/translator/util/references.d.ts +4 -0
- package/dist/translator/util/signals.d.ts +5 -0
- package/dist/translator/util/style-interpolation.d.ts +3 -0
- package/dist/translator/util/to-property-name.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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;
|