@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/build.js
CHANGED
|
@@ -44240,6 +44240,11 @@ var propProviders = Object.entries(pageProps).map(function(entry) {
|
|
|
44240
44240
|
var token = pageModule[toScreamingSnake(propName)];
|
|
44241
44241
|
return isInjectionToken(token) ? { provide: token, useValue: propValue } : null;
|
|
44242
44242
|
}).filter(Boolean);
|
|
44243
|
+
// Page-level providers, opt-in via \`export const providers = [...]\` in the
|
|
44244
|
+
// page module. Required so DI tokens that the component (or any service it
|
|
44245
|
+
// injects) needs are available client-side too \u2014 without these, services
|
|
44246
|
+
// that worked in SSR fail with NG0201 after hydration.
|
|
44247
|
+
var pageProviders = Array.isArray(pageModule.providers) ? pageModule.providers : [];
|
|
44243
44248
|
|
|
44244
44249
|
// Re-Bootstrap HMR with View Transitions API
|
|
44245
44250
|
if (window.__ANGULAR_APP__) {
|
|
@@ -44258,6 +44263,7 @@ if (!window.__HMR_SKIP_HYDRATION__ && !pageHasIslands) {
|
|
|
44258
44263
|
providers.push(provideClientHydration());
|
|
44259
44264
|
}
|
|
44260
44265
|
delete window.__HMR_SKIP_HYDRATION__;
|
|
44266
|
+
providers.push.apply(providers, pageProviders);
|
|
44261
44267
|
providers.push.apply(providers, propProviders);
|
|
44262
44268
|
window.__ABS_SLOT_HYDRATION_PENDING__ = pageHasRawStreamingSlots;
|
|
44263
44269
|
|
|
@@ -44305,10 +44311,15 @@ var propProviders = Object.entries(pageProps).map(function(entry) {
|
|
|
44305
44311
|
var token = pageModule[toScreamingSnake(propName)];
|
|
44306
44312
|
return isInjectionToken(token) ? { provide: token, useValue: propValue } : null;
|
|
44307
44313
|
}).filter(Boolean);
|
|
44314
|
+
// Page-level providers, opt-in via \`export const providers = [...]\` in the
|
|
44315
|
+
// page module. Required so DI tokens that the component (or any service it
|
|
44316
|
+
// injects) needs are available client-side too \u2014 without these, services
|
|
44317
|
+
// that worked in SSR fail with NG0201 after hydration.
|
|
44318
|
+
var pageProviders = Array.isArray(pageModule.providers) ? pageModule.providers : [];
|
|
44308
44319
|
|
|
44309
44320
|
enableProdMode();
|
|
44310
44321
|
|
|
44311
|
-
var providers = [provideZonelessChangeDetection()].concat(propProviders);
|
|
44322
|
+
var providers = [provideZonelessChangeDetection()].concat(pageProviders).concat(propProviders);
|
|
44312
44323
|
if (!pageHasIslands) {
|
|
44313
44324
|
providers.unshift(provideClientHydration());
|
|
44314
44325
|
}
|
|
@@ -49854,5 +49865,5 @@ export {
|
|
|
49854
49865
|
build
|
|
49855
49866
|
};
|
|
49856
49867
|
|
|
49857
|
-
//# debugId=
|
|
49868
|
+
//# debugId=C345689286AEB91E64756E2164756E21
|
|
49858
49869
|
//# sourceMappingURL=build.js.map
|