@absolutejs/absolute 0.19.0-beta.742 → 0.19.0-beta.744
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/browser.js +117 -13
- package/dist/angular/browser.js.map +10 -5
- package/dist/angular/index.js +361 -38
- package/dist/angular/index.js.map +15 -8
- package/dist/angular/server.js +356 -35
- package/dist/angular/server.js.map +16 -8
- package/dist/build.js +158 -12
- package/dist/build.js.map +8 -6
- package/dist/client/index.js +43 -5
- package/dist/client/index.js.map +7 -5
- package/dist/index.js +158 -12
- package/dist/index.js.map +8 -6
- package/dist/islands/index.js +43 -5
- package/dist/islands/index.js.map +7 -5
- package/dist/react/index.js +43 -5
- package/dist/react/index.js.map +7 -5
- package/dist/src/angular/animationProviders.d.ts +2 -0
- package/dist/src/angular/browser.d.ts +6 -0
- package/dist/src/angular/deterministicEnv.d.ts +26 -0
- package/dist/src/angular/httpTransferCache.d.ts +12 -0
- package/dist/src/angular/index.d.ts +6 -0
- package/dist/src/angular/page.d.ts +5 -0
- package/dist/src/angular/pageHandler.d.ts +11 -7
- package/dist/src/angular/pendingTask.d.ts +1 -0
- package/dist/src/angular/requestProviders.d.ts +6 -0
- package/dist/src/angular/routerRedirectProviders.d.ts +6 -0
- package/dist/src/angular/server.d.ts +6 -0
- package/dist/src/angular/ssrRender.d.ts +1 -1
- package/dist/svelte/index.js +43 -5
- package/dist/svelte/index.js.map +7 -5
- package/dist/types/angular.d.ts +15 -3
- package/dist/vue/index.js +43 -5
- package/dist/vue/index.js.map +7 -5
- package/package.json +14 -1
package/dist/types/angular.d.ts
CHANGED
|
@@ -2,18 +2,30 @@ export type AngularDeps = {
|
|
|
2
2
|
APP_BASE_HREF: typeof import('@angular/common').APP_BASE_HREF;
|
|
3
3
|
bootstrapApplication: typeof import('@angular/platform-browser').bootstrapApplication;
|
|
4
4
|
DomSanitizer: typeof import('@angular/platform-browser').DomSanitizer;
|
|
5
|
+
ENVIRONMENT_INITIALIZER: typeof import('@angular/core').ENVIRONMENT_INITIALIZER;
|
|
6
|
+
inject: typeof import('@angular/core').inject;
|
|
5
7
|
provideClientHydration: typeof import('@angular/platform-browser').provideClientHydration;
|
|
6
8
|
provideServerRendering: typeof import('@angular/platform-server').provideServerRendering;
|
|
7
9
|
provideZonelessChangeDetection: typeof import('@angular/core').provideZonelessChangeDetection;
|
|
8
10
|
reflectComponentType: typeof import('@angular/core').reflectComponentType;
|
|
9
11
|
renderApplication: typeof import('@angular/platform-server').renderApplication;
|
|
12
|
+
REQUEST: typeof import('@angular/core').REQUEST;
|
|
13
|
+
REQUEST_CONTEXT: typeof import('@angular/core').REQUEST_CONTEXT;
|
|
14
|
+
RESPONSE_INIT: typeof import('@angular/core').RESPONSE_INIT;
|
|
10
15
|
Sanitizer: typeof import('@angular/core').Sanitizer;
|
|
11
16
|
SecurityContext: typeof import('@angular/core').SecurityContext;
|
|
17
|
+
withHttpTransferCacheOptions: typeof import('@angular/platform-browser').withHttpTransferCacheOptions;
|
|
18
|
+
};
|
|
19
|
+
export type AngularPageDefinition<Props extends Record<string, unknown> = Record<never, never>> = {
|
|
20
|
+
component: import('@angular/core').Type<unknown>;
|
|
21
|
+
/** Type-only marker used by handleAngularPageRequest to infer route props. */
|
|
22
|
+
__absoluteAngularPageProps?: Props;
|
|
12
23
|
};
|
|
13
|
-
export type AngularPageFactory<Props extends Record<string, unknown> = Record<string, unknown>> = (props: Props) => unknown;
|
|
14
24
|
export type AngularPagePropsOf<Page> = Page extends {
|
|
15
|
-
|
|
16
|
-
} ?
|
|
25
|
+
page: AngularPageDefinition<infer Props>;
|
|
26
|
+
} ? Props : Page extends {
|
|
27
|
+
default: AngularPageDefinition<infer Props>;
|
|
28
|
+
} ? Props : Record<never, never>;
|
|
17
29
|
export type CachedRouteData = {
|
|
18
30
|
props: Record<string, unknown> | undefined;
|
|
19
31
|
headTag: `<head>${string}</head>`;
|
package/dist/vue/index.js
CHANGED
|
@@ -1299,13 +1299,19 @@ var initDominoAdapter = (platformServer) => {
|
|
|
1299
1299
|
APP_BASE_HREF: common.APP_BASE_HREF,
|
|
1300
1300
|
bootstrapApplication: platformBrowser.bootstrapApplication,
|
|
1301
1301
|
DomSanitizer: platformBrowser.DomSanitizer,
|
|
1302
|
+
ENVIRONMENT_INITIALIZER: core.ENVIRONMENT_INITIALIZER,
|
|
1303
|
+
inject: core.inject,
|
|
1302
1304
|
provideClientHydration: platformBrowser.provideClientHydration,
|
|
1303
1305
|
provideServerRendering: platformServer.provideServerRendering,
|
|
1304
1306
|
provideZonelessChangeDetection: core.provideZonelessChangeDetection,
|
|
1305
1307
|
reflectComponentType: core.reflectComponentType,
|
|
1306
1308
|
renderApplication: platformServer.renderApplication,
|
|
1309
|
+
REQUEST: core.REQUEST,
|
|
1310
|
+
REQUEST_CONTEXT: core.REQUEST_CONTEXT,
|
|
1311
|
+
RESPONSE_INIT: core.RESPONSE_INIT,
|
|
1307
1312
|
Sanitizer: core.Sanitizer,
|
|
1308
|
-
SecurityContext: core.SecurityContext
|
|
1313
|
+
SecurityContext: core.SecurityContext,
|
|
1314
|
+
withHttpTransferCacheOptions: platformBrowser.withHttpTransferCacheOptions
|
|
1309
1315
|
};
|
|
1310
1316
|
}, angularDeps = null, getAngularDeps = () => {
|
|
1311
1317
|
if (!angularDeps) {
|
|
@@ -1397,6 +1403,30 @@ var init_registerClientScript = __esm(() => {
|
|
|
1397
1403
|
}
|
|
1398
1404
|
});
|
|
1399
1405
|
|
|
1406
|
+
// src/angular/httpTransferCache.ts
|
|
1407
|
+
var ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER = "x-skip-transfer-cache", buildAbsoluteHttpTransferCacheOptions = (options = {}) => {
|
|
1408
|
+
const {
|
|
1409
|
+
filter: userFilter,
|
|
1410
|
+
skipHeader = ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER,
|
|
1411
|
+
...angularOptions
|
|
1412
|
+
} = options;
|
|
1413
|
+
return {
|
|
1414
|
+
includePostRequests: false,
|
|
1415
|
+
includeRequestsWithAuthHeaders: false,
|
|
1416
|
+
...angularOptions,
|
|
1417
|
+
filter: (request) => !request.headers.has(skipHeader) && (userFilter?.(request) ?? true)
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
// src/angular/requestProviders.ts
|
|
1422
|
+
import { REQUEST, REQUEST_CONTEXT, RESPONSE_INIT } from "@angular/core";
|
|
1423
|
+
var buildRequestProviders = (deps, request, requestContext, responseInit) => [
|
|
1424
|
+
{ provide: deps.REQUEST, useValue: request ?? null },
|
|
1425
|
+
{ provide: deps.REQUEST_CONTEXT, useValue: requestContext ?? null },
|
|
1426
|
+
{ provide: deps.RESPONSE_INIT, useValue: responseInit ?? null }
|
|
1427
|
+
];
|
|
1428
|
+
var init_requestProviders = () => {};
|
|
1429
|
+
|
|
1400
1430
|
// src/angular/ssrRender.ts
|
|
1401
1431
|
var routePropsCache, cacheRouteData = (pagePath, data) => {
|
|
1402
1432
|
const cacheKey = pagePath.split("?")[0] ?? pagePath;
|
|
@@ -1410,18 +1440,24 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
|
|
|
1410
1440
|
APP_BASE_HREF: common?.APP_BASE_HREF ?? baseDeps.APP_BASE_HREF,
|
|
1411
1441
|
bootstrapApplication: platformBrowser?.bootstrapApplication ?? baseDeps.bootstrapApplication,
|
|
1412
1442
|
DomSanitizer: platformBrowser?.DomSanitizer ?? baseDeps.DomSanitizer,
|
|
1443
|
+
ENVIRONMENT_INITIALIZER: core.ENVIRONMENT_INITIALIZER ?? baseDeps.ENVIRONMENT_INITIALIZER,
|
|
1444
|
+
inject: core.inject ?? baseDeps.inject,
|
|
1413
1445
|
provideClientHydration: platformBrowser?.provideClientHydration ?? baseDeps.provideClientHydration,
|
|
1414
1446
|
provideServerRendering: platformServer?.provideServerRendering ?? baseDeps.provideServerRendering,
|
|
1415
1447
|
provideZonelessChangeDetection: core.provideZonelessChangeDetection,
|
|
1416
1448
|
reflectComponentType: core.reflectComponentType,
|
|
1417
1449
|
renderApplication: platformServer?.renderApplication ?? baseDeps.renderApplication,
|
|
1450
|
+
REQUEST: core.REQUEST ?? baseDeps.REQUEST,
|
|
1451
|
+
REQUEST_CONTEXT: core.REQUEST_CONTEXT ?? baseDeps.REQUEST_CONTEXT,
|
|
1452
|
+
RESPONSE_INIT: core.RESPONSE_INIT ?? baseDeps.RESPONSE_INIT,
|
|
1418
1453
|
Sanitizer: core.Sanitizer,
|
|
1419
|
-
SecurityContext: core.SecurityContext
|
|
1454
|
+
SecurityContext: core.SecurityContext,
|
|
1455
|
+
withHttpTransferCacheOptions: platformBrowser?.withHttpTransferCacheOptions ?? baseDeps.withHttpTransferCacheOptions
|
|
1420
1456
|
};
|
|
1421
|
-
}, buildProviders = (deps, sanitizer, maybeProps, tokenMap, userProviders = []) => {
|
|
1457
|
+
}, buildProviders = (deps, sanitizer, maybeProps, tokenMap, request, requestContext, responseInit, userProviders = []) => {
|
|
1422
1458
|
const providers = [
|
|
1423
1459
|
deps.provideServerRendering(),
|
|
1424
|
-
deps.provideClientHydration(),
|
|
1460
|
+
deps.provideClientHydration(deps.withHttpTransferCacheOptions(buildAbsoluteHttpTransferCacheOptions())),
|
|
1425
1461
|
deps.provideZonelessChangeDetection(),
|
|
1426
1462
|
{ provide: deps.APP_BASE_HREF, useValue: "/" },
|
|
1427
1463
|
{
|
|
@@ -1429,6 +1465,7 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
|
|
|
1429
1465
|
useValue: sanitizer
|
|
1430
1466
|
},
|
|
1431
1467
|
{ provide: deps.Sanitizer, useValue: sanitizer },
|
|
1468
|
+
...buildRequestProviders(deps, request, requestContext, responseInit),
|
|
1432
1469
|
...userProviders
|
|
1433
1470
|
];
|
|
1434
1471
|
if (!maybeProps) {
|
|
@@ -1511,6 +1548,7 @@ var routePropsCache, cacheRouteData = (pagePath, data) => {
|
|
|
1511
1548
|
};
|
|
1512
1549
|
var init_ssrRender = __esm(() => {
|
|
1513
1550
|
init_registerClientScript();
|
|
1551
|
+
init_requestProviders();
|
|
1514
1552
|
routePropsCache = new Map;
|
|
1515
1553
|
selectorCache = new Map;
|
|
1516
1554
|
});
|
|
@@ -4198,5 +4236,5 @@ export {
|
|
|
4198
4236
|
Image
|
|
4199
4237
|
};
|
|
4200
4238
|
|
|
4201
|
-
//# debugId=
|
|
4239
|
+
//# debugId=78F205B528B829AA64756E2164756E21
|
|
4202
4240
|
//# sourceMappingURL=index.js.map
|