@absolutejs/absolute 0.19.0-beta.930 → 0.19.0-beta.932
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +65 -19
- package/dist/angular/index.js.map +4 -4
- package/dist/angular/server.js +65 -19
- package/dist/angular/server.js.map +4 -4
- package/dist/build.js +49 -19
- package/dist/build.js.map +14 -14
- package/dist/dev/client/handlers/angularHmrShim.ts +4 -1
- package/dist/dev/client/handlers/angularRemount.ts +2 -2
- package/dist/dev/client/handlers/angularRemountWiring.ts +1 -4
- package/dist/dev/client/vendor/lview/lViewOps.ts +8 -6
- package/dist/index.js +116 -35
- package/dist/index.js.map +19 -18
- package/dist/islands/index.js.map +2 -2
- package/dist/react/index.js +63 -17
- package/dist/react/index.js.map +4 -4
- package/dist/react/server.js +63 -17
- package/dist/react/server.js.map +3 -3
- package/dist/src/utils/defineConvention.d.ts +3 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/svelte/index.js +63 -17
- package/dist/svelte/index.js.map +4 -4
- package/dist/svelte/server.js +63 -17
- package/dist/svelte/server.js.map +3 -3
- package/dist/types/conventions.d.ts +5 -0
- package/dist/vue/index.js +63 -17
- package/dist/vue/index.js.map +4 -4
- package/dist/vue/server.js +63 -17
- package/dist/vue/server.js.map +3 -3
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -14814,6 +14814,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
14814
14814
|
vueConventionResult,
|
|
14815
14815
|
angularConventionResult,
|
|
14816
14816
|
emberConventionResult,
|
|
14817
|
+
htmlConventionResult,
|
|
14817
14818
|
allGlobalCssEntries
|
|
14818
14819
|
] = await Promise.all([
|
|
14819
14820
|
tailwindPromise,
|
|
@@ -14824,6 +14825,7 @@ ${content.slice(firstUseIdx)}`;
|
|
|
14824
14825
|
vuePagesPath ? tracePhase("scan/vue-conventions", () => scanConventions(vuePagesPath, "*.vue")) : emptyConventionResult,
|
|
14825
14826
|
angularPagesPath ? tracePhase("scan/angular-conventions", () => scanConventions(angularPagesPath, "*.ts")) : emptyConventionResult,
|
|
14826
14827
|
emberPagesPath ? tracePhase("scan/ember-conventions", () => scanConventions(emberPagesPath, "*.{gjs,gts,ts}")) : emptyConventionResult,
|
|
14828
|
+
htmlPagesPath ? tracePhase("scan/html-conventions", () => scanConventions(htmlPagesPath, "*.html")) : emptyConventionResult,
|
|
14827
14829
|
stylesDir ? tracePhase("scan/css", () => scanCssEntryPoints(stylesDir, stylesIgnore)) : []
|
|
14828
14830
|
]);
|
|
14829
14831
|
const allSvelteEntries = svelteConventionResult.pageFiles;
|
|
@@ -14841,7 +14843,29 @@ ${content.slice(firstUseIdx)}`;
|
|
|
14841
14843
|
conventionsMap.angular = angularConventionResult.conventions;
|
|
14842
14844
|
if (emberConventionResult.conventions)
|
|
14843
14845
|
conventionsMap.ember = emberConventionResult.conventions;
|
|
14844
|
-
|
|
14846
|
+
if (htmlConventionResult.conventions && htmlDir && htmlPagesPath) {
|
|
14847
|
+
const outputHtmlPages = isSingle ? join25(buildPath, "pages") : join25(buildPath, basename8(htmlDir), "pages");
|
|
14848
|
+
const remap = (sourcePath) => join25(outputHtmlPages, relative12(htmlPagesPath, sourcePath));
|
|
14849
|
+
const htmlConventions = htmlConventionResult.conventions;
|
|
14850
|
+
if (htmlConventions.defaults) {
|
|
14851
|
+
if (htmlConventions.defaults.error)
|
|
14852
|
+
htmlConventions.defaults.error = remap(htmlConventions.defaults.error);
|
|
14853
|
+
if (htmlConventions.defaults.notFound)
|
|
14854
|
+
htmlConventions.defaults.notFound = remap(htmlConventions.defaults.notFound);
|
|
14855
|
+
if (htmlConventions.defaults.loading)
|
|
14856
|
+
htmlConventions.defaults.loading = remap(htmlConventions.defaults.loading);
|
|
14857
|
+
}
|
|
14858
|
+
if (htmlConventions.pages) {
|
|
14859
|
+
for (const page of Object.values(htmlConventions.pages)) {
|
|
14860
|
+
if (page.error)
|
|
14861
|
+
page.error = remap(page.error);
|
|
14862
|
+
if (page.loading)
|
|
14863
|
+
page.loading = remap(page.loading);
|
|
14864
|
+
}
|
|
14865
|
+
}
|
|
14866
|
+
conventionsMap.html = htmlConventions;
|
|
14867
|
+
}
|
|
14868
|
+
const notFoundFrameworks = ["react", "svelte", "vue", "angular", "ember", "html"].filter((framework) => conventionsMap[framework]?.defaults?.notFound);
|
|
14845
14869
|
if (notFoundFrameworks.length > 1) {
|
|
14846
14870
|
logWarn(`Multiple frameworks define not-found convention files: ${notFoundFrameworks.join(", ")}. Only one will be used (priority: ${notFoundFrameworks[0]}). Remove not-found files from other frameworks to avoid ambiguity.`);
|
|
14847
14871
|
}
|
|
@@ -18189,7 +18213,9 @@ class ExpressionTranslatorVisitor {
|
|
|
18189
18213
|
return this.setSourceMapRange(this.factory.createRegularExpressionLiteral(ast.body, ast.flags), ast.sourceSpan);
|
|
18190
18214
|
}
|
|
18191
18215
|
visitLocalizedString(ast, context) {
|
|
18192
|
-
const elements = [
|
|
18216
|
+
const elements = [
|
|
18217
|
+
createTemplateElement(ast.serializeI18nHead())
|
|
18218
|
+
];
|
|
18193
18219
|
const expressions = [];
|
|
18194
18220
|
for (let i = 0;i < ast.expressions.length; i++) {
|
|
18195
18221
|
const placeholder = this.setSourceMapRange(ast.expressions[i].visitExpression(this, context), ast.getPlaceholderSourceSpan(i));
|
|
@@ -18197,7 +18223,10 @@ class ExpressionTranslatorVisitor {
|
|
|
18197
18223
|
elements.push(createTemplateElement(ast.serializeI18nTemplatePart(i + 1)));
|
|
18198
18224
|
}
|
|
18199
18225
|
const localizeTag = this.factory.createIdentifier("$localize");
|
|
18200
|
-
return this.setSourceMapRange(this.createTaggedTemplateExpression(localizeTag, {
|
|
18226
|
+
return this.setSourceMapRange(this.createTaggedTemplateExpression(localizeTag, {
|
|
18227
|
+
elements,
|
|
18228
|
+
expressions
|
|
18229
|
+
}), ast.sourceSpan);
|
|
18201
18230
|
}
|
|
18202
18231
|
visitBuiltinType(ast) {
|
|
18203
18232
|
let builtInType;
|
|
@@ -18254,7 +18283,10 @@ class ExpressionTranslatorVisitor {
|
|
|
18254
18283
|
cooked.push(this.factory.setSourceMapRange(this.factory.createLiteral(element.cooked), element.range));
|
|
18255
18284
|
raw.push(this.factory.setSourceMapRange(this.factory.createLiteral(element.raw), element.range));
|
|
18256
18285
|
}
|
|
18257
|
-
const templateHelperCall = this.factory.createCallExpression(__makeTemplateObjectHelper, [
|
|
18286
|
+
const templateHelperCall = this.factory.createCallExpression(__makeTemplateObjectHelper, [
|
|
18287
|
+
this.factory.createArrayLiteral(cooked),
|
|
18288
|
+
this.factory.createArrayLiteral(raw)
|
|
18289
|
+
], false);
|
|
18258
18290
|
return this.factory.createCallExpression(tagHandler, [templateHelperCall, ...expressions], false);
|
|
18259
18291
|
}
|
|
18260
18292
|
visitExternalExpr(ast, _context) {
|
|
@@ -18284,7 +18316,9 @@ class ExpressionTranslatorVisitor {
|
|
|
18284
18316
|
visitDynamicImportExpr(ast, context) {
|
|
18285
18317
|
const urlExpression = typeof ast.url === "string" ? this.factory.createLiteral(ast.url) : ast.url.visitExpression(this, context);
|
|
18286
18318
|
if (ast.urlComment) {
|
|
18287
|
-
this.factory.attachComments(urlExpression, [
|
|
18319
|
+
this.factory.attachComments(urlExpression, [
|
|
18320
|
+
o.leadingComment(ast.urlComment, true)
|
|
18321
|
+
]);
|
|
18288
18322
|
}
|
|
18289
18323
|
return this.factory.createDynamicImport(urlExpression);
|
|
18290
18324
|
}
|
|
@@ -18568,7 +18602,9 @@ class TypeScriptAstFactory {
|
|
|
18568
18602
|
createElementAccess = ts6.factory.createElementAccessExpression;
|
|
18569
18603
|
createExpressionStatement = ts6.factory.createExpressionStatement;
|
|
18570
18604
|
createDynamicImport(url) {
|
|
18571
|
-
return ts6.factory.createCallExpression(ts6.factory.createToken(ts6.SyntaxKind.ImportKeyword), undefined, [
|
|
18605
|
+
return ts6.factory.createCallExpression(ts6.factory.createToken(ts6.SyntaxKind.ImportKeyword), undefined, [
|
|
18606
|
+
typeof url === "string" ? ts6.factory.createStringLiteral(url) : url
|
|
18607
|
+
]);
|
|
18572
18608
|
}
|
|
18573
18609
|
createFunctionDeclaration(functionName, parameters, body) {
|
|
18574
18610
|
if (!ts6.isBlock(body)) {
|
|
@@ -19591,7 +19627,10 @@ var fail = (reason, detail, location) => ({
|
|
|
19591
19627
|
try {
|
|
19592
19628
|
source = readFileSync19(filePath, "utf-8");
|
|
19593
19629
|
} catch {
|
|
19594
|
-
childComponentInfoCache.set(cacheKey2, {
|
|
19630
|
+
childComponentInfoCache.set(cacheKey2, {
|
|
19631
|
+
info: null,
|
|
19632
|
+
mtimeMs: stat3.mtimeMs
|
|
19633
|
+
});
|
|
19595
19634
|
return null;
|
|
19596
19635
|
}
|
|
19597
19636
|
const sf = ts7.createSourceFile(filePath, source, ts7.ScriptTarget.Latest, true);
|
|
@@ -20354,12 +20393,7 @@ ${block}
|
|
|
20354
20393
|
if (!className_)
|
|
20355
20394
|
return fail("class-not-found", "anonymous class");
|
|
20356
20395
|
const wrappedClass = new compiler.WrappedNodeExpr(className_);
|
|
20357
|
-
const {
|
|
20358
|
-
inputs,
|
|
20359
|
-
outputs,
|
|
20360
|
-
hasDecoratorIO,
|
|
20361
|
-
hasSignalIO
|
|
20362
|
-
} = extractInputsAndOutputs(classNode, compiler);
|
|
20396
|
+
const { inputs, outputs, hasDecoratorIO, hasSignalIO } = extractInputsAndOutputs(classNode, compiler);
|
|
20363
20397
|
const projectRelPath = relative14(projectRoot, componentFilePath).replace(/\\/g, "/");
|
|
20364
20398
|
const fingerprintId = encodeURIComponent(`${projectRelPath}@${className}`);
|
|
20365
20399
|
const currentFingerprint = extractFingerprint(classNode, className, decoratorMeta, inputs, outputs, sourceFile, componentDir);
|
|
@@ -20563,11 +20597,7 @@ var init_fastHmrCompiler = __esm(() => {
|
|
|
20563
20597
|
fingerprintCache = new Map;
|
|
20564
20598
|
pendingModuleCache = new Map;
|
|
20565
20599
|
entityFingerprintCache = new Map;
|
|
20566
|
-
ENTITY_DECORATOR_NAMES = new Set([
|
|
20567
|
-
"Pipe",
|
|
20568
|
-
"Directive",
|
|
20569
|
-
"Injectable"
|
|
20570
|
-
]);
|
|
20600
|
+
ENTITY_DECORATOR_NAMES = new Set(["Pipe", "Directive", "Injectable"]);
|
|
20571
20601
|
VIEW_ENCAPSULATION_VALUES = {
|
|
20572
20602
|
Emulated: 0,
|
|
20573
20603
|
ExperimentalIsolatedShadowDom: 4,
|
|
@@ -23323,5 +23353,5 @@ export {
|
|
|
23323
23353
|
build
|
|
23324
23354
|
};
|
|
23325
23355
|
|
|
23326
|
-
//# debugId=
|
|
23356
|
+
//# debugId=59EBF06239810C7964756E2164756E21
|
|
23327
23357
|
//# sourceMappingURL=build.js.map
|