@absolutejs/absolute 0.19.0-beta.842 → 0.19.0-beta.844
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 +6 -5
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +6 -5
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +12 -9
- package/dist/build.js.map +4 -4
- package/dist/index.js +12 -9
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12283,16 +12283,17 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
12283
12283
|
].join(", ")}`);
|
|
12284
12284
|
}
|
|
12285
12285
|
const original = await traceAngularPhase("wrapper/read-server-output", () => fs.readFile(rawServerFile, "utf-8"), { entry: resolvedEntry });
|
|
12286
|
-
const detectExportedComponentClass = (source
|
|
12286
|
+
const detectExportedComponentClass = (source) => {
|
|
12287
12287
|
const defaultMatch = source.match(/export\s+default\s+([A-Za-z_$][\w$]*)\s*;/);
|
|
12288
12288
|
if (defaultMatch)
|
|
12289
12289
|
return defaultMatch[1];
|
|
12290
12290
|
const exportClassMatch = source.match(/export\s+(?:default\s+)?class\s+([A-Za-z_$][\w$]*)/);
|
|
12291
12291
|
if (exportClassMatch)
|
|
12292
12292
|
return exportClassMatch[1];
|
|
12293
|
-
return
|
|
12293
|
+
return null;
|
|
12294
12294
|
};
|
|
12295
|
-
const
|
|
12295
|
+
const detectedClassName = await traceAngularPhase("wrapper/detect-component-class", () => detectExportedComponentClass(original), { entry: resolvedEntry });
|
|
12296
|
+
const componentClassName = detectedClassName ?? `${toPascal(fileBase)}Component`;
|
|
12296
12297
|
const usesLegacyAnimations = await traceAngularPhase("wrapper/detect-legacy-animations", () => usesLegacyAngularAnimations(resolvedEntry), { entry: resolvedEntry });
|
|
12297
12298
|
const serverContentHash = Bun.hash(original).toString(BASE_36_RADIX);
|
|
12298
12299
|
const cachedWrapper = wrapperOutputCache.get(resolvedEntry);
|
|
@@ -12312,7 +12313,7 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
12312
12313
|
${rewritten}`;
|
|
12313
12314
|
}
|
|
12314
12315
|
rewritten = rewritten.replace(new RegExp(`templateUrl:\\s*['"]\\.\\/${fileBase}\\.html['"]`), `templateUrl: '../../pages/${fileBase}.html'`);
|
|
12315
|
-
if (!rewritten.includes("export default")) {
|
|
12316
|
+
if (detectedClassName && !rewritten.includes("export default")) {
|
|
12316
12317
|
rewritten += `
|
|
12317
12318
|
export default ${componentClassName};
|
|
12318
12319
|
`;
|
|
@@ -13333,11 +13334,13 @@ var init_buildReactVendor = __esm(() => {
|
|
|
13333
13334
|
var RESERVED_KEYS, VALID_IDENTIFIER, generateVendorEntrySource = async (specifier) => {
|
|
13334
13335
|
const mod = await import(specifier);
|
|
13335
13336
|
const exportKeys = Object.keys(mod).filter((key) => !RESERVED_KEYS.has(key) && VALID_IDENTIFIER.test(key));
|
|
13336
|
-
const
|
|
13337
|
+
const localBindings = exportKeys.map((key, i) => `const __abs_${i} = __abs_ns[${JSON.stringify(key)}];`).join(`
|
|
13338
|
+
`);
|
|
13339
|
+
const reExportClause = exportKeys.length > 0 ? `export { ${exportKeys.map((key, i) => `__abs_${i} as ${key}`).join(", ")} };
|
|
13337
13340
|
` : "";
|
|
13338
13341
|
return `import * as __abs_ns from '${specifier}';
|
|
13339
|
-
|
|
13340
|
-
` +
|
|
13342
|
+
` + (localBindings ? `${localBindings}
|
|
13343
|
+
` : "") + reExportClause + `export default __abs_ns.default;
|
|
13341
13344
|
export const __ABSOLUTE_VENDOR_NAMESPACE__ = __abs_ns;
|
|
13342
13345
|
`;
|
|
13343
13346
|
};
|
|
@@ -13347,7 +13350,7 @@ var init_vendorEntrySource = __esm(() => {
|
|
|
13347
13350
|
"__esModule",
|
|
13348
13351
|
"__ABSOLUTE_VENDOR_NAMESPACE__"
|
|
13349
13352
|
]);
|
|
13350
|
-
VALID_IDENTIFIER = /^[$
|
|
13353
|
+
VALID_IDENTIFIER = /^[$_\p{L}][$_\p{L}\p{N}]*$/u;
|
|
13351
13354
|
});
|
|
13352
13355
|
|
|
13353
13356
|
// src/build/buildAngularVendor.ts
|
|
@@ -27945,5 +27948,5 @@ export {
|
|
|
27945
27948
|
ANGULAR_INIT_TIMEOUT_MS
|
|
27946
27949
|
};
|
|
27947
27950
|
|
|
27948
|
-
//# debugId=
|
|
27951
|
+
//# debugId=2E034E8C589087CA64756E2164756E21
|
|
27949
27952
|
//# sourceMappingURL=index.js.map
|