@barefootjs/jsx 0.32.0 → 0.33.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/adapters/dangerous-inner-html.d.ts.map +1 -1
- package/dist/adapters/parsed-expr-emitter.d.ts +22 -0
- package/dist/adapters/parsed-expr-emitter.d.ts.map +1 -1
- package/dist/expression-parser.d.ts +29 -6
- package/dist/expression-parser.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +129 -40
- package/dist/query-href-lowering.d.ts.map +1 -1
- package/dist/ssr-seed-plan.d.ts.map +1 -1
- package/dist/static-literal.d.ts.map +1 -1
- package/dist/to-locale-date-lowering.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/expression-parser.test.ts +43 -6
- package/src/__tests__/serialize-parsed-expr.test.ts +17 -3
- package/src/__tests__/ssr-defaults.test.ts +41 -0
- package/src/__tests__/ssr-seed-plan.test.ts +12 -2
- package/src/adapters/dangerous-inner-html.ts +1 -0
- package/src/adapters/parsed-expr-emitter.ts +49 -3
- package/src/expression-parser.ts +200 -89
- package/src/index.ts +2 -2
- package/src/jsx-to-ir.ts +4 -1
- package/src/query-href-lowering.ts +4 -0
- package/src/rich-type-refusal.ts +1 -1
- package/src/ssr-defaults.ts +51 -2
- package/src/ssr-seed-plan.ts +20 -3
- package/src/static-literal.ts +15 -1
- package/src/to-locale-date-lowering.ts +4 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dangerous-inner-html.d.ts","sourceRoot":"","sources":["../../src/adapters/dangerous-inner-html.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACxF,OAAO,EAAwC,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAA;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;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,SAAS,GAAG,4BAA4B,GAAG,IAAI,CAyBjG;AAoED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlG;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,cAAc,EACnB,MAAM,CAAC,EAAE,MAAM,GACd,aAAa,CAcf"}
|
|
@@ -132,6 +132,28 @@ export declare function isStringConcatBinary(op: string, left: ParsedExpr, right
|
|
|
132
132
|
* byte-identical.
|
|
133
133
|
*/
|
|
134
134
|
export declare function groupBinaryOperand(operand: ParsedExpr, emitted: string): string;
|
|
135
|
+
/**
|
|
136
|
+
* Split an `object-literal`'s (order-preserving) `properties` into rendered
|
|
137
|
+
* SEGMENTS an adapter's `objectLiteral()` folds with its own merge idiom
|
|
138
|
+
* (#2696 Step 2): each maximal run of consecutive `prop` entries collapses
|
|
139
|
+
* into ONE literal (via `literalOf`), and each `spread` entry becomes its
|
|
140
|
+
* own segment (its emitted source expression) — so `{ a: 1, b: 2, ...t, c: 3
|
|
141
|
+
* }` yields `[literal({a,b}), emit(t), literal({c})]`, in source order.
|
|
142
|
+
*
|
|
143
|
+
* A caller with NO spread entries at all should keep its pre-#2696 single
|
|
144
|
+
* `literalOf(properties)` call instead of this (this always returns at
|
|
145
|
+
* least one segment, but a caller folding 1-segment output through a merge
|
|
146
|
+
* call — `array_merge(x)`, `{}.merge(x)` — would be needlessly indirect
|
|
147
|
+
* for the common spread-free case).
|
|
148
|
+
*
|
|
149
|
+
* Shared here (not duplicated per adapter) because the grouping itself is
|
|
150
|
+
* backend-neutral structure — only `literalOf` (the target language's
|
|
151
|
+
* literal syntax) and the fold (the target language's merge idiom) are
|
|
152
|
+
* adapter-specific.
|
|
153
|
+
*/
|
|
154
|
+
export declare function groupObjectLiteralSegments(properties: readonly ObjectLiteralProperty[], literalOf: (run: ReadonlyArray<Extract<ObjectLiteralProperty, {
|
|
155
|
+
kind: 'prop';
|
|
156
|
+
}>>) => string, emit: (e: ParsedExpr) => string): string[];
|
|
135
157
|
/**
|
|
136
158
|
* Single point of dispatch from `ParsedExpr.kind` to the adapter's
|
|
137
159
|
* method. Adapters call this once at their entry point; the recursion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsed-expr-emitter.d.ts","sourceRoot":"","sources":["../../src/adapters/parsed-expr-emitter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAGzG,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,eAAe,CAAA;AAEjH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,WAAW,GACnB,MAAM,GACN,UAAU,GACV,SAAS,GACT,aAAa,GACb,IAAI,GACJ,QAAQ,GACR,OAAO,GACP,SAAS,GACT,YAAY,GACZ,aAAa,GACb,aAAa,GACb,MAAM,GACN,WAAW,GACX,SAAS,GACT,SAAS,GACT,OAAO,GACP,YAAY,GACZ,UAAU,GACV,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,QAAQ,CAAA;AAEZ;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,CAAA;AAQ5C,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;AAElE;;;;;;;;;GASG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,M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["identifier", "literal", "call
|
|
|
101
101
|
*/
|
|
102
102
|
export declare const ARRAY_METHOD_NAMES: readonly ["join", "includes", "indexOf", "lastIndexOf", "at", "concat", "slice", "reverse", "toReversed", "toLowerCase", "toUpperCase", "trim", "trimStart", "trimEnd", "toFixed", "split", "startsWith", "endsWith", "replace", "replaceAll", "repeat", "padStart", "padEnd", "flat"];
|
|
103
103
|
/**
|
|
104
|
-
* One
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* `
|
|
104
|
+
* One entry of an `object-literal` `ParsedExpr`, in SOURCE ORDER — a `prop`
|
|
105
|
+
* (`{ a: 1 }` / shorthand `{ a }`) or a `spread` (`{ ...t }`, #2696 Step 2).
|
|
106
|
+
* Kept as one discriminated-union list rather than separate prop/spread
|
|
107
|
+
* arrays because JS's override semantics are POSITIONAL — `{ ...t, a: 1 }`
|
|
108
|
+
* and `{ a: 1, ...t }` merge in opposite directions — and only a single
|
|
109
|
+
* ordered list can carry that. Every direct consumer of `properties`
|
|
110
|
+
* (emitters, `freeVarsInBody`, `inlineBinding`, the rewrite walkers,
|
|
111
|
+
* `objectLiteralTo*` adapter helpers, …) is exhaustive over `kind`, so a
|
|
112
|
+
* TS compile error surfaces any site this Step 2 change didn't already
|
|
113
|
+
* update.
|
|
109
114
|
*/
|
|
110
115
|
export type ObjectLiteralProperty = {
|
|
116
|
+
kind: 'prop';
|
|
111
117
|
key: string;
|
|
112
118
|
keyKind?: 'identifier' | 'string' | 'numeric';
|
|
113
119
|
shorthand: boolean;
|
|
114
120
|
value: ParsedExpr;
|
|
121
|
+
} | {
|
|
122
|
+
kind: 'spread';
|
|
123
|
+
expr: ParsedExpr;
|
|
115
124
|
};
|
|
116
125
|
/**
|
|
117
126
|
* One comparison key inside a sort comparator. A simple
|
|
@@ -351,9 +360,23 @@ export declare function asCallbackMethodCall(expr: ParsedExpr): {
|
|
|
351
360
|
*/
|
|
352
361
|
export declare function sortComparatorFromArrow(arrow: ParsedExpr): SortComparator | null;
|
|
353
362
|
/**
|
|
354
|
-
* Check if a parsed expression is supported for SSR template conversion
|
|
363
|
+
* Check if a parsed expression is supported for SSR template conversion at
|
|
364
|
+
* a RENDERED position — a standalone template expression (`{expr}`, an
|
|
365
|
+
* attribute value, a condition test, …) whose value is what actually
|
|
366
|
+
* reaches the page. See {@link isSupportedValue} for the sibling VALUE-
|
|
367
|
+
* position entry point, and `checkSupport`'s `pos` parameter for why the two
|
|
368
|
+
* never converge partway through a tree.
|
|
355
369
|
*/
|
|
356
370
|
export declare function isSupported(expr: ParsedExpr): SupportResult;
|
|
371
|
+
/**
|
|
372
|
+
* Check if a parsed expression is supported at a VALUE position — a
|
|
373
|
+
* signal/memo initializer (`computeSsrSeedPlan`'s classify step: an
|
|
374
|
+
* assignment, never a render). The one behavioural difference from
|
|
375
|
+
* {@link isSupported}: an `object-literal` anywhere in the tree is admitted
|
|
376
|
+
* when every property value is itself supported, instead of being refused
|
|
377
|
+
* outright.
|
|
378
|
+
*/
|
|
379
|
+
export declare function isSupportedValue(expr: ParsedExpr): SupportResult;
|
|
357
380
|
/**
|
|
358
381
|
* Check if expression contains any higher-order callback method call
|
|
359
382
|
* (`.filter`/`.sort`/`.reduce`/… with an arrow argument — see
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression-parser.d.ts","sourceRoot":"","sources":["../src/expression-parser.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAA;AAM3B,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAUpC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAAC,WAAW,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,C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AAA;CAAE,CA6DhE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAgBtE;AAuBD;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAuDrD;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAkE5D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,UAAU,CA4D/F;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAGnE;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,CAuFtF;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CA6DpE;AAiOD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAOhE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export type { TemplateAdapter, AdapterOutput, AdapterGenerateOptions, TemplateSe
|
|
|
22
22
|
export { JsxAdapter } from './adapters/jsx-adapter.ts';
|
|
23
23
|
export type { JsxAdapterConfig } from './adapters/jsx-adapter.ts';
|
|
24
24
|
export { rewriteImportsForTemplate, rewriteDynamicImportsInSource } from './adapters/template-imports.ts';
|
|
25
|
-
export { emitParsedExpr, groupBinaryOperand, isStringTypedOperand, isStringConcatBinary } from './adapters/parsed-expr-emitter.ts';
|
|
25
|
+
export { emitParsedExpr, groupBinaryOperand, groupObjectLiteralSegments, isStringTypedOperand, isStringConcatBinary } from './adapters/parsed-expr-emitter.ts';
|
|
26
26
|
export type { ParsedExprEmitter, HigherOrderMethod, ArrayMethod, SortMethod, LiteralType } from './adapters/parsed-expr-emitter.ts';
|
|
27
27
|
export { collectLoopBoundNames } from './adapters/loop-bound-names.ts';
|
|
28
28
|
export { derivesScopeFromSlot } from './adapters/child-scope.ts';
|
|
@@ -90,7 +90,7 @@ export { applyCssLayerPrefix } from './css-layer-prefixer.ts';
|
|
|
90
90
|
export { enableCompilerInstrumentation, disableCompilerInstrumentation, resetCompilerCounters, getCompilerCounters, type CompilerCounters, } from './instrumentation.ts';
|
|
91
91
|
export { ErrorCodes, createError, formatError, generateCodeFrame } from './errors.ts';
|
|
92
92
|
export { isValueReferenceIdentifier, collectValueReferencedNames } from './value-references.ts';
|
|
93
|
-
export { parseExpression, tsNodeToParsedExpr, asCallbackMethodCall, CALLBACK_METHODS, sortComparatorFromArrow, serializeParsedExpr, freeVarsInBody, freeIdentifiers, materializeGetterCalls, isSupported, exprToString, stringifyParsedExpr, identifierPath, parseBlockBody, parseBlockBodyTolerant, foldBlockToExpr, predicateTernaryToLogical, containsHigherOrder, extractArrowBodyExpression, parseStyleObjectEntries, hasUnsafeStyleValue, parseProviderObjectLiteral, type ProviderObjectMember, type FoldBlockOptions } from './expression-parser.ts';
|
|
93
|
+
export { parseExpression, tsNodeToParsedExpr, asCallbackMethodCall, CALLBACK_METHODS, sortComparatorFromArrow, serializeParsedExpr, freeVarsInBody, freeIdentifiers, materializeGetterCalls, isSupported, isSupportedValue, exprToString, stringifyParsedExpr, identifierPath, parseBlockBody, parseBlockBodyTolerant, foldBlockToExpr, predicateTernaryToLogical, containsHigherOrder, extractArrowBodyExpression, parseStyleObjectEntries, hasUnsafeStyleValue, parseProviderObjectLiteral, type ProviderObjectMember, type FoldBlockOptions } from './expression-parser.ts';
|
|
94
94
|
export type { StyleObjectEntry } from './expression-parser.ts';
|
|
95
95
|
export { PARSED_EXPR_KINDS, ARRAY_METHOD_NAMES } from './expression-parser.ts';
|
|
96
96
|
export type { ParsedExpr, ObjectLiteralProperty, ParsedStatement, SortComparator, SortKey, FlatDepth, SupportLevel, SupportResult, TemplatePart } from './expression-parser.ts';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AACzD,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAGzG,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAG/E,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACjG,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAGnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAGlE,YAAY,EACV,WAAW,EACX,MAAM,EACN,SAAS,EACT,MAAM,EACN,YAAY,EACZ,aAAa,EACb,MAAM,EACN,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,EACd,WAAW,EACX,UAAU,EACV,MAAM,EACN,aAAa,EACb,UAAU,EACV,OAAO,EACP,UAAU,EACV,SAAS,EACT,WAAW,EACX,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,YAAY,EACZ,UAAU,EACV,eAAe,EACf,cAAc,EACd,MAAM,EACN,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,cAAc,EACd,aAAa,EACb,eAAe,E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,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAGlB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAGlB,mBAAmB,EACnB,kBAAkB,EAGlB,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EAGzB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EAGpB,gBAAgB,GACjB,MAAM,iBAAiB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -523,7 +523,7 @@ function convertNode(node, raw) {
|
|
|
523
523
|
}
|
|
524
524
|
if (n === undefined || Number.isNaN(n)) {
|
|
525
525
|
const parsedDepth = convertNode(depthNode, raw);
|
|
526
|
-
if (checkSupport(parsedDepth).supported) {
|
|
526
|
+
if (checkSupport(parsedDepth, "rendered").supported) {
|
|
527
527
|
depthExpr = parsedDepth;
|
|
528
528
|
flatDepth = 1;
|
|
529
529
|
} else {
|
|
@@ -617,10 +617,12 @@ function convertNode(node, raw) {
|
|
|
617
617
|
const k = objectLiteralKeyName(prop.name);
|
|
618
618
|
if (k === null)
|
|
619
619
|
return { kind: "unsupported", raw, reason: `Unsupported syntax: ${ts2.SyntaxKind[node.kind]}` };
|
|
620
|
-
properties.push({ key: k.key, keyKind: k.keyKind, shorthand: false, value: convertNode(prop.initializer, raw) });
|
|
620
|
+
properties.push({ kind: "prop", key: k.key, keyKind: k.keyKind, shorthand: false, value: convertNode(prop.initializer, raw) });
|
|
621
621
|
} else if (ts2.isShorthandPropertyAssignment(prop)) {
|
|
622
622
|
const key = prop.name.text;
|
|
623
|
-
properties.push({ key, keyKind: "identifier", shorthand: true, value: { kind: "identifier", name: key } });
|
|
623
|
+
properties.push({ kind: "prop", key, keyKind: "identifier", shorthand: true, value: { kind: "identifier", name: key } });
|
|
624
|
+
} else if (ts2.isSpreadAssignment(prop)) {
|
|
625
|
+
properties.push({ kind: "spread", expr: convertNode(prop.expression, raw) });
|
|
624
626
|
} else {
|
|
625
627
|
return { kind: "unsupported", raw, reason: `Unsupported syntax: ${ts2.SyntaxKind[node.kind]}` };
|
|
626
628
|
}
|
|
@@ -1300,14 +1302,26 @@ function getUnaryOperatorString(op) {
|
|
|
1300
1302
|
}
|
|
1301
1303
|
}
|
|
1302
1304
|
function isSupported(expr) {
|
|
1303
|
-
return checkSupport(expr);
|
|
1305
|
+
return checkSupport(expr, "rendered");
|
|
1304
1306
|
}
|
|
1305
|
-
function
|
|
1307
|
+
function isSupportedValue(expr) {
|
|
1308
|
+
return checkSupport(expr, "value");
|
|
1309
|
+
}
|
|
1310
|
+
function checkSupport(expr, pos) {
|
|
1306
1311
|
switch (expr.kind) {
|
|
1307
1312
|
case "unsupported":
|
|
1308
1313
|
return { supported: false, reason: expr.reason };
|
|
1309
|
-
case "object-literal":
|
|
1310
|
-
|
|
1314
|
+
case "object-literal": {
|
|
1315
|
+
if (pos !== "value") {
|
|
1316
|
+
return { supported: false, reason: "Unsupported syntax: ObjectLiteralExpression" };
|
|
1317
|
+
}
|
|
1318
|
+
for (const prop of expr.properties) {
|
|
1319
|
+
const propSupport = checkSupport(prop.kind === "spread" ? prop.expr : prop.value, pos);
|
|
1320
|
+
if (!propSupport.supported)
|
|
1321
|
+
return propSupport;
|
|
1322
|
+
}
|
|
1323
|
+
return { supported: true, level: "L2" };
|
|
1324
|
+
}
|
|
1311
1325
|
case "identifier":
|
|
1312
1326
|
return { supported: true, level: "L1" };
|
|
1313
1327
|
case "literal":
|
|
@@ -1317,7 +1331,7 @@ function checkSupport(expr) {
|
|
|
1317
1331
|
return { supported: false, reason: "Standalone arrow functions / regex literals are not supported" };
|
|
1318
1332
|
case "array-literal": {
|
|
1319
1333
|
for (const el of expr.elements) {
|
|
1320
|
-
const elSupport = checkSupport(el);
|
|
1334
|
+
const elSupport = checkSupport(el, pos);
|
|
1321
1335
|
if (!elSupport.supported)
|
|
1322
1336
|
return elSupport;
|
|
1323
1337
|
}
|
|
@@ -1330,16 +1344,16 @@ function checkSupport(expr) {
|
|
|
1330
1344
|
reason: `String.prototype.${expr.method} supports only a string pattern + string replacement (the regex form is deferred); use a string pattern or wrap the expression in /* @client */`
|
|
1331
1345
|
};
|
|
1332
1346
|
}
|
|
1333
|
-
const objSupport = checkSupport(expr.object);
|
|
1347
|
+
const objSupport = checkSupport(expr.object, pos);
|
|
1334
1348
|
if (!objSupport.supported)
|
|
1335
1349
|
return objSupport;
|
|
1336
1350
|
for (const arg of expr.args) {
|
|
1337
|
-
const argSupport = checkSupport(arg);
|
|
1351
|
+
const argSupport = checkSupport(arg, pos);
|
|
1338
1352
|
if (!argSupport.supported)
|
|
1339
1353
|
return argSupport;
|
|
1340
1354
|
}
|
|
1341
1355
|
if (expr.method === "flat" && expr.depthExpr) {
|
|
1342
|
-
const depthSupport = checkSupport(expr.depthExpr);
|
|
1356
|
+
const depthSupport = checkSupport(expr.depthExpr, pos);
|
|
1343
1357
|
if (!depthSupport.supported)
|
|
1344
1358
|
return depthSupport;
|
|
1345
1359
|
}
|
|
@@ -1348,10 +1362,10 @@ function checkSupport(expr) {
|
|
|
1348
1362
|
case "call": {
|
|
1349
1363
|
const cb = asCallbackMethodCall(expr);
|
|
1350
1364
|
if (cb) {
|
|
1351
|
-
const objSupport = checkSupport(cb.object);
|
|
1365
|
+
const objSupport = checkSupport(cb.object, pos);
|
|
1352
1366
|
if (!objSupport.supported)
|
|
1353
1367
|
return objSupport;
|
|
1354
|
-
const bodySupport = checkSupport(cb.arrow.body);
|
|
1368
|
+
const bodySupport = checkSupport(cb.arrow.body, pos);
|
|
1355
1369
|
if (!bodySupport.supported) {
|
|
1356
1370
|
return {
|
|
1357
1371
|
supported: false,
|
|
@@ -1360,13 +1374,13 @@ function checkSupport(expr) {
|
|
|
1360
1374
|
};
|
|
1361
1375
|
}
|
|
1362
1376
|
for (const rest of cb.args) {
|
|
1363
|
-
const restSupport = checkSupport(rest);
|
|
1377
|
+
const restSupport = checkSupport(rest, pos);
|
|
1364
1378
|
if (!restSupport.supported)
|
|
1365
1379
|
return restSupport;
|
|
1366
1380
|
}
|
|
1367
1381
|
return { supported: true, level: "L5" };
|
|
1368
1382
|
}
|
|
1369
|
-
const calleeSupport = checkSupport(expr.callee);
|
|
1383
|
+
const calleeSupport = checkSupport(expr.callee, pos);
|
|
1370
1384
|
if (!calleeSupport.supported) {
|
|
1371
1385
|
return calleeSupport;
|
|
1372
1386
|
}
|
|
@@ -1385,7 +1399,7 @@ function checkSupport(expr) {
|
|
|
1385
1399
|
return { supported: true, level: "L1" };
|
|
1386
1400
|
}
|
|
1387
1401
|
for (const arg of expr.args) {
|
|
1388
|
-
const argSupport = checkSupport(arg);
|
|
1402
|
+
const argSupport = checkSupport(arg, pos);
|
|
1389
1403
|
if (!argSupport.supported) {
|
|
1390
1404
|
return argSupport;
|
|
1391
1405
|
}
|
|
@@ -1393,7 +1407,7 @@ function checkSupport(expr) {
|
|
|
1393
1407
|
return { supported: true, level: "L2" };
|
|
1394
1408
|
}
|
|
1395
1409
|
case "member": {
|
|
1396
|
-
const objSupport = checkSupport(expr.object);
|
|
1410
|
+
const objSupport = checkSupport(expr.object, pos);
|
|
1397
1411
|
if (!objSupport.supported) {
|
|
1398
1412
|
return objSupport;
|
|
1399
1413
|
}
|
|
@@ -1403,19 +1417,19 @@ function checkSupport(expr) {
|
|
|
1403
1417
|
return { supported: true, level: "L2" };
|
|
1404
1418
|
}
|
|
1405
1419
|
case "index-access": {
|
|
1406
|
-
const objSupport = checkSupport(expr.object);
|
|
1420
|
+
const objSupport = checkSupport(expr.object, pos);
|
|
1407
1421
|
if (!objSupport.supported)
|
|
1408
1422
|
return objSupport;
|
|
1409
|
-
const indexSupport = checkSupport(expr.index);
|
|
1423
|
+
const indexSupport = checkSupport(expr.index, pos);
|
|
1410
1424
|
if (!indexSupport.supported)
|
|
1411
1425
|
return indexSupport;
|
|
1412
1426
|
return { supported: true, level: "L2" };
|
|
1413
1427
|
}
|
|
1414
1428
|
case "binary": {
|
|
1415
|
-
const leftSupport = checkSupport(expr.left);
|
|
1429
|
+
const leftSupport = checkSupport(expr.left, pos);
|
|
1416
1430
|
if (!leftSupport.supported)
|
|
1417
1431
|
return leftSupport;
|
|
1418
|
-
const rightSupport = checkSupport(expr.right);
|
|
1432
|
+
const rightSupport = checkSupport(expr.right, pos);
|
|
1419
1433
|
if (!rightSupport.supported)
|
|
1420
1434
|
return rightSupport;
|
|
1421
1435
|
if (["===", "==", "!==", "!=", ">", "<", ">=", "<="].includes(expr.op)) {
|
|
@@ -1427,7 +1441,7 @@ function checkSupport(expr) {
|
|
|
1427
1441
|
return { supported: false, reason: `Unknown operator: ${expr.op}` };
|
|
1428
1442
|
}
|
|
1429
1443
|
case "unary": {
|
|
1430
|
-
const argSupport = checkSupport(expr.argument);
|
|
1444
|
+
const argSupport = checkSupport(expr.argument, pos);
|
|
1431
1445
|
if (!argSupport.supported)
|
|
1432
1446
|
return argSupport;
|
|
1433
1447
|
if (expr.op === "!") {
|
|
@@ -1439,25 +1453,25 @@ function checkSupport(expr) {
|
|
|
1439
1453
|
return { supported: false, reason: `Unsupported unary operator: ${expr.op}` };
|
|
1440
1454
|
}
|
|
1441
1455
|
case "logical": {
|
|
1442
|
-
const leftSupport = checkSupport(expr.left);
|
|
1456
|
+
const leftSupport = checkSupport(expr.left, pos);
|
|
1443
1457
|
if (!leftSupport.supported)
|
|
1444
1458
|
return leftSupport;
|
|
1445
1459
|
if (expr.op === "??" && expr.right.kind === "object-literal" && expr.right.properties.length === 0) {
|
|
1446
1460
|
return { supported: true, level: "L4" };
|
|
1447
1461
|
}
|
|
1448
|
-
const rightSupport = checkSupport(expr.right);
|
|
1462
|
+
const rightSupport = checkSupport(expr.right, pos);
|
|
1449
1463
|
if (!rightSupport.supported)
|
|
1450
1464
|
return rightSupport;
|
|
1451
1465
|
return { supported: true, level: "L4" };
|
|
1452
1466
|
}
|
|
1453
1467
|
case "conditional": {
|
|
1454
|
-
const testSupport = checkSupport(expr.test);
|
|
1468
|
+
const testSupport = checkSupport(expr.test, pos);
|
|
1455
1469
|
if (!testSupport.supported)
|
|
1456
1470
|
return testSupport;
|
|
1457
|
-
const consSupport = checkSupport(expr.consequent);
|
|
1471
|
+
const consSupport = checkSupport(expr.consequent, pos);
|
|
1458
1472
|
if (!consSupport.supported)
|
|
1459
1473
|
return consSupport;
|
|
1460
|
-
const altSupport = checkSupport(expr.alternate);
|
|
1474
|
+
const altSupport = checkSupport(expr.alternate, pos);
|
|
1461
1475
|
if (!altSupport.supported)
|
|
1462
1476
|
return altSupport;
|
|
1463
1477
|
return { supported: true, level: "L4" };
|
|
@@ -1465,7 +1479,7 @@ function checkSupport(expr) {
|
|
|
1465
1479
|
case "template-literal": {
|
|
1466
1480
|
for (const part of expr.parts) {
|
|
1467
1481
|
if (part.type === "expression") {
|
|
1468
|
-
const partSupport = checkSupport(part.expr);
|
|
1482
|
+
const partSupport = checkSupport(part.expr, pos);
|
|
1469
1483
|
if (!partSupport.supported)
|
|
1470
1484
|
return partSupport;
|
|
1471
1485
|
}
|
|
@@ -1618,7 +1632,7 @@ function isPureInit(e, pureCallNames) {
|
|
|
1618
1632
|
case "array-literal":
|
|
1619
1633
|
return e.elements.every(pure);
|
|
1620
1634
|
case "object-literal":
|
|
1621
|
-
return e.properties.every((p) => pure(p.value));
|
|
1635
|
+
return e.properties.every((p) => pure(p.kind === "spread" ? p.expr : p.value));
|
|
1622
1636
|
case "call":
|
|
1623
1637
|
return e.callee.kind === "identifier" && e.args.length === 0 && pureCallNames !== undefined && pureCallNames.has(e.callee.name);
|
|
1624
1638
|
case "array-method":
|
|
@@ -1672,7 +1686,7 @@ function usesPerPath(name, expr) {
|
|
|
1672
1686
|
}
|
|
1673
1687
|
return add(walk(e.object), sum(e.args));
|
|
1674
1688
|
case "object-literal":
|
|
1675
|
-
return sum(e.properties.map((p) => p.value));
|
|
1689
|
+
return sum(e.properties.map((p) => p.kind === "spread" ? p.expr : p.value));
|
|
1676
1690
|
case "arrow":
|
|
1677
1691
|
return walk(e.body).max > 0 ? { min: 0, max: Number.POSITIVE_INFINITY } : { min: 0, max: 0 };
|
|
1678
1692
|
}
|
|
@@ -1738,7 +1752,7 @@ function inlineBinding(expr, name, value) {
|
|
|
1738
1752
|
case "object-literal":
|
|
1739
1753
|
return {
|
|
1740
1754
|
kind: "object-literal",
|
|
1741
|
-
properties: e.properties.map((p) => ({ ...p, value: walk(p.value, enclosing) })
|
|
1755
|
+
properties: e.properties.map((p) => p.kind === "spread" ? { ...p, expr: walk(p.expr, enclosing) } : { ...p, value: walk(p.value, enclosing) }),
|
|
1742
1756
|
raw: e.raw
|
|
1743
1757
|
};
|
|
1744
1758
|
case "literal":
|
|
@@ -1971,7 +1985,7 @@ function materializeGetterCalls(expr, names) {
|
|
|
1971
1985
|
return {
|
|
1972
1986
|
kind: "object-literal",
|
|
1973
1987
|
raw: expr.raw,
|
|
1974
|
-
properties: expr.properties.map((p) => ({ ...p, value: rw(p.value) })
|
|
1988
|
+
properties: expr.properties.map((p) => p.kind === "spread" ? { ...p, expr: rw(p.expr) } : { ...p, value: rw(p.value) })
|
|
1975
1989
|
};
|
|
1976
1990
|
case "arrow":
|
|
1977
1991
|
return { kind: "arrow", params: expr.params, body: rw(expr.body) };
|
|
@@ -2029,7 +2043,7 @@ function freeVarsInBody(body, params) {
|
|
|
2029
2043
|
return;
|
|
2030
2044
|
case "object-literal":
|
|
2031
2045
|
for (const p of e.properties)
|
|
2032
|
-
visit(p.value, bound);
|
|
2046
|
+
visit(p.kind === "spread" ? p.expr : p.value, bound);
|
|
2033
2047
|
return;
|
|
2034
2048
|
case "array-method":
|
|
2035
2049
|
if (e.method === "includes" || e.method === "join") {
|
|
@@ -2104,7 +2118,7 @@ function freeIdentifiers(expr) {
|
|
|
2104
2118
|
return true;
|
|
2105
2119
|
case "object-literal":
|
|
2106
2120
|
for (const p of e.properties)
|
|
2107
|
-
if (!visit(p.value, bound))
|
|
2121
|
+
if (!visit(p.kind === "spread" ? p.expr : p.value, bound))
|
|
2108
2122
|
return false;
|
|
2109
2123
|
return true;
|
|
2110
2124
|
case "arrow": {
|
|
@@ -2251,10 +2265,17 @@ function toEvalNode(e) {
|
|
|
2251
2265
|
case "object-literal": {
|
|
2252
2266
|
const properties = [];
|
|
2253
2267
|
for (const p of e.properties) {
|
|
2268
|
+
if (p.kind === "spread") {
|
|
2269
|
+
const spreadExpr = toEvalNode(p.expr);
|
|
2270
|
+
if (!spreadExpr)
|
|
2271
|
+
return null;
|
|
2272
|
+
properties.push({ kind: "spread", expr: spreadExpr });
|
|
2273
|
+
continue;
|
|
2274
|
+
}
|
|
2254
2275
|
const value = toEvalNode(p.value);
|
|
2255
2276
|
if (!value)
|
|
2256
2277
|
return null;
|
|
2257
|
-
properties.push({ key: p.key, value });
|
|
2278
|
+
properties.push({ kind: "prop", key: p.key, value });
|
|
2258
2279
|
}
|
|
2259
2280
|
return { kind: "object-literal", properties };
|
|
2260
2281
|
}
|
|
@@ -10114,6 +10135,8 @@ function matchToLocaleDateStringCall(callee, args, metadata) {
|
|
|
10114
10135
|
let tz = null;
|
|
10115
10136
|
const probeOptions = {};
|
|
10116
10137
|
for (const prop of options.properties) {
|
|
10138
|
+
if (prop.kind === "spread")
|
|
10139
|
+
return null;
|
|
10117
10140
|
if (prop.value.kind !== "literal" || prop.value.literalType !== "string")
|
|
10118
10141
|
return null;
|
|
10119
10142
|
const value = String(prop.value.value);
|
|
@@ -11879,7 +11902,10 @@ function resolveCallbackMethodFunctionReferences(expr, analyzer, bound = EMPTY_B
|
|
|
11879
11902
|
...e.method === "flat" && e.depthExpr ? { depthExpr: visit2(e.depthExpr, bound2) } : {}
|
|
11880
11903
|
};
|
|
11881
11904
|
case "object-literal":
|
|
11882
|
-
return {
|
|
11905
|
+
return {
|
|
11906
|
+
...e,
|
|
11907
|
+
properties: e.properties.map((p) => p.kind === "spread" ? { ...p, expr: visit2(p.expr, bound2) } : { ...p, value: visit2(p.value, bound2) })
|
|
11908
|
+
};
|
|
11883
11909
|
case "arrow": {
|
|
11884
11910
|
const inner = e.params.length === 0 ? bound2 : new Set([...bound2, ...e.params]);
|
|
11885
11911
|
return { ...e, body: visit2(e.body, inner) };
|
|
@@ -23480,12 +23506,38 @@ function evalNode(node, ctx) {
|
|
|
23480
23506
|
const baseResult = evalNode(node.expression, ctx);
|
|
23481
23507
|
if (baseResult === undefined)
|
|
23482
23508
|
return;
|
|
23483
|
-
|
|
23509
|
+
if (baseResult === UNRESOLVED || baseResult === null || typeof baseResult !== "object") {
|
|
23510
|
+
return UNRESOLVED;
|
|
23511
|
+
}
|
|
23512
|
+
const proto = Object.getPrototypeOf(baseResult);
|
|
23513
|
+
if (proto !== Object.prototype && proto !== null)
|
|
23514
|
+
return UNRESOLVED;
|
|
23515
|
+
const key = node.name.text;
|
|
23516
|
+
return Object.prototype.hasOwnProperty.call(baseResult, key) ? baseResult[key] : undefined;
|
|
23484
23517
|
}
|
|
23485
23518
|
if (ts22.isCallExpression(node)) {
|
|
23486
23519
|
if (node.arguments.length === 0 && ts22.isIdentifier(node.expression) && node.expression.text in ctx.bindings) {
|
|
23487
23520
|
return ctx.bindings[node.expression.text];
|
|
23488
23521
|
}
|
|
23522
|
+
if (ts22.isPropertyAccessExpression(node.expression) && node.expression.name.text === "map" && node.arguments.length === 1) {
|
|
23523
|
+
const arrow = node.arguments[0];
|
|
23524
|
+
if (ts22.isArrowFunction(arrow) && arrow.parameters.length === 1 && ts22.isIdentifier(arrow.parameters[0].name) && !ts22.isBlock(arrow.body)) {
|
|
23525
|
+
const recv = evalNode(node.expression.expression, ctx);
|
|
23526
|
+
if (Array.isArray(recv)) {
|
|
23527
|
+
const paramName = arrow.parameters[0].name.text;
|
|
23528
|
+
const mapped = [];
|
|
23529
|
+
for (const item of recv) {
|
|
23530
|
+
const localBindings = { ...ctx.bindings, [paramName]: item };
|
|
23531
|
+
const v = evalNode(arrow.body, { ...ctx, bindings: localBindings });
|
|
23532
|
+
if (v === UNRESOLVED)
|
|
23533
|
+
return UNRESOLVED;
|
|
23534
|
+
mapped.push(v === undefined ? null : v);
|
|
23535
|
+
}
|
|
23536
|
+
return mapped;
|
|
23537
|
+
}
|
|
23538
|
+
}
|
|
23539
|
+
return UNRESOLVED;
|
|
23540
|
+
}
|
|
23489
23541
|
if (ts22.isPropertyAccessExpression(node.expression) && node.expression.name.text === "join") {
|
|
23490
23542
|
const recv = evalNode(node.expression.expression, ctx);
|
|
23491
23543
|
if (Array.isArray(recv)) {
|
|
@@ -23989,7 +24041,7 @@ function parseRecordIndexAccess(val, localConstants, propsParams, resolveKey) {
|
|
|
23989
24041
|
|
|
23990
24042
|
// src/ssr-seed-plan.ts
|
|
23991
24043
|
function classify2(name, origin, expr, parsed, available) {
|
|
23992
|
-
if (!
|
|
24044
|
+
if (!isSupportedValue(parsed).supported)
|
|
23993
24045
|
return { kind: "opaque", name, origin };
|
|
23994
24046
|
const frees = freeIdentifiers(parsed);
|
|
23995
24047
|
if (frees === null)
|
|
@@ -24052,7 +24104,7 @@ function computeSsrSeedPlan(metadata) {
|
|
|
24052
24104
|
}
|
|
24053
24105
|
}
|
|
24054
24106
|
const expr = signal.initialValue.trim();
|
|
24055
|
-
steps.push(expr === "" ? { kind: "opaque", name: signal.getter, origin: "signal" } : classify2(signal.getter, "signal", expr, resolveThroughLocalConsts(parseExpression(expr), localConsts), available));
|
|
24107
|
+
steps.push(expr === "" ? { kind: "opaque", name: signal.getter, origin: "signal" } : classify2(signal.getter, "signal", expr, resolveThroughLocalConsts(signal.parsed ?? parseExpression(`(${expr})`), localConsts), available));
|
|
24056
24108
|
available.add(signal.getter);
|
|
24057
24109
|
}
|
|
24058
24110
|
for (const memo of metadata.memos) {
|
|
@@ -24216,7 +24268,7 @@ function checkExpr(expr, loc, meta, bindings, matchers, errors, seen) {
|
|
|
24216
24268
|
break;
|
|
24217
24269
|
case "object-literal":
|
|
24218
24270
|
for (const prop of expr.properties)
|
|
24219
|
-
recurse(prop.value);
|
|
24271
|
+
recurse(prop.kind === "spread" ? prop.expr : prop.value);
|
|
24220
24272
|
break;
|
|
24221
24273
|
case "array-method":
|
|
24222
24274
|
recurse(expr.object);
|
|
@@ -25599,6 +25651,26 @@ function isStringConcatBinary(op, left, right, isStringName) {
|
|
|
25599
25651
|
function groupBinaryOperand(operand, emitted) {
|
|
25600
25652
|
return operand.kind === "binary" || operand.kind === "logical" || operand.kind === "conditional" ? `(${emitted})` : emitted;
|
|
25601
25653
|
}
|
|
25654
|
+
function groupObjectLiteralSegments(properties, literalOf, emit) {
|
|
25655
|
+
const segments = [];
|
|
25656
|
+
let run = [];
|
|
25657
|
+
const flushRun = () => {
|
|
25658
|
+
if (run.length > 0) {
|
|
25659
|
+
segments.push(literalOf(run));
|
|
25660
|
+
run = [];
|
|
25661
|
+
}
|
|
25662
|
+
};
|
|
25663
|
+
for (const p of properties) {
|
|
25664
|
+
if (p.kind === "spread") {
|
|
25665
|
+
flushRun();
|
|
25666
|
+
segments.push(emit(p.expr));
|
|
25667
|
+
} else {
|
|
25668
|
+
run.push(p);
|
|
25669
|
+
}
|
|
25670
|
+
}
|
|
25671
|
+
flushRun();
|
|
25672
|
+
return segments;
|
|
25673
|
+
}
|
|
25602
25674
|
function emitParsedExpr(expr, emitter) {
|
|
25603
25675
|
const emit = (child) => emitParsedExpr(child, emitter);
|
|
25604
25676
|
switch (expr.kind) {
|
|
@@ -25745,6 +25817,17 @@ function evaluateStaticLiteral(expr, bindings) {
|
|
|
25745
25817
|
case "object-literal": {
|
|
25746
25818
|
const out = {};
|
|
25747
25819
|
for (const prop of expr.properties) {
|
|
25820
|
+
if (prop.kind === "spread") {
|
|
25821
|
+
const resolved2 = evaluateStaticLiteral(prop.expr, bindings);
|
|
25822
|
+
if (!resolved2)
|
|
25823
|
+
return null;
|
|
25824
|
+
if (resolved2.value === null || resolved2.value === undefined)
|
|
25825
|
+
continue;
|
|
25826
|
+
if (typeof resolved2.value !== "object" || Array.isArray(resolved2.value))
|
|
25827
|
+
return null;
|
|
25828
|
+
Object.assign(out, resolved2.value);
|
|
25829
|
+
continue;
|
|
25830
|
+
}
|
|
25748
25831
|
const resolved = evaluateStaticLiteral(prop.value, bindings);
|
|
25749
25832
|
if (!resolved)
|
|
25750
25833
|
return null;
|
|
@@ -25814,6 +25897,8 @@ function matchQueryHrefCall(callee, args, localNames) {
|
|
|
25814
25897
|
return null;
|
|
25815
25898
|
const triples = [];
|
|
25816
25899
|
for (const p of obj.properties) {
|
|
25900
|
+
if (p.kind === "spread")
|
|
25901
|
+
return null;
|
|
25817
25902
|
const v = p.value;
|
|
25818
25903
|
if (v.kind === "conditional" && isOmitBranch(v.alternate)) {
|
|
25819
25904
|
triples.push({ guard: v.test, key: p.key, value: v.consequent });
|
|
@@ -26001,6 +26086,8 @@ function htmlPropValue(parsed) {
|
|
|
26001
26086
|
if (parsed.properties.length !== 1)
|
|
26002
26087
|
return null;
|
|
26003
26088
|
const [prop] = parsed.properties;
|
|
26089
|
+
if (prop.kind === "spread")
|
|
26090
|
+
return null;
|
|
26004
26091
|
if (prop.key !== "__html")
|
|
26005
26092
|
return null;
|
|
26006
26093
|
return prop.value;
|
|
@@ -28925,6 +29012,7 @@ export {
|
|
|
28925
29012
|
joinProfilerEvents,
|
|
28926
29013
|
isValueReferenceIdentifier,
|
|
28927
29014
|
isValidHelperId,
|
|
29015
|
+
isSupportedValue,
|
|
28928
29016
|
isSupported,
|
|
28929
29017
|
isStringTypedOperand,
|
|
28930
29018
|
isStringConcatBinary,
|
|
@@ -28937,6 +29025,7 @@ export {
|
|
|
28937
29025
|
importsSearchParams,
|
|
28938
29026
|
identifierPath,
|
|
28939
29027
|
hasUnsafeStyleValue,
|
|
29028
|
+
groupObjectLiteralSegments,
|
|
28940
29029
|
groupBinaryOperand,
|
|
28941
29030
|
graphToJSON,
|
|
28942
29031
|
getLoweringPlugins,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-href-lowering.d.ts","sourceRoot":"","sources":["../src/query-href-lowering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,KAAK,EAAE,UAAU,GAAG,IAAI,CAAA;IACxB,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAA;IACX,uEAAuE;IACvE,KAAK,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE,eAAe,EAAE,CAAA;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,SAAS,UAAU,EAAE,EAC3B,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,aAAa,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"query-href-lowering.d.ts","sourceRoot":"","sources":["../src/query-href-lowering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,KAAK,EAAE,UAAU,GAAG,IAAI,CAAA;IACxB,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAA;IACX,uEAAuE;IACvE,KAAK,EAAE,UAAU,CAAA;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE,eAAe,EAAE,CAAA;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,SAAS,UAAU,EAAE,EAC3B,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,aAAa,GAAG,IAAI,CAsBtB;AAED;;;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