@absolutejs/absolute 0.19.0-beta.734 → 0.19.0-beta.735
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 +13 -2
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +13 -2
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +13 -2
- package/dist/build.js.map +3 -3
- package/dist/index.js +13 -2
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44432,6 +44432,11 @@ var propProviders = Object.entries(pageProps).map(function(entry) {
|
|
|
44432
44432
|
var token = pageModule[toScreamingSnake(propName)];
|
|
44433
44433
|
return isInjectionToken(token) ? { provide: token, useValue: propValue } : null;
|
|
44434
44434
|
}).filter(Boolean);
|
|
44435
|
+
// Page-level providers, opt-in via \`export const providers = [...]\` in the
|
|
44436
|
+
// page module. Required so DI tokens that the component (or any service it
|
|
44437
|
+
// injects) needs are available client-side too \u2014 without these, services
|
|
44438
|
+
// that worked in SSR fail with NG0201 after hydration.
|
|
44439
|
+
var pageProviders = Array.isArray(pageModule.providers) ? pageModule.providers : [];
|
|
44435
44440
|
|
|
44436
44441
|
// Re-Bootstrap HMR with View Transitions API
|
|
44437
44442
|
if (window.__ANGULAR_APP__) {
|
|
@@ -44450,6 +44455,7 @@ if (!window.__HMR_SKIP_HYDRATION__ && !pageHasIslands) {
|
|
|
44450
44455
|
providers.push(provideClientHydration());
|
|
44451
44456
|
}
|
|
44452
44457
|
delete window.__HMR_SKIP_HYDRATION__;
|
|
44458
|
+
providers.push.apply(providers, pageProviders);
|
|
44453
44459
|
providers.push.apply(providers, propProviders);
|
|
44454
44460
|
window.__ABS_SLOT_HYDRATION_PENDING__ = pageHasRawStreamingSlots;
|
|
44455
44461
|
|
|
@@ -44497,10 +44503,15 @@ var propProviders = Object.entries(pageProps).map(function(entry) {
|
|
|
44497
44503
|
var token = pageModule[toScreamingSnake(propName)];
|
|
44498
44504
|
return isInjectionToken(token) ? { provide: token, useValue: propValue } : null;
|
|
44499
44505
|
}).filter(Boolean);
|
|
44506
|
+
// Page-level providers, opt-in via \`export const providers = [...]\` in the
|
|
44507
|
+
// page module. Required so DI tokens that the component (or any service it
|
|
44508
|
+
// injects) needs are available client-side too \u2014 without these, services
|
|
44509
|
+
// that worked in SSR fail with NG0201 after hydration.
|
|
44510
|
+
var pageProviders = Array.isArray(pageModule.providers) ? pageModule.providers : [];
|
|
44500
44511
|
|
|
44501
44512
|
enableProdMode();
|
|
44502
44513
|
|
|
44503
|
-
var providers = [provideZonelessChangeDetection()].concat(propProviders);
|
|
44514
|
+
var providers = [provideZonelessChangeDetection()].concat(pageProviders).concat(propProviders);
|
|
44504
44515
|
if (!pageHasIslands) {
|
|
44505
44516
|
providers.unshift(provideClientHydration());
|
|
44506
44517
|
}
|
|
@@ -58314,5 +58325,5 @@ export {
|
|
|
58314
58325
|
ANGULAR_INIT_TIMEOUT_MS
|
|
58315
58326
|
};
|
|
58316
58327
|
|
|
58317
|
-
//# debugId=
|
|
58328
|
+
//# debugId=4F8041289BACD62064756E2164756E21
|
|
58318
58329
|
//# sourceMappingURL=index.js.map
|