@absolutejs/absolute 0.19.0-beta.740 → 0.19.0-beta.742
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/index.js +21 -5
- package/dist/angular/index.js.map +4 -4
- package/dist/angular/server.js +21 -5
- package/dist/angular/server.js.map +4 -4
- package/dist/build.js +3 -3
- package/dist/build.js.map +3 -3
- package/dist/client/index.js +3 -3
- package/dist/client/index.js.map +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +3 -3
- package/dist/islands/index.js +3 -3
- package/dist/islands/index.js.map +3 -3
- package/dist/react/index.js +3 -3
- package/dist/react/index.js.map +3 -3
- package/dist/src/angular/pageHandler.d.ts +5 -0
- package/dist/src/angular/ssrRender.d.ts +1 -1
- package/dist/svelte/index.js +3 -3
- package/dist/svelte/index.js.map +3 -3
- package/dist/vue/index.js +3 -3
- package/dist/vue/index.js.map +3 -3
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -520,12 +520,12 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
|
|
|
520
520
|
result = injectBeforeClose(result, `<script>import(${escapedIndexPath});</script>`);
|
|
521
521
|
}
|
|
522
522
|
return result;
|
|
523
|
-
}, renderAngularApp = async (deps, PageComponent, providers, document2) => {
|
|
523
|
+
}, renderAngularApp = async (deps, PageComponent, providers, document2, url = "/") => {
|
|
524
524
|
const bootstrap = (context) => deps.bootstrapApplication(PageComponent, { providers }, context);
|
|
525
525
|
return withSuppressedAngularDevLogs(() => deps.renderApplication(bootstrap, {
|
|
526
526
|
document: document2,
|
|
527
527
|
platformProviders: [],
|
|
528
|
-
url
|
|
528
|
+
url
|
|
529
529
|
}));
|
|
530
530
|
}, withSuppressedAngularDevLogs = async (render) => {
|
|
531
531
|
const origLog = console.log;
|
|
@@ -13967,6 +13967,16 @@ var handleAngularPageRequest = async (input) => {
|
|
|
13967
13967
|
const resolvedPagePath = input.pagePath;
|
|
13968
13968
|
const maybeProps = input.props;
|
|
13969
13969
|
const userProviders = input.providers;
|
|
13970
|
+
const resolvedUrl = (() => {
|
|
13971
|
+
if (!input.request)
|
|
13972
|
+
return "/";
|
|
13973
|
+
try {
|
|
13974
|
+
const parsed = new URL(input.request.url);
|
|
13975
|
+
return `${parsed.pathname}${parsed.search}`;
|
|
13976
|
+
} catch {
|
|
13977
|
+
return "/";
|
|
13978
|
+
}
|
|
13979
|
+
})();
|
|
13970
13980
|
cacheRouteData(resolvedPagePath, {
|
|
13971
13981
|
headTag: resolvedHeadTag,
|
|
13972
13982
|
props: maybeProps
|
|
@@ -14003,8 +14013,14 @@ var handleAngularPageRequest = async (input) => {
|
|
|
14003
14013
|
if (ssrResult?.core)
|
|
14004
14014
|
resetSsrSanitizer();
|
|
14005
14015
|
const sanitizer = getSsrSanitizer(deps);
|
|
14006
|
-
const
|
|
14007
|
-
const
|
|
14016
|
+
const pageProvidersExport = Reflect.get(pageModule, "providers");
|
|
14017
|
+
const pageProviders = Array.isArray(pageProvidersExport) ? pageProvidersExport : [];
|
|
14018
|
+
const combinedProviders = [
|
|
14019
|
+
...userProviders ?? [],
|
|
14020
|
+
...pageProviders
|
|
14021
|
+
];
|
|
14022
|
+
const providers = buildProviders(deps, sanitizer, maybeProps, tokenMap, combinedProviders);
|
|
14023
|
+
const rawHtml = await renderAngularApp(deps, PageComponent, providers, htmlString, resolvedUrl);
|
|
14008
14024
|
const shouldProcessIslands = hasIslands || rawHtml.includes("<absolute-island");
|
|
14009
14025
|
const htmlWithLoweredIslands = shouldProcessIslands ? await lowerAngularServerIslands(rawHtml) : rawHtml;
|
|
14010
14026
|
const html = injectIslandPageContext(injectSsrScripts(htmlWithLoweredIslands, requestId, resolvedIndexPath, maybeProps), { hasIslands: shouldProcessIslands });
|
|
@@ -14334,5 +14350,5 @@ export {
|
|
|
14334
14350
|
Island
|
|
14335
14351
|
};
|
|
14336
14352
|
|
|
14337
|
-
//# debugId=
|
|
14353
|
+
//# debugId=00D12D2EEE8CB33D64756E2164756E21
|
|
14338
14354
|
//# sourceMappingURL=index.js.map
|