marko 6.0.101 → 6.0.103
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 +37 -22
- package/dist/common/accessor.debug.d.ts +18 -3
- package/dist/common/errors.d.ts +4 -0
- package/dist/common/helpers.d.ts +1 -0
- package/dist/common/meta.d.ts +1 -0
- package/dist/common/types.d.ts +20 -17
- package/dist/debug/dom.js +253 -141
- package/dist/debug/dom.mjs +253 -141
- package/dist/debug/html.js +65 -4
- package/dist/debug/html.mjs +65 -4
- package/dist/dom/abort-signal.d.ts +1 -1
- package/dist/dom/control-flow.d.ts +7 -6
- package/dist/dom/queue.d.ts +1 -1
- package/dist/dom/reconcile.d.ts +1 -1
- package/dist/dom/renderer.d.ts +3 -3
- package/dist/dom/resume.d.ts +3 -3
- package/dist/dom/scope.d.ts +2 -2
- package/dist/dom/signals.d.ts +8 -8
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +250 -204
- package/dist/dom.mjs +250 -204
- package/dist/html/writer.d.ts +1 -1
- package/dist/html.js +32 -31
- package/dist/html.mjs +32 -31
- package/dist/translator/index.js +281 -209
- package/dist/translator/util/references.d.ts +2 -2
- package/dist/translator/util/scope-read.d.ts +1 -1
- package/dist/translator/util/signals.d.ts +0 -1
- package/dist/translator/util/tag-name-type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -102,8 +102,8 @@ export declare const bindingUtil: Sorted<Binding>;
|
|
|
102
102
|
export declare function dropReferences(node: t.Node | t.Node[]): void;
|
|
103
103
|
export declare function getCanonicalBinding(binding: Binding): Binding;
|
|
104
104
|
export declare function getAllTagReferenceNodes(tag: t.MarkoTag, referenceNodes?: t.Node[]): t.Node[];
|
|
105
|
-
export declare function getScopeAccessorLiteral(binding: Binding, includeId?: boolean): t.StringLiteral | t.NumericLiteral;
|
|
106
|
-
export declare function getScopeAccessor(binding: Binding, includeId?: boolean): string;
|
|
105
|
+
export declare function getScopeAccessorLiteral(binding: Binding, encoded?: boolean, includeId?: boolean): t.StringLiteral | t.NumericLiteral;
|
|
106
|
+
export declare function getScopeAccessor(binding: Binding, encoded?: boolean, includeId?: boolean): string;
|
|
107
107
|
export declare function getDebugScopeAccess(binding: Binding): {
|
|
108
108
|
root: Binding;
|
|
109
109
|
access: string;
|
|
@@ -3,4 +3,4 @@ import { type Binding, type ReferencedBindings } from "./references";
|
|
|
3
3
|
import type { Section } from "./sections";
|
|
4
4
|
export declare function createScopeReadPattern(section: Section, referencedBindings: ReferencedBindings): t.ObjectPattern;
|
|
5
5
|
export declare function getScopeExpression(section: Section, targetSection: Section): t.Identifier | t.MemberExpression;
|
|
6
|
-
export declare function createScopeReadExpression(
|
|
6
|
+
export declare function createScopeReadExpression(reference: Binding, section?: Section | undefined): t.MemberExpression;
|
|
@@ -5,7 +5,6 @@ import { type Binding, type ReferencedBindings } from "./references";
|
|
|
5
5
|
import { type Section } from "./sections";
|
|
6
6
|
export type Signal = {
|
|
7
7
|
identifier: t.Identifier;
|
|
8
|
-
valueAccessor?: t.Expression;
|
|
9
8
|
referencedBindings: ReferencedBindings;
|
|
10
9
|
section: Section;
|
|
11
10
|
build: undefined | (() => t.Expression | undefined);
|
|
@@ -13,4 +13,4 @@ export declare enum TagNameType {
|
|
|
13
13
|
DynamicTag = 2,
|
|
14
14
|
AttributeTag = 3
|
|
15
15
|
}
|
|
16
|
-
export default function analyzeTagNameType(tag: t.NodePath<t.MarkoTag
|
|
16
|
+
export default function analyzeTagNameType(tag: t.NodePath<t.MarkoTag>, allowDynamic?: boolean): TagNameType;
|