@absolutejs/absolute 0.19.0-beta.745 → 0.19.0-beta.747
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 +46 -35
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +42 -31
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +43 -32
- package/dist/build.js.map +3 -3
- package/dist/dev/client/handlers/angular.ts +131 -18
- package/dist/dev/client/handlers/angularRuntime.ts +25 -4
- package/dist/index.js +46 -35
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -4118,46 +4118,57 @@ var absoluteHttpTransferCacheOptions = {
|
|
|
4118
4118
|
}
|
|
4119
4119
|
};
|
|
4120
4120
|
|
|
4121
|
-
// Re-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
//
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
if (
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
window.__ANGULAR_APP__ = appRef;
|
|
4121
|
+
// Re-export the page module so HMR fast-patch (in handlers/angular.ts) can
|
|
4122
|
+
// dynamically import this chunk and discover the freshly-built component
|
|
4123
|
+
// classes without needing a separate build artifact.
|
|
4124
|
+
export * from '${normalizedImportPath}';
|
|
4125
|
+
|
|
4126
|
+
// Re-Bootstrap HMR with View Transitions API.
|
|
4127
|
+
// Skipped during fast-patch: the HMR client sets
|
|
4128
|
+
// window.__ANGULAR_HMR_FAST_PATCH__ = true before \`import()\`-ing this
|
|
4129
|
+
// chunk so it can read the new component classes via \`export *\` above
|
|
4130
|
+
// without destroying the running app.
|
|
4131
|
+
if (!window.__ANGULAR_HMR_FAST_PATCH__) {
|
|
4132
|
+
if (window.__ANGULAR_APP__) {
|
|
4133
|
+
try { window.__ANGULAR_APP__.destroy(); } catch (_err) { /* ignore */ }
|
|
4134
|
+
window.__ANGULAR_APP__ = null;
|
|
4135
|
+
}
|
|
4136
|
+
|
|
4137
|
+
// Ensure root element exists after destroy (Angular removes it)
|
|
4138
|
+
var _sel = ${componentClassName}.\u0275cmp?.selectors?.[0]?.[0] || 'ng-app';
|
|
4139
|
+
if (!document.querySelector(_sel)) {
|
|
4140
|
+
(document.getElementById('root') || document.body).appendChild(document.createElement(_sel));
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
var providers = [provideZonelessChangeDetection()];
|
|
4144
|
+
if (!window.__HMR_SKIP_HYDRATION__ && !pageHasIslands) {
|
|
4145
|
+
providers.push(provideClientHydration(withHttpTransferCacheOptions(absoluteHttpTransferCacheOptions)));
|
|
4146
|
+
}
|
|
4147
|
+
delete window.__HMR_SKIP_HYDRATION__;
|
|
4148
|
+
providers.push.apply(providers, pageProviders);
|
|
4149
|
+
providers.push.apply(providers, propProviders);
|
|
4150
|
+
window.__ABS_SLOT_HYDRATION_PENDING__ = pageHasRawStreamingSlots;
|
|
4151
|
+
|
|
4152
|
+
if (pageHasRawStreamingSlots) {
|
|
4154
4153
|
window.__ABS_SLOT_HYDRATION_PENDING__ = false;
|
|
4155
4154
|
if (typeof window.__ABS_SLOT_FLUSH__ === 'function') {
|
|
4156
4155
|
requestAnimationFrame(function() {
|
|
4157
4156
|
window.__ABS_SLOT_FLUSH__();
|
|
4158
4157
|
});
|
|
4159
4158
|
}
|
|
4160
|
-
}
|
|
4159
|
+
} else {
|
|
4160
|
+
bootstrapApplication(${componentClassName}, {
|
|
4161
|
+
providers: providers
|
|
4162
|
+
}).then(function (appRef) {
|
|
4163
|
+
window.__ANGULAR_APP__ = appRef;
|
|
4164
|
+
window.__ABS_SLOT_HYDRATION_PENDING__ = false;
|
|
4165
|
+
if (typeof window.__ABS_SLOT_FLUSH__ === 'function') {
|
|
4166
|
+
requestAnimationFrame(function() {
|
|
4167
|
+
window.__ABS_SLOT_FLUSH__();
|
|
4168
|
+
});
|
|
4169
|
+
}
|
|
4170
|
+
});
|
|
4171
|
+
}
|
|
4161
4172
|
}
|
|
4162
4173
|
`.trim() : `
|
|
4163
4174
|
import '@angular/compiler';
|
|
@@ -14673,5 +14684,5 @@ export {
|
|
|
14673
14684
|
ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
|
|
14674
14685
|
};
|
|
14675
14686
|
|
|
14676
|
-
//# debugId=
|
|
14687
|
+
//# debugId=2115AC9F35549B7264756E2164756E21
|
|
14677
14688
|
//# sourceMappingURL=index.js.map
|