@absolutejs/absolute 0.19.0-beta.980 → 0.19.0-beta.981
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 +30 -15
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +30 -15
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +69 -20
- package/dist/build.js.map +4 -4
- package/dist/index.js +69 -20
- package/dist/index.js.map +4 -4
- package/dist/src/build/compileAngular.d.ts +19 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-JL9YDz/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-JL9YDz/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-JL9YDz/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/angular/index.js
CHANGED
|
@@ -4402,7 +4402,7 @@ export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
|
4402
4402
|
}
|
|
4403
4403
|
}
|
|
4404
4404
|
return allOutputs;
|
|
4405
|
-
}, compileAngular = async (entryPoints, outRoot, hmr = false, stylePreprocessors) => {
|
|
4405
|
+
}, compileAngular = async (entryPoints, outRoot, hmr = false, stylePreprocessors, providersInjection) => {
|
|
4406
4406
|
const compiledParent = getFrameworkGeneratedDir("angular");
|
|
4407
4407
|
if (entryPoints.length === 0) {
|
|
4408
4408
|
const emptyPaths = [];
|
|
@@ -4517,25 +4517,40 @@ export default ${componentClassName};
|
|
|
4517
4517
|
export const __ABSOLUTE_PAGE_USES_LEGACY_ANIMATIONS__ = true;
|
|
4518
4518
|
`;
|
|
4519
4519
|
}
|
|
4520
|
-
const
|
|
4521
|
-
if (
|
|
4522
|
-
const
|
|
4523
|
-
|
|
4520
|
+
const pageInjection = providersInjection?.pagesByFile.get(resolvedEntry);
|
|
4521
|
+
if (providersInjection && pageInjection) {
|
|
4522
|
+
const compiledAppProvidersPath = (() => {
|
|
4523
|
+
const angularDirAbs = resolve6(outRoot);
|
|
4524
|
+
const appSourceAbs = resolve6(providersInjection.appProvidersSource);
|
|
4525
|
+
const rel = relative4(angularDirAbs, appSourceAbs).replace(/\\/g, "/");
|
|
4526
|
+
return join8(compiledParent, rel).replace(/\.[cm]?[tj]sx?$/, ".js");
|
|
4527
|
+
})();
|
|
4528
|
+
const appProvidersSpec = (() => {
|
|
4529
|
+
const rel = relative4(dirname4(rawServerFile), compiledAppProvidersPath).replace(/\\/g, "/");
|
|
4530
|
+
return rel.startsWith(".") ? rel : `./${rel}`;
|
|
4531
|
+
})();
|
|
4532
|
+
const importLines = [
|
|
4533
|
+
`import { appProviders as __abs_globalProviders } from "${appProvidersSpec}";`
|
|
4534
|
+
];
|
|
4535
|
+
const fragments = ["...__abs_globalProviders"];
|
|
4536
|
+
if (pageInjection.hasRoutes) {
|
|
4537
|
+
importLines.push(`import { provideRouter as __abs_provideRouter, withComponentInputBinding as __abs_withComponentInputBinding, withViewTransitions as __abs_withViewTransitions } from "@angular/router";`);
|
|
4538
|
+
fragments.push("__abs_provideRouter(routes, __abs_withComponentInputBinding(), __abs_withViewTransitions())");
|
|
4539
|
+
}
|
|
4540
|
+
if (pageInjection.basePath !== null) {
|
|
4541
|
+
importLines.push(`import { APP_BASE_HREF as __abs_APP_BASE_HREF } from "@angular/common";`);
|
|
4542
|
+
fragments.push(`{ provide: __abs_APP_BASE_HREF, useValue: ${JSON.stringify(pageInjection.basePath)} }`);
|
|
4543
|
+
}
|
|
4524
4544
|
rewritten += `
|
|
4525
|
-
|
|
4545
|
+
${importLines.join(`
|
|
4546
|
+
`)}
|
|
4547
|
+
export const providers = [${fragments.join(", ")}];
|
|
4526
4548
|
`;
|
|
4527
4549
|
}
|
|
4528
4550
|
await traceAngularPhase("wrapper/write-server-output", () => fs.writeFile(rawServerFile, rewritten, "utf-8"), { entry: resolvedEntry });
|
|
4529
4551
|
const relativePath = relative4(indexesDir, rawServerFile).replace(/\\/g, "/");
|
|
4530
4552
|
const normalizedImportPath = relativePath.startsWith(".") ? relativePath : `./${relativePath}`;
|
|
4531
|
-
const
|
|
4532
|
-
const providersServerFilePath = join8(compiledParent, "providers", `${manifestKeyForProviders}.providers.js`);
|
|
4533
|
-
const hasGeneratedProviders = existsSync5(providersServerFilePath);
|
|
4534
|
-
const providersImportPath = hasGeneratedProviders ? (() => {
|
|
4535
|
-
const rel = relative4(indexesDir, providersServerFilePath.replace(/\.js$/, "")).replace(/\\/g, "/");
|
|
4536
|
-
return rel.startsWith(".") ? rel : `./${rel}`;
|
|
4537
|
-
})() : null;
|
|
4538
|
-
const generatedProvidersImport = providersImportPath ? `import { providers as generatedProviders } from '${providersImportPath}';` : "var generatedProviders = null;";
|
|
4553
|
+
const generatedProvidersImport = "var generatedProviders = null;";
|
|
4539
4554
|
const hmrPreamble = hmr ? `window.__HMR_FRAMEWORK__ = "angular";
|
|
4540
4555
|
import "${hmrClientPath}";
|
|
4541
4556
|
` : "";
|
|
@@ -15408,5 +15423,5 @@ export {
|
|
|
15408
15423
|
ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
|
|
15409
15424
|
};
|
|
15410
15425
|
|
|
15411
|
-
//# debugId=
|
|
15426
|
+
//# debugId=DC31DE3FC1E8823E64756E2164756E21
|
|
15412
15427
|
//# sourceMappingURL=index.js.map
|