@memoized-dom/compiler 0.0.5 → 0.0.6
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/README.md +106 -78
- package/dist/analysis/access-table.d.ts +1 -1
- package/dist/analysis/access-table.d.ts.map +1 -1
- package/dist/analysis/component-graph.d.ts +16 -1
- package/dist/analysis/component-graph.d.ts.map +1 -1
- package/dist/analysis/component-reads.d.ts +1 -1
- package/dist/analysis/component-reads.d.ts.map +1 -1
- package/dist/analysis/computed.d.ts +9 -5
- package/dist/analysis/computed.d.ts.map +1 -1
- package/dist/analysis/instance-control-flow.d.ts +1 -1
- package/dist/analysis/instance-control-flow.d.ts.map +1 -1
- package/dist/analysis/instance.d.ts +3 -4
- package/dist/analysis/instance.d.ts.map +1 -1
- package/dist/analysis/module-discovery.d.ts +27 -0
- package/dist/analysis/module-discovery.d.ts.map +1 -0
- package/dist/analysis/opaque-volatility.d.ts +1 -1
- package/dist/analysis/opaque-volatility.d.ts.map +1 -1
- package/dist/analysis/runtime-pattern.d.ts +3 -4
- package/dist/analysis/runtime-pattern.d.ts.map +1 -1
- package/dist/analysis/type-candidates.d.ts +15 -3
- package/dist/analysis/type-candidates.d.ts.map +1 -1
- package/dist/analysis.d.ts +7 -4
- package/dist/analysis.d.ts.map +1 -1
- package/dist/ast/builders.d.ts +108 -0
- package/dist/ast/builders.d.ts.map +1 -0
- package/dist/ast/compiler-types.d.ts +196 -0
- package/dist/ast/compiler-types.d.ts.map +1 -0
- package/dist/ast/factory.d.ts +139 -0
- package/dist/ast/factory.d.ts.map +1 -0
- package/dist/ast/index.d.ts +15 -0
- package/dist/ast/index.d.ts.map +1 -0
- package/dist/ast/mutate.d.ts +17 -0
- package/dist/ast/mutate.d.ts.map +1 -0
- package/dist/ast/normalize.d.ts +9 -0
- package/dist/ast/normalize.d.ts.map +1 -0
- package/dist/ast/parser.d.ts +72 -0
- package/dist/ast/parser.d.ts.map +1 -0
- package/dist/ast/printer.d.ts +23 -0
- package/dist/ast/printer.d.ts.map +1 -0
- package/dist/ast/scope.d.ts +44 -0
- package/dist/ast/scope.d.ts.map +1 -0
- package/dist/ast/strip-typescript.d.ts +9 -0
- package/dist/ast/strip-typescript.d.ts.map +1 -0
- package/dist/ast/transform.d.ts +21 -0
- package/dist/ast/transform.d.ts.map +1 -0
- package/dist/ast/tsrx/frontend.d.ts +8 -0
- package/dist/ast/tsrx/frontend.d.ts.map +1 -0
- package/dist/ast/tsrx/index.d.ts +5 -0
- package/dist/ast/tsrx/index.d.ts.map +1 -0
- package/dist/ast/tsrx/lower.d.ts +8 -0
- package/dist/ast/tsrx/lower.d.ts.map +1 -0
- package/dist/ast/tsrx/style.d.ts +8 -0
- package/dist/ast/tsrx/style.d.ts.map +1 -0
- package/dist/ast/tsrx/types.d.ts +50 -0
- package/dist/ast/tsrx/types.d.ts.map +1 -0
- package/dist/ast/types.d.ts +478 -0
- package/dist/ast/types.d.ts.map +1 -0
- package/dist/ast/walk.d.ts +22 -0
- package/dist/ast/walk.d.ts.map +1 -0
- package/dist/cells.d.ts +10 -0
- package/dist/cells.d.ts.map +1 -0
- package/dist/compile.d.ts +14 -20
- package/dist/compile.d.ts.map +1 -1
- package/dist/components/callback-props.d.ts +1 -1
- package/dist/components/callback-props.d.ts.map +1 -1
- package/dist/components/calls.d.ts +1 -1
- package/dist/components/calls.d.ts.map +1 -1
- package/dist/components/children.d.ts +3 -2
- package/dist/components/children.d.ts.map +1 -1
- package/dist/components/declarations.d.ts +10 -3
- package/dist/components/declarations.d.ts.map +1 -1
- package/dist/components/jsx-values.d.ts +2 -4
- package/dist/components/jsx-values.d.ts.map +1 -1
- package/dist/components/local-derived.d.ts +1 -1
- package/dist/components/local-derived.d.ts.map +1 -1
- package/dist/components/manifest.d.ts +2 -3
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/prop-effects.d.ts.map +1 -1
- package/dist/components/prop-linker.d.ts.map +1 -1
- package/dist/components/prop-origins.d.ts +2 -0
- package/dist/components/prop-origins.d.ts.map +1 -1
- package/dist/components/prop-projections.d.ts.map +1 -1
- package/dist/components/prop-shape.d.ts +11 -0
- package/dist/components/prop-shape.d.ts.map +1 -0
- package/dist/components/props.d.ts +9 -1
- package/dist/components/props.d.ts.map +1 -1
- package/dist/components/ref-props.d.ts.map +1 -1
- package/dist/components/render-callbacks.d.ts +7 -3
- package/dist/components/render-callbacks.d.ts.map +1 -1
- package/dist/components/render-functions.d.ts +1 -0
- package/dist/components/render-functions.d.ts.map +1 -1
- package/dist/components/render-prelude.d.ts +1 -1
- package/dist/components/render-prelude.d.ts.map +1 -1
- package/dist/components/return-plan.d.ts +13 -7
- package/dist/components/return-plan.d.ts.map +1 -1
- package/dist/conds.d.ts +6 -3
- package/dist/conds.d.ts.map +1 -1
- package/dist/context/ast.d.ts +11 -2
- package/dist/context/ast.d.ts.map +1 -1
- package/dist/context/model.d.ts +111 -7
- package/dist/context/model.d.ts.map +1 -1
- package/dist/data-sources.d.ts +78 -0
- package/dist/data-sources.d.ts.map +1 -0
- package/dist/diagnostics.d.ts +2 -0
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/effects.d.ts +13 -5
- package/dist/effects.d.ts.map +1 -1
- package/dist/emission/component.d.ts +3 -3
- package/dist/emission/component.d.ts.map +1 -1
- package/dist/emission/conditional-region.d.ts +6 -5
- package/dist/emission/conditional-region.d.ts.map +1 -1
- package/dist/emission/dom-template.d.ts.map +1 -1
- package/dist/emission/list-region.d.ts +5 -4
- package/dist/emission/list-region.d.ts.map +1 -1
- package/dist/emission/node-emitter.d.ts +4 -3
- package/dist/emission/node-emitter.d.ts.map +1 -1
- package/dist/emission/render-callback.d.ts +4 -3
- package/dist/emission/render-callback.d.ts.map +1 -1
- package/dist/emission/route-region.d.ts +4 -3
- package/dist/emission/route-region.d.ts.map +1 -1
- package/dist/emission/scope.d.ts +13 -1
- package/dist/emission/scope.d.ts.map +1 -1
- package/dist/emit.d.ts +5 -4
- package/dist/emit.d.ts.map +1 -1
- package/dist/errors.d.ts +15 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/handler-commits.d.ts +6 -1
- package/dist/handler-commits.d.ts.map +1 -1
- package/dist/handler-origin.d.ts +1 -1
- package/dist/handler-origin.d.ts.map +1 -1
- package/dist/handlers/analyze.d.ts +1 -1
- package/dist/handlers/analyze.d.ts.map +1 -1
- package/dist/handlers/local-calls.d.ts +2 -2
- package/dist/handlers/local-calls.d.ts.map +1 -1
- package/dist/handlers.d.ts +6 -5
- package/dist/handlers.d.ts.map +1 -1
- package/dist/helper-summaries.d.ts +2 -3
- package/dist/helper-summaries.d.ts.map +1 -1
- package/dist/identifiers.d.ts +13 -8
- package/dist/identifiers.d.ts.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/jsx/attributes.d.ts +1 -1
- package/dist/jsx/attributes.d.ts.map +1 -1
- package/dist/jsx/children.d.ts +1 -1
- package/dist/jsx/children.d.ts.map +1 -1
- package/dist/jsx/conditional-directives.d.ts +12 -3
- package/dist/jsx/conditional-directives.d.ts.map +1 -1
- package/dist/jsx/dom-attributes.d.ts +1 -1
- package/dist/jsx/dom-attributes.d.ts.map +1 -1
- package/dist/jsx/dynamic-tags.d.ts +9 -15
- package/dist/jsx/dynamic-tags.d.ts.map +1 -1
- package/dist/jsx/events.d.ts +2 -2
- package/dist/jsx/events.d.ts.map +1 -1
- package/dist/jsx/refs.d.ts +5 -4
- package/dist/jsx/refs.d.ts.map +1 -1
- package/dist/jsx/svg.d.ts +2 -2
- package/dist/jsx/svg.d.ts.map +1 -1
- package/dist/jsx-types.d.ts +4 -1
- package/dist/jsx-types.d.ts.map +1 -1
- package/dist/lifecycle.d.ts +10 -5
- package/dist/lifecycle.d.ts.map +1 -1
- package/dist/linker.d.ts +7 -1
- package/dist/linker.d.ts.map +1 -1
- package/dist/lists/calculated-sources.d.ts +1 -1
- package/dist/lists/calculated-sources.d.ts.map +1 -1
- package/dist/lists/map-site.d.ts +11 -5
- package/dist/lists/map-site.d.ts.map +1 -1
- package/dist/lists/source-shapes.d.ts +12 -3
- package/dist/lists/source-shapes.d.ts.map +1 -1
- package/dist/lists/static-derived.d.ts +37 -0
- package/dist/lists/static-derived.d.ts.map +1 -0
- package/dist/lists/targeted-refresh.d.ts +9 -2
- package/dist/lists/targeted-refresh.d.ts.map +1 -1
- package/dist/module-control-flow.d.ts +7 -6
- package/dist/module-control-flow.d.ts.map +1 -1
- package/dist/mutation-analysis.d.ts +22 -8
- package/dist/mutation-analysis.d.ts.map +1 -1
- package/dist/plugin.d.ts +10 -6
- package/dist/plugin.d.ts.map +1 -1
- package/dist/router.d.ts +8 -4
- package/dist/router.d.ts.map +1 -1
- package/dist/server-functions.d.ts +49 -0
- package/dist/server-functions.d.ts.map +1 -0
- package/package.json +34 -36
package/dist/jsx/attributes.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* overrides. This module converts attributes into one object expression while
|
|
6
6
|
* delegating explicit event instrumentation to the owning emitter.
|
|
7
7
|
*/
|
|
8
|
-
import * as t from '
|
|
8
|
+
import type * as t from '../ast/compiler-types';
|
|
9
9
|
export interface OrderedAttributes {
|
|
10
10
|
expression: t.ObjectExpression;
|
|
11
11
|
sources: t.Expression[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../src/jsx/attributes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../src/jsx/attributes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAOhD,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,CAAC,CAAC,gBAAgB,CAAC;IAC/B,OAAO,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC;IACxB,8EAA8E;IAC9E,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,UAAU,KAAK,CAAC,CAAC,UAAU,CAAC;IACjE,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,UAAU,KAAK,CAAC,CAAC,UAAU,CAAC;IACrE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;CAC9B;AAED,yEAAyE;AACzE,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,kBAAkB,CAAC,EAAE,EAC9D,OAAO,EAAE,uBAAuB,GAC/B,iBAAiB,CA8CnB;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,CAAC,CAAC,aAAa,GAAG,CAAC,CAAC,iBAAiB,GAC1C,MAAM,CAIR"}
|
package/dist/jsx/children.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* classifies text, nodes, lists, conditional regions, and forwarded slots
|
|
6
6
|
* without deciding when the eventual parent node is created.
|
|
7
7
|
*/
|
|
8
|
-
import * as t from '
|
|
8
|
+
import type * as t from '../ast/compiler-types';
|
|
9
9
|
import { type JsxChild } from '../components/children';
|
|
10
10
|
import { type MapCallExpression } from '../lists';
|
|
11
11
|
export type JsxNode = t.JSXElement | t.JSXFragment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"children.d.ts","sourceRoot":"","sources":["../../src/jsx/children.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"children.d.ts","sourceRoot":"","sources":["../../src/jsx/children.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAKhD,OAAO,EAEL,KAAK,QAAQ,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEhE,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAC5B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE,GAC/C;IACE,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,EAAE,CAAC,CAAC,qBAAqB,GAAG,CAAC,CAAC,iBAAiB,CAAC;CAC3D,GACD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,CAAC,CAAC,UAAU,CAAA;CAAE,CAAC;AAE/C,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,UAAU,GAAG,MAAM,CAAC;IAC3C,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IAChC,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC,UAAU,GAAG,OAAO,CAAC;IAC/C,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;CAC9B;AA2BD,wEAAwE;AACxE,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,SAAS,QAAQ,EAAE,EAC7B,QAAQ,EAAE,mBAAmB,GAC5B,oBAAoB,EAAE,CAkExB"}
|
|
@@ -5,8 +5,17 @@
|
|
|
5
5
|
* the structural-region pipeline already understands. Formatting whitespace
|
|
6
6
|
* and JSX comments do not interrupt a chain.
|
|
7
7
|
*/
|
|
8
|
-
import type
|
|
9
|
-
|
|
8
|
+
import type * as t from '../ast/compiler-types';
|
|
9
|
+
interface ErrorPath {
|
|
10
|
+
buildCodeFrameError(message: string): Error;
|
|
11
|
+
}
|
|
12
|
+
interface ProgramContainer extends ErrorPath {
|
|
13
|
+
node: t.Program;
|
|
14
|
+
scope?: {
|
|
15
|
+
crawl(): void;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
10
18
|
/** Lower conditional JSX directives before route and reactivity analysis. */
|
|
11
|
-
export declare function normalizeConditionalJsxDirectives(programPath:
|
|
19
|
+
export declare function normalizeConditionalJsxDirectives(programPath: ProgramContainer): void;
|
|
20
|
+
export {};
|
|
12
21
|
//# sourceMappingURL=conditional-directives.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conditional-directives.d.ts","sourceRoot":"","sources":["../../src/jsx/conditional-directives.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"conditional-directives.d.ts","sourceRoot":"","sources":["../../src/jsx/conditional-directives.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAShD,UAAU,SAAS;IACjB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;CAC7C;AAED,UAAU,gBAAiB,SAAQ,SAAS;IAC1C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE;QAAE,KAAK,IAAI,IAAI,CAAA;KAAE,CAAC;CAC3B;AAoLD,6EAA6E;AAC7E,wBAAgB,iCAAiC,CAC/C,WAAW,EAAE,gBAAgB,GAC5B,IAAI,CA0CN"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* dynamic. Explicit HTML properties and mapped attributes can instead become
|
|
6
6
|
* direct DOM operations, avoiding unrelated runtime style/SVG machinery.
|
|
7
7
|
*/
|
|
8
|
-
import * as t from '
|
|
8
|
+
import type * as t from '../ast/compiler-types';
|
|
9
9
|
export declare function domPropertyName(name: string, elementIsSvg: boolean): string | null;
|
|
10
10
|
export declare function isMappedDomAttribute(name: string, elementIsSvg: boolean): boolean;
|
|
11
11
|
export declare function domPropertyWrite(varName: string, name: string, value: t.Expression): t.Statement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom-attributes.d.ts","sourceRoot":"","sources":["../../src/jsx/dom-attributes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"dom-attributes.d.ts","sourceRoot":"","sources":["../../src/jsx/dom-attributes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AA4BhD,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,OAAO,GACpB,MAAM,GAAG,IAAI,CAEf;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,OAAO,GACpB,OAAO,CAET;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,CAAC,UAAU,GAClB,CAAC,CAAC,SAAS,CAiDb;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,CAAC,UAAU,GAClB,CAAC,CAAC,SAAS,CA2Cb"}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Known string/component candidates become ordinary JSX branches selected by
|
|
5
|
-
* the authored binding value. Existing conditional regions then own identity,
|
|
6
|
-
* updates, and teardown without a runtime virtual-node representation.
|
|
7
|
-
*/
|
|
8
|
-
import type { NodePath } from '@babel/traverse';
|
|
9
|
-
import * as t from '@babel/types';
|
|
1
|
+
/** Finite dynamic JSX tag lowering over parser-neutral AST metadata. */
|
|
2
|
+
import type * as t from '../ast/compiler-types';
|
|
10
3
|
import { type Ctx } from '../context';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
export declare function installLinkedDynamicComponentImports(ctx: Ctx, programPath:
|
|
4
|
+
interface ProgramContainer {
|
|
5
|
+
node: t.Program;
|
|
6
|
+
}
|
|
7
|
+
/** Install finite linked component candidates before ordinary import analysis. */
|
|
8
|
+
export declare function installLinkedDynamicComponentImports(ctx: Ctx, programPath: ProgramContainer): void;
|
|
16
9
|
/** Discover local component registries/helper returns before tag lowering. */
|
|
17
|
-
export declare function scanLocalDynamicComponentCandidates(ctx: Ctx, programPath:
|
|
10
|
+
export declare function scanLocalDynamicComponentCandidates(ctx: Ctx, programPath: ProgramContainer): void;
|
|
18
11
|
/** Lower dynamic identifier/member JSX names before component validation. */
|
|
19
12
|
export declare function normalizeDynamicTags(ctx: Ctx): void;
|
|
13
|
+
export {};
|
|
20
14
|
//# sourceMappingURL=dynamic-tags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-tags.d.ts","sourceRoot":"","sources":["../../src/jsx/dynamic-tags.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dynamic-tags.d.ts","sourceRoot":"","sources":["../../src/jsx/dynamic-tags.ts"],"names":[],"mappings":"AAAA,wEAAwE;AAExE,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAahD,OAAO,EAOL,KAAK,GAAG,EACT,MAAM,YAAY,CAAC;AAQpB,UAAU,gBAAgB;IACxB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC;CACjB;AAmED,kFAAkF;AAClF,wBAAgB,oCAAoC,CAClD,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,gBAAgB,GAC5B,IAAI,CAkEN;AAuMD,8EAA8E;AAC9E,wBAAgB,mCAAmC,CACjD,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,gBAAgB,GAC5B,IAAI,CAkCN;AA2ND,6EAA6E;AAC7E,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAkHnD"}
|
package/dist/jsx/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Shared host-event shape facts used by analysis, linking, and emission. */
|
|
2
|
-
import
|
|
3
|
-
export declare function hostJsxEventNames(body:
|
|
2
|
+
import { type BaseNode } from '../ast';
|
|
3
|
+
export declare function hostJsxEventNames(body: BaseNode): string[];
|
|
4
4
|
//# sourceMappingURL=events.d.ts.map
|
package/dist/jsx/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/jsx/events.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAE7E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/jsx/events.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAE7E,OAAO,EAAW,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAwBhD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,EAAE,CAoB1D"}
|
package/dist/jsx/refs.d.ts
CHANGED
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
* Assignable source expressions are sinks, not reads. They become ordinary
|
|
5
5
|
* callback adapters so forwarding needs no public ref wrapper or special key.
|
|
6
6
|
*/
|
|
7
|
-
import type
|
|
8
|
-
import
|
|
9
|
-
import type { Ctx } from '../context';
|
|
7
|
+
import type * as t from '../ast/compiler-types';
|
|
8
|
+
import { type Ctx } from '../context';
|
|
10
9
|
import type { EmitScope } from '../emission/scope';
|
|
10
|
+
type ComponentPath = Ctx['compPaths'] extends Map<string, infer TPath> ? TPath : never;
|
|
11
11
|
/** Compile one source ref into callback/array values understood by mountRef. */
|
|
12
|
-
export declare function compileRefValue(ctx: Ctx, componentPath:
|
|
12
|
+
export declare function compileRefValue(ctx: Ctx, componentPath: ComponentPath, componentName: string, expression: t.Expression): t.Expression;
|
|
13
13
|
/** Emit one mount operation and attach its disposer to this scope's policy. */
|
|
14
14
|
export declare function emitRefMount(ctx: Ctx, scope: EmitScope, node: t.Expression, ownerId: t.Expression, value: t.Expression): void;
|
|
15
|
+
export {};
|
|
15
16
|
//# sourceMappingURL=refs.d.ts.map
|
package/dist/jsx/refs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../src/jsx/refs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../src/jsx/refs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAIhD,OAAO,EAAgB,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAGpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,KAAK,aAAa,GAAG,GAAG,CAAC,WAAW,CAAC,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,GAClE,KAAK,GACL,KAAK,CAAC;AAEV,gFAAgF;AAChF,wBAAgB,eAAe,CAC7B,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,CAAC,CAAC,UAAU,GACvB,CAAC,CAAC,UAAU,CA8Bd;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,CAC1B,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,CAAC,CAAC,UAAU,EAClB,OAAO,EAAE,CAAC,CAAC,UAAU,EACrB,KAAK,EAAE,CAAC,CAAC,UAAU,GAClB,IAAI,CAyBN"}
|
package/dist/jsx/svg.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* imported icon component can return `<path>` without receiving a runtime
|
|
6
6
|
* namespace argument through the component ABI.
|
|
7
7
|
*/
|
|
8
|
-
import * as t from '
|
|
8
|
+
import type * as t from '../ast/compiler-types';
|
|
9
9
|
export declare function isSvgElement(tag: string, parentIsSvg: boolean): boolean;
|
|
10
|
-
export declare function createElementExpression(tag: string, svg: boolean): t.CallExpression;
|
|
10
|
+
export declare function createElementExpression(document: t.Expression, tag: string, svg: boolean): t.CallExpression;
|
|
11
11
|
//# sourceMappingURL=svg.d.ts.map
|
package/dist/jsx/svg.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../src/jsx/svg.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../src/jsx/svg.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAkEhD,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,OAAO,CAEvE;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,CAAC,CAAC,UAAU,EACtB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,OAAO,GACX,CAAC,CAAC,cAAc,CAgBlB"}
|
package/dist/jsx-types.d.ts
CHANGED
|
@@ -28,11 +28,14 @@ declare global {
|
|
|
28
28
|
if?: boolean;
|
|
29
29
|
'else-if'?: boolean;
|
|
30
30
|
else?: true;
|
|
31
|
+
suspend?: true;
|
|
31
32
|
route?: RouteValue;
|
|
32
33
|
'route-to'?: RouteValue | RouteToDestination;
|
|
33
34
|
}
|
|
34
35
|
interface IntrinsicElements {
|
|
35
|
-
[name: string]:
|
|
36
|
+
[name: string]: {
|
|
37
|
+
[attribute: string]: unknown;
|
|
38
|
+
};
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
}
|
package/dist/jsx-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-types.d.ts","sourceRoot":"","sources":["../src/jsx-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb;;;OAGG;IACH,SAAS,OAAO,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;IAEnD;;;OAGG;IACH,SAAS,MAAM,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IAE3D,oEAAoE;IACpE,UAAU,GAAG,CAAC;QACZ,KAAK,UAAU,GAAG,IAAI,MAAM,EAAE,CAAC;QAE/B,UAAU,kBAAkB;YAC1B,IAAI,EAAE,UAAU,CAAC;YACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;YAC5D,KAAK,CAAC,EAAE,MAAM,CACZ,MAAM,EACJ,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,IAAI,GACJ,SAAS,GACT,SAAS,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CACrE,CAAC;YACF,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,OAAO,CAAC,EAAE,OAAO,CAAC;SACnB;QAED,UAAU,wBAAwB;YAChC,QAAQ,EAAE,OAAO,CAAC;SACnB;QAED,UAAU,mBAAmB;YAC3B,GAAG,CAAC,EAAE,OAAO,CAAC;YACd,EAAE,CAAC,EAAE,OAAO,CAAC;YACb,SAAS,CAAC,EAAE,OAAO,CAAC;YACpB,IAAI,CAAC,EAAE,IAAI,CAAC;YACZ,KAAK,CAAC,EA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ACZ,OAAO,CAAC,EAAE,IAAI,CAAC;YACf,KAAK,CAAC,EAAE,UAAU,CAAC;YACnB,UAAU,CAAC,EAAE,UAAU,GAAG,kBAAkB,CAAC;SAC9C;QAED,UAAU,iBAAiB;YACzB,CAAC,IAAI,EAAE,MAAM,GAAG;gBACd,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;aAC9B,CAAC;SACH;KACF;CACF"}
|
package/dist/lifecycle.d.ts
CHANGED
|
@@ -6,19 +6,23 @@
|
|
|
6
6
|
* deliberately API-agnostic: any function passed from factory setup receives
|
|
7
7
|
* its own normal-exit invalidation when it writes reactive state.
|
|
8
8
|
*/
|
|
9
|
-
import type
|
|
10
|
-
import * as t from '@babel/types';
|
|
9
|
+
import type * as t from './ast/compiler-types';
|
|
11
10
|
import { type Ctx, type RowCtx } from './context';
|
|
11
|
+
type ComponentPath = Ctx['compPaths'] extends Map<string, infer TPath> ? TPath : never;
|
|
12
|
+
interface ProgramContainer {
|
|
13
|
+
node: t.Program;
|
|
14
|
+
buildCodeFrameError(message: string): Error;
|
|
15
|
+
}
|
|
12
16
|
/**
|
|
13
17
|
* Lower direct cleanup registrations and instrument callbacks retained by
|
|
14
18
|
* setup calls. Callback liveness is automatic; cancellation remains explicit.
|
|
15
19
|
*/
|
|
16
|
-
export declare function transformComponentLifecycle(ctx: Ctx, compPath:
|
|
20
|
+
export declare function transformComponentLifecycle(ctx: Ctx, compPath: ComponentPath, compName: string, factoryId: string, rowCtx?: RowCtx): void;
|
|
17
21
|
/**
|
|
18
22
|
* Instrument callbacks retained by module initialization. They have no
|
|
19
23
|
* component owner, so writes route through canonical access-table keys.
|
|
20
24
|
*/
|
|
21
|
-
export declare function transformProgramCallbacks(ctx: Ctx, programPath:
|
|
25
|
+
export declare function transformProgramCallbacks(ctx: Ctx, programPath: ProgramContainer): void;
|
|
22
26
|
/**
|
|
23
27
|
* Async module helpers own their normal-completion commit because callers
|
|
24
28
|
* cannot represent writes that occur after the returned promise suspends.
|
|
@@ -27,5 +31,6 @@ export declare function transformProgramCallbacks(ctx: Ctx, programPath: NodePat
|
|
|
27
31
|
*/
|
|
28
32
|
export declare function transformSharedAsyncHelpers(ctx: Ctx): void;
|
|
29
33
|
/** Reject cleanup syntax outside a component instead of leaving a runtime trap. */
|
|
30
|
-
export declare function rejectUnownedCleanup(programPath:
|
|
34
|
+
export declare function rejectUnownedCleanup(ctx: Ctx, programPath: ProgramContainer): void;
|
|
35
|
+
export {};
|
|
31
36
|
//# sourceMappingURL=lifecycle.d.ts.map
|
package/dist/lifecycle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../src/lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../src/lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,CAAC,MAAM,sBAAsB,CAAC;AAG/C,OAAO,EAGL,KAAK,GAAG,EACR,KAAK,MAAM,EACZ,MAAM,WAAW,CAAC;AASnB,KAAK,aAAa,GAAG,GAAG,CAAC,WAAW,CAAC,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,GAClE,KAAK,GACL,KAAK,CAAC;AAEV,UAAU,gBAAgB;IACxB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC;IAChB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;CAC7C;AAoID;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,aAAa,EACvB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,IAAI,CA8FN;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,gBAAgB,GAC5B,IAAI,CAyCN;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAI1D;AAED,mFAAmF;AACnF,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,gBAAgB,GAC5B,IAAI,CAeN"}
|
package/dist/linker.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type EstreeFrontend } from './ast';
|
|
1
2
|
import { type CompilerSourceMap } from './compile';
|
|
2
|
-
import { type MemoDomOptions, type ParameterWrite, type StateKind } from './context';
|
|
3
|
+
import { type MemoDomOptions, type ParameterWrite, type StateKind, type TransparentSourceMethod } from './context';
|
|
3
4
|
export interface CompileModulesOptions extends Omit<MemoDomOptions, 'moduleId' | 'linkedImports' | 'linkedComponentPaths' | 'linkedComponentRows' | 'linkedComponentPropSources' | 'linkedComponentRenderProps'> {
|
|
4
5
|
/**
|
|
5
6
|
* Bundler-style import aliases. Prefixes match on a segment boundary, so
|
|
@@ -18,6 +19,8 @@ export interface CompileModulesOptions extends Omit<MemoDomOptions, 'moduleId' |
|
|
|
18
19
|
* Defaults to true.
|
|
19
20
|
*/
|
|
20
21
|
linkFunctionSummaries?: boolean;
|
|
22
|
+
/** Parser router used for every module; the default selects by extension. */
|
|
23
|
+
frontend?: EstreeFrontend;
|
|
21
24
|
}
|
|
22
25
|
export interface CompiledComponentExport {
|
|
23
26
|
exported: string;
|
|
@@ -31,6 +34,8 @@ export interface CompiledStateExport {
|
|
|
31
34
|
}
|
|
32
35
|
export interface CompiledFunctionExport {
|
|
33
36
|
exported: string;
|
|
37
|
+
transparentSourceFactory?: boolean;
|
|
38
|
+
transparentSourceMethod?: TransparentSourceMethod;
|
|
34
39
|
reads: string[];
|
|
35
40
|
writes: string[];
|
|
36
41
|
boundedWrites: string[];
|
|
@@ -57,6 +62,7 @@ export interface CompiledModules {
|
|
|
57
62
|
output: Record<string, string>;
|
|
58
63
|
maps: Record<string, CompilerSourceMap>;
|
|
59
64
|
metadata: Record<string, CompiledModuleMetadata>;
|
|
65
|
+
css?: Record<string, string>;
|
|
60
66
|
applicationRoot?: CompiledApplicationRoot;
|
|
61
67
|
}
|
|
62
68
|
export declare function compileModulesDetailed(modules: Readonly<Record<string, string>>, options?: CompileModulesOptions): CompiledModules;
|
package/dist/linker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linker.d.ts","sourceRoot":"","sources":["../src/linker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"linker.d.ts","sourceRoot":"","sources":["../src/linker.ts"],"names":[],"mappings":"AAWA,OAAO,EAML,KAAK,cAAc,EAEpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,WAAW,CAAC;AAiBnB,OAAO,EAWL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC7B,MAAM,WAAW,CAAC;AAqBnB,MAAM,WAAW,qBACf,SAAQ,IAAI,CACV,cAAc,EACZ,UAAU,GACV,eAAe,GACf,sBAAsB,GACtB,qBAAqB,GACrB,4BAA4B,GAC5B,4BAA4B,CAC/B;IACD;;;OAGG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3C;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAC5E;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,OAAO,CAAC;C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AsB,CACpC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACzC,OAAO,GAAE,qBAA0B,GAClC,eAAe,CAEjB;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACzC,OAAO,GAAE,qBAA0B,GAClC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculated-sources.d.ts","sourceRoot":"","sources":["../../src/lists/calculated-sources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"calculated-sources.d.ts","sourceRoot":"","sources":["../../src/lists/calculated-sources.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,KAAK,GAAG,EAET,MAAM,YAAY,CAAC;AAiCpB;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAuF7D"}
|
package/dist/lists/map-site.d.ts
CHANGED
|
@@ -2,10 +2,16 @@
|
|
|
2
2
|
* R7 list-site analysis. Emission remains separate from this source-shape
|
|
3
3
|
* validation and deterministic identity planning.
|
|
4
4
|
*/
|
|
5
|
-
import type
|
|
6
|
-
import
|
|
7
|
-
import { type RuntimeBindingPattern } from '../analysis/runtime-pattern';
|
|
5
|
+
import type * as t from '../ast/compiler-types';
|
|
6
|
+
import { type BaseNode } from '../ast';
|
|
8
7
|
import { type Ctx, type MapCallExpression } from '../context';
|
|
8
|
+
interface ErrorPath {
|
|
9
|
+
buildCodeFrameError(message: string): Error;
|
|
10
|
+
}
|
|
11
|
+
interface NodeHolder {
|
|
12
|
+
node: BaseNode;
|
|
13
|
+
}
|
|
14
|
+
type RuntimeBindingPattern = t.Identifier | t.ObjectPattern | t.ArrayPattern;
|
|
9
15
|
type ParentRow = Pick<MapSite, 'itemParam' | 'sourceKey' | 'sourceLocal'>;
|
|
10
16
|
export interface MapSite {
|
|
11
17
|
/** Reactive source key (e.g. 'items' or 'store.todos'). */
|
|
@@ -42,11 +48,11 @@ export interface MapSite {
|
|
|
42
48
|
/** Is this expression a `.map(...)` call, including optional chains? */
|
|
43
49
|
export declare function matchMapCall(expr: t.Node): MapCallExpression | null;
|
|
44
50
|
/** Does a subtree contain JSX? */
|
|
45
|
-
export declare function containsJsx(
|
|
51
|
+
export declare function containsJsx(input: BaseNode | NodeHolder): boolean;
|
|
46
52
|
/**
|
|
47
53
|
* Validate and describe a map site. Analysis and emission walk sites in the
|
|
48
54
|
* same source order so their deterministic suffixes remain identical.
|
|
49
55
|
*/
|
|
50
|
-
export declare function analyzeMapSite(ctx: Ctx, call: MapCallExpression, errorAt:
|
|
56
|
+
export declare function analyzeMapSite(ctx: Ctx, call: MapCallExpression, errorAt: ErrorPath, ownerName: string, usedPrefixes: Map<string, number>, parentRow?: ParentRow): MapSite;
|
|
51
57
|
export {};
|
|
52
58
|
//# sourceMappingURL=map-site.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-site.d.ts","sourceRoot":"","sources":["../../src/lists/map-site.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"map-site.d.ts","sourceRoot":"","sources":["../../src/lists/map-site.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAGhD,OAAO,EAIL,KAAK,QAAQ,EACd,MAAM,QAAQ,CAAC;AAGhB,OAAO,EAIL,KAAK,GAAG,EACR,KAAK,iBAAiB,EACvB,MAAM,YAAY,CAAC;AASpB,UAAU,SAAS;IACjB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;CAC7C;AACD,UAAU,UAAU;IAClB,IAAI,EAAE,QAAQ,CAAC;CAChB;AACD,KAAK,qBAAqB,GACtB,CAAC,CAAC,UAAU,GACZ,CAAC,C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IAAI,EAAE,iBAAiB,EACvB,OAAO,EAAE,SAAS,EAClB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACjC,SAAS,CAAC,EAAE,SAAS,GACpB,OAAO,CAsCT"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { BaseNode } from '../ast';
|
|
2
2
|
/** Remove transparent TypeScript wrappers around a collection expression. */
|
|
3
|
-
export declare function transparentListExpression(expression:
|
|
3
|
+
export declare function transparentListExpression<TExpression extends BaseNode>(expression: TExpression): TExpression;
|
|
4
4
|
/** A literal primitive list has stable value identity and no mutable source. */
|
|
5
|
-
export declare function isStaticPrimitiveList(expression:
|
|
5
|
+
export declare function isStaticPrimitiveList(expression: BaseNode): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* A structural method chain rooted at a primitive array literal. The chain
|
|
8
|
+
* shape is recognized structurally: any method name is accepted, because
|
|
9
|
+
* the value is fixed at creation regardless of how it was computed. Every
|
|
10
|
+
* argument must be self-contained (inline functions or literals): a
|
|
11
|
+
* reference to an outside binding would make the chain's result depend on
|
|
12
|
+
* mutable state, which requires the reactive derivation path instead.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isStaticListExpression(expression: BaseNode, seen?: Set<BaseNode>): boolean;
|
|
6
15
|
//# sourceMappingURL=source-shapes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-shapes.d.ts","sourceRoot":"","sources":["../../src/lists/source-shapes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"source-shapes.d.ts","sourceRoot":"","sources":["../../src/lists/source-shapes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGvC,6EAA6E;AAC7E,wBAAgB,yBAAyB,CAAC,WAAW,SAAS,QAAQ,EACpE,UAAU,EAAE,WAAW,GACtB,WAAW,CAEb;AA+CD,gFAAgF;AAChF,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,QAAQ,GAAG,OAAO,CAanE;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,QAAQ,EACpB,IAAI,GAAE,GAAG,CAAC,QAAQ,CAAa,GAC9B,OAAO,CAyBT"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* static-derived.ts - frozen derived values over static list literals.
|
|
3
|
+
*
|
|
4
|
+
* A `const` whose initializer is a static list expression (rooted at a
|
|
5
|
+
* primitive array literal through self-contained transforms) is a FROZEN
|
|
6
|
+
* derived value: it can never change, so any later mutation attempt is a
|
|
7
|
+
* compile error - mutating it could never be observed by reactivity.
|
|
8
|
+
*
|
|
9
|
+
* Because the value never changes, the rule applies at module scope as well
|
|
10
|
+
* as component scope.
|
|
11
|
+
*/
|
|
12
|
+
import type { BaseNode } from '../ast';
|
|
13
|
+
import type { Ctx } from '../context';
|
|
14
|
+
/**
|
|
15
|
+
* Find the initializer of a binding declared at module scope or in the
|
|
16
|
+
* component body.
|
|
17
|
+
*/
|
|
18
|
+
export declare function findConstInitializer(ctx: Ctx, name: string, compName?: string | null): BaseNode | null;
|
|
19
|
+
/**
|
|
20
|
+
* True when the initializer is a DERIVED chain: at least one method transform
|
|
21
|
+
* applied to a primitive array literal root (`[...].filter(fn)`). A plain
|
|
22
|
+
* array literal (`[...]`) is NOT derived - it is ordinary reactive state.
|
|
23
|
+
*/
|
|
24
|
+
export declare function isStaticDerivedChain(expression: BaseNode): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* True when `name` is bound to a static-derived value: a method chain rooted
|
|
27
|
+
* at a primitive array literal. The DECLARATION KEYWORD is irrelevant -
|
|
28
|
+
* `let arr = [...].filter(fn)` is exactly as frozen as the const form,
|
|
29
|
+
* because the initializer derives from a static source that can never
|
|
30
|
+
* change. Mutation attempts on such bindings are compile errors.
|
|
31
|
+
*
|
|
32
|
+
* Reactive machinery keeps priority for everything else: plain array
|
|
33
|
+
* literals remain reactive state, and state-derived/prop/opaque bindings
|
|
34
|
+
* follow their own rules.
|
|
35
|
+
*/
|
|
36
|
+
export declare function isStaticDerivedListConst(ctx: Ctx, name: string, compName?: string | null): boolean;
|
|
37
|
+
//# sourceMappingURL=static-derived.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-derived.d.ts","sourceRoot":"","sources":["../../src/lists/static-derived.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AA4BtC;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GACvB,QAAQ,GAAG,IAAI,CA4BjB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,QAAQ,GAAG,OAAO,CAOlE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GACvB,OAAO,CAIT"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type BaseNode } from '../ast';
|
|
2
|
+
interface TargetedListSite {
|
|
3
|
+
jsx: BaseNode | null;
|
|
4
|
+
keyExpr: BaseNode | null;
|
|
5
|
+
sourceLocal: boolean;
|
|
6
|
+
sourceExpr: BaseNode;
|
|
7
|
+
}
|
|
2
8
|
/**
|
|
3
9
|
* Finds instance-state values that affect exactly the row keyed by that value.
|
|
4
10
|
* Every visual reference must be an equality comparison with the authored key;
|
|
5
11
|
* mixed/general uses are rejected and retain full-list reconciliation.
|
|
6
12
|
*/
|
|
7
|
-
export declare function findTargetedListDependencies(site:
|
|
13
|
+
export declare function findTargetedListDependencies(site: TargetedListSite, instanceState: ReadonlySet<string>): string[];
|
|
14
|
+
export {};
|
|
8
15
|
//# sourceMappingURL=targeted-refresh.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"targeted-refresh.d.ts","sourceRoot":"","sources":["../../src/lists/targeted-refresh.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"targeted-refresh.d.ts","sourceRoot":"","sources":["../../src/lists/targeted-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,QAAQ,EAEd,MAAM,QAAQ,CAAC;AAsBhB,UAAU,gBAAgB;IACxB,GAAG,EAAE,QAAQ,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,QAAQ,CAAC;CACtB;AAoHD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,gBAAgB,EACtB,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,GACjC,MAAM,EAAE,CAqCV"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
* Pure exhaustive module-level if/switch derivations.
|
|
3
|
-
*/
|
|
4
|
-
import type { NodePath } from '@babel/traverse';
|
|
5
|
-
import * as t from '@babel/types';
|
|
1
|
+
import type { BaseNode } from './ast';
|
|
6
2
|
import { type ComputedAnalysis, type Ctx } from './context';
|
|
7
|
-
|
|
3
|
+
interface ProgramContainer {
|
|
4
|
+
node: BaseNode;
|
|
5
|
+
buildCodeFrameError(message: string): Error;
|
|
6
|
+
}
|
|
7
|
+
export declare function scanModuleControlFlow(ctx: Ctx, programPath: ProgramContainer, analyze: (ctx: Ctx, expression: BaseNode) => ComputedAnalysis): void;
|
|
8
|
+
export {};
|
|
8
9
|
//# sourceMappingURL=module-control-flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-control-flow.d.ts","sourceRoot":"","sources":["../src/module-control-flow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module-control-flow.d.ts","sourceRoot":"","sources":["../src/module-control-flow.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,GAAG,EACT,MAAM,WAAW,CAAC;AAEnB,UAAU,gBAAgB;IACxB,IAAI,EAAE,QAAQ,CAAC;IACf,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;CAC7C;AAmHD,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,GAAG,EACR,WAAW,EAAE,gBAAgB,EAC7B,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,KAAK,gBAAgB,GAC5D,IAAI,CAyFN"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* mutation-analysis.ts - shared provenance helpers for conservative writes.
|
|
3
3
|
*
|
|
4
|
-
* Tracks local aliases back to reactive roots using
|
|
4
|
+
* Tracks local aliases back to reactive roots using lexical binding identity.
|
|
5
5
|
* Consumers decide whether a resolved origin permits a precise write key or
|
|
6
6
|
* whether reassignment/destructuring requires a root-subtree fallback.
|
|
7
7
|
*/
|
|
8
|
-
import type
|
|
9
|
-
import * as t from '@babel/types';
|
|
8
|
+
import type * as t from './ast/compiler-types';
|
|
10
9
|
import { type StateKind } from './context';
|
|
11
10
|
export type ReactiveLocality = 'module' | 'instance' | 'row' | 'prop';
|
|
12
11
|
export interface ReactiveOrigin {
|
|
@@ -17,20 +16,35 @@ export interface ReactiveOrigin {
|
|
|
17
16
|
key: string | null;
|
|
18
17
|
stateKind?: StateKind;
|
|
19
18
|
}
|
|
20
|
-
type OriginFallback = (name: string, binding:
|
|
19
|
+
type OriginFallback = (name: string, binding: BindingLike | undefined) => ReactiveOrigin | null;
|
|
20
|
+
/** Minimal parser-neutral binding contract needed by alias analysis. */
|
|
21
|
+
export interface BindingLike {
|
|
22
|
+
identifier: object;
|
|
23
|
+
scope: ScopeLike;
|
|
24
|
+
}
|
|
25
|
+
/** Parser adapters and compiler ESTree scopes can satisfy this contract. */
|
|
26
|
+
export interface ScopeLike {
|
|
27
|
+
block: object;
|
|
28
|
+
isProgramScope?: boolean;
|
|
29
|
+
path?: {
|
|
30
|
+
isProgram(): boolean;
|
|
31
|
+
};
|
|
32
|
+
getBinding(name: string): BindingLike | undefined;
|
|
33
|
+
}
|
|
34
|
+
export declare function bindingScopeIsProgram(binding: BindingLike): boolean;
|
|
21
35
|
export declare class AliasTracker {
|
|
22
36
|
private readonly fallback;
|
|
23
37
|
private readonly origins;
|
|
24
38
|
constructor(fallback: OriginFallback);
|
|
25
|
-
trackDeclarator(scope:
|
|
39
|
+
trackDeclarator(scope: ScopeLike, declarator: t.VariableDeclarator): void;
|
|
26
40
|
/**
|
|
27
41
|
* Find reactive values mentioned inside an expression when its resulting
|
|
28
42
|
* provenance cannot be represented as one exact origin (for example a
|
|
29
43
|
* conditional alias or destructuring source).
|
|
30
44
|
*/
|
|
31
|
-
referencedOrigins(scope:
|
|
32
|
-
resolveName(scope:
|
|
33
|
-
resolveExpression(scope:
|
|
45
|
+
referencedOrigins(scope: ScopeLike, node: t.Node): ReactiveOrigin[];
|
|
46
|
+
resolveName(scope: ScopeLike, name: string): ReactiveOrigin | null;
|
|
47
|
+
resolveExpression(scope: ScopeLike, raw: t.Node): ReactiveOrigin | null;
|
|
34
48
|
}
|
|
35
49
|
export declare function moduleOrigin(name: string, stateKind: StateKind): ReactiveOrigin;
|
|
36
50
|
/** Append a helper-summary path to an argument's resolved reactive origin. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-analysis.d.ts","sourceRoot":"","sources":["../src/mutation-analysis.ts"],"names":[],"mappings":"AAAA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3
3
|
*
|
|
4
4
|
* Coordinates the emission-spec passes; implementation is partitioned into:
|
|
5
5
|
* context.ts - shared binding and canonical identity facts
|
|
@@ -14,11 +14,15 @@
|
|
|
14
14
|
* are components; JSX return control flow, repeated render slots, and nested
|
|
15
15
|
* row composition are normalized before the core analysis/emission passes.
|
|
16
16
|
*/
|
|
17
|
-
import type
|
|
17
|
+
import type * as t from './ast/compiler-types';
|
|
18
18
|
import { type InternalMemoDomOptions, type MemoDomOptions } from './context';
|
|
19
|
+
interface ProgramDiagnostic {
|
|
20
|
+
node: t.Program;
|
|
21
|
+
buildCodeFrameError(message: string, at?: t.Node): Error;
|
|
22
|
+
}
|
|
23
|
+
export interface ProgramTransformPath extends ProgramDiagnostic {
|
|
24
|
+
}
|
|
19
25
|
export type { MemoDomOptions };
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
visitor: Visitor;
|
|
23
|
-
};
|
|
26
|
+
/** Transform a plain ESTree program and leave the result in strict ESTree. */
|
|
27
|
+
export declare function transformEstreeProgram(programPath: ProgramTransformPath, opts?: InternalMemoDomOptions): void;
|
|
24
28
|
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,KAAK,CAAC,MAAM,sBAAsB,CAAC;AAQ/C,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACpB,MAAM,WAAW,CAAC;AA4KnB,UAAU,iBAAiB;IACzB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC;IAChB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC;CAC1D;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;CAAG;AAoDlE,YAAY,EAAE,cAAc,EAAE,CAAC;AA2H/B,8EAA8E;AAC9E,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,oBAAoB,EACjC,IAAI,GAAE,sBAA2B,GAChC,IAAI,CAGN"}
|