@angular/platform-server 14.0.0-next.13 → 14.0.0-next.16
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/esm2020/init/src/shims.mjs +3 -3
- package/esm2020/src/http.mjs +3 -3
- package/esm2020/src/location.mjs +3 -3
- package/esm2020/src/platform-server.mjs +2 -2
- package/esm2020/src/platform_state.mjs +3 -3
- package/esm2020/src/private_export.mjs +2 -1
- package/esm2020/src/server.mjs +6 -6
- package/esm2020/src/server_events.mjs +3 -3
- package/esm2020/src/server_renderer.mjs +3 -3
- package/esm2020/src/styles_host.mjs +3 -3
- package/esm2020/src/tokens.mjs +3 -3
- package/esm2020/src/transfer_state.mjs +4 -4
- package/esm2020/src/utils.mjs +56 -12
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/server.mjs +5 -5
- package/fesm2015/init.mjs +3 -93
- package/fesm2015/init.mjs.map +1 -1
- package/fesm2015/platform-server.mjs +87 -41
- package/fesm2015/platform-server.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/init.mjs +3 -92
- package/fesm2020/init.mjs.map +1 -1
- package/fesm2020/platform-server.mjs +85 -41
- package/fesm2020/platform-server.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/fesm2020/testing.mjs.map +1 -1
- package/{platform-server.d.ts → index.d.ts} +224 -183
- package/init/{init.d.ts → index.d.ts} +3 -2
- package/package.json +12 -12
- package/testing/{testing.d.ts → index.d.ts} +27 -26
- package/init/package.json +0 -10
- package/testing/package.json +0 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.16
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { ɵsetRootDomAdapter, DOCUMENT, XhrFactory, PlatformLocation, ɵgetDOM, ɵPLATFORM_SERVER_ID, ViewportScroller, ɵNullViewportScroller } from '@angular/common';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
|
-
import { Injectable, Inject, InjectionToken, Injector, Optional, ViewEncapsulation, RendererStyleFlags2, PLATFORM_ID, PLATFORM_INITIALIZER, ɵALLOW_MULTIPLE_PLATFORMS, RendererFactory2, NgZone, Testability, NgModule, ɵsetDocument, createPlatformFactory, platformCore, APP_ID, ApplicationRef, ɵisPromise, Version } from '@angular/core';
|
|
9
|
+
import { Injectable, Inject, InjectionToken, Injector, Optional, ViewEncapsulation, RendererStyleFlags2, PLATFORM_ID, PLATFORM_INITIALIZER, ɵALLOW_MULTIPLE_PLATFORMS, RendererFactory2, NgZone, Testability, NgModule, ɵsetDocument, createPlatformFactory, platformCore, APP_ID, ApplicationRef, ɵisPromise, importProvidersFrom, ɵbootstrapApplication, Version } from '@angular/core';
|
|
10
10
|
import * as i1 from '@angular/platform-browser';
|
|
11
11
|
import { ɵBrowserDomAdapter, ɵflattenStyles, ɵNAMESPACE_URIS, ɵshimContentAttribute, ɵshimHostAttribute, ɵSharedStylesHost, ɵTRANSITION_ID, EVENT_MANAGER_PLUGINS, BrowserModule, ɵescapeHtml, TransferState } from '@angular/platform-browser';
|
|
12
12
|
import * as domino from 'domino';
|
|
@@ -136,9 +136,9 @@ class PlatformState {
|
|
|
136
136
|
return this._doc;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
PlatformState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
140
|
-
PlatformState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
139
|
+
PlatformState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: PlatformState, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
140
|
+
PlatformState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: PlatformState });
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: PlatformState, decorators: [{
|
|
142
142
|
type: Injectable
|
|
143
143
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
144
144
|
type: Inject,
|
|
@@ -159,8 +159,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.13",
|
|
|
159
159
|
*/
|
|
160
160
|
const INITIAL_CONFIG = new InjectionToken('Server.INITIAL_CONFIG');
|
|
161
161
|
/**
|
|
162
|
-
* A function that will be executed when calling `renderModuleFactory` or
|
|
163
|
-
* before current platform state is rendered to string.
|
|
162
|
+
* A function that will be executed when calling `renderApplication`, `renderModuleFactory` or
|
|
163
|
+
* `renderModule` just before current platform state is rendered to string.
|
|
164
164
|
*
|
|
165
165
|
* @publicApi
|
|
166
166
|
*/
|
|
@@ -180,9 +180,9 @@ class ServerXhr {
|
|
|
180
180
|
return new xhr2.XMLHttpRequest();
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
ServerXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
184
|
-
ServerXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
183
|
+
ServerXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
184
|
+
ServerXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerXhr });
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerXhr, decorators: [{
|
|
186
186
|
type: Injectable
|
|
187
187
|
}] });
|
|
188
188
|
class ZoneMacroTaskWrapper {
|
|
@@ -386,9 +386,9 @@ class ServerPlatformLocation {
|
|
|
386
386
|
return undefined;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
ServerPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
390
|
-
ServerPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
389
|
+
ServerPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerPlatformLocation, deps: [{ token: DOCUMENT }, { token: INITIAL_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
390
|
+
ServerPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerPlatformLocation });
|
|
391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerPlatformLocation, decorators: [{
|
|
392
392
|
type: Injectable
|
|
393
393
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
394
394
|
type: Inject,
|
|
@@ -430,9 +430,9 @@ class ServerEventManagerPlugin /* extends EventManagerPlugin which is private */
|
|
|
430
430
|
return this.addEventListener(target, eventName, handler);
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
ServerEventManagerPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
434
|
-
ServerEventManagerPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
433
|
+
ServerEventManagerPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerEventManagerPlugin /* extends EventManagerPlugin which is private */, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
434
|
+
ServerEventManagerPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerEventManagerPlugin /* extends EventManagerPlugin which is private */ });
|
|
435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerEventManagerPlugin /* extends EventManagerPlugin which is private */, decorators: [{
|
|
436
436
|
type: Injectable
|
|
437
437
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
438
438
|
type: Inject,
|
|
@@ -485,9 +485,9 @@ class ServerRendererFactory2 {
|
|
|
485
485
|
begin() { }
|
|
486
486
|
end() { }
|
|
487
487
|
}
|
|
488
|
-
ServerRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
489
|
-
ServerRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
488
|
+
ServerRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerRendererFactory2, deps: [{ token: i1.EventManager }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i1.ɵSharedStylesHost }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
489
|
+
ServerRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerRendererFactory2 });
|
|
490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerRendererFactory2, decorators: [{
|
|
491
491
|
type: Injectable
|
|
492
492
|
}], ctorParameters: function () { return [{ type: i1.EventManager }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
493
493
|
type: Inject,
|
|
@@ -738,9 +738,9 @@ class ServerStylesHost extends ɵSharedStylesHost {
|
|
|
738
738
|
this._styleNodes.forEach(styleNode => styleNode.remove());
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
-
ServerStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
742
|
-
ServerStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
741
|
+
ServerStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerStylesHost, deps: [{ token: DOCUMENT }, { token: ɵTRANSITION_ID, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
742
|
+
ServerStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerStylesHost });
|
|
743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerStylesHost, decorators: [{
|
|
744
744
|
type: Injectable
|
|
745
745
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
746
746
|
type: Inject,
|
|
@@ -800,15 +800,15 @@ const SERVER_RENDER_PROVIDERS = [
|
|
|
800
800
|
*/
|
|
801
801
|
class ServerModule {
|
|
802
802
|
}
|
|
803
|
-
ServerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
804
|
-
ServerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
805
|
-
ServerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
803
|
+
ServerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
804
|
+
ServerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerModule, imports: [HttpClientModule, NoopAnimationsModule], exports: [BrowserModule] });
|
|
805
|
+
ServerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerModule, providers: [
|
|
806
806
|
SERVER_RENDER_PROVIDERS,
|
|
807
807
|
SERVER_HTTP_PROVIDERS,
|
|
808
808
|
{ provide: Testability, useValue: null },
|
|
809
809
|
{ provide: ViewportScroller, useClass: ɵNullViewportScroller },
|
|
810
|
-
], imports: [
|
|
811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
810
|
+
], imports: [HttpClientModule, NoopAnimationsModule, BrowserModule] });
|
|
811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerModule, decorators: [{
|
|
812
812
|
type: NgModule,
|
|
813
813
|
args: [{
|
|
814
814
|
exports: [BrowserModule],
|
|
@@ -864,9 +864,9 @@ function serializeTransferStateFactory(doc, appId, transferStore) {
|
|
|
864
864
|
*/
|
|
865
865
|
class ServerTransferStateModule {
|
|
866
866
|
}
|
|
867
|
-
ServerTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
868
|
-
ServerTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
869
|
-
ServerTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
867
|
+
ServerTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
868
|
+
ServerTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerTransferStateModule });
|
|
869
|
+
ServerTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerTransferStateModule, providers: [
|
|
870
870
|
TransferState, {
|
|
871
871
|
provide: BEFORE_APP_SERIALIZED,
|
|
872
872
|
useFactory: serializeTransferStateFactory,
|
|
@@ -874,7 +874,7 @@ ServerTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
874
874
|
multi: true,
|
|
875
875
|
}
|
|
876
876
|
] });
|
|
877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.16", ngImport: i0, type: ServerTransferStateModule, decorators: [{
|
|
878
878
|
type: NgModule,
|
|
879
879
|
args: [{
|
|
880
880
|
providers: [
|
|
@@ -896,27 +896,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.13",
|
|
|
896
896
|
* found in the LICENSE file at https://angular.io/license
|
|
897
897
|
*/
|
|
898
898
|
function _getPlatform(platformFactory, options) {
|
|
899
|
-
const extraProviders = options.
|
|
899
|
+
const extraProviders = options.platformProviders ?? [];
|
|
900
900
|
return platformFactory([
|
|
901
901
|
{ provide: INITIAL_CONFIG, useValue: { document: options.document, url: options.url } },
|
|
902
902
|
extraProviders
|
|
903
903
|
]);
|
|
904
904
|
}
|
|
905
|
-
function _render(platform,
|
|
906
|
-
return
|
|
907
|
-
const
|
|
905
|
+
function _render(platform, bootstrapPromise) {
|
|
906
|
+
return bootstrapPromise.then((moduleOrApplicationRef) => {
|
|
907
|
+
const environmentInjector = moduleOrApplicationRef.injector;
|
|
908
|
+
const transitionId = environmentInjector.get(ɵTRANSITION_ID, null);
|
|
908
909
|
if (!transitionId) {
|
|
909
910
|
throw new Error(`renderModule[Factory]() requires the use of BrowserModule.withServerTransition() to ensure
|
|
910
911
|
the server-rendered app can be properly bootstrapped into a client app.`);
|
|
911
912
|
}
|
|
912
|
-
const applicationRef =
|
|
913
|
+
const applicationRef = moduleOrApplicationRef instanceof ApplicationRef ?
|
|
914
|
+
moduleOrApplicationRef :
|
|
915
|
+
environmentInjector.get(ApplicationRef);
|
|
913
916
|
return applicationRef.isStable.pipe((first((isStable) => isStable)))
|
|
914
917
|
.toPromise()
|
|
915
918
|
.then(() => {
|
|
916
919
|
const platformState = platform.injector.get(PlatformState);
|
|
917
920
|
const asyncPromises = [];
|
|
918
921
|
// Run any BEFORE_APP_SERIALIZED callbacks just before rendering to string.
|
|
919
|
-
const callbacks =
|
|
922
|
+
const callbacks = environmentInjector.get(BEFORE_APP_SERIALIZED, null);
|
|
920
923
|
if (callbacks) {
|
|
921
924
|
for (const callback of callbacks) {
|
|
922
925
|
try {
|
|
@@ -960,9 +963,49 @@ the server-rendered app can be properly bootstrapped into a client app.`);
|
|
|
960
963
|
* @publicApi
|
|
961
964
|
*/
|
|
962
965
|
function renderModule(module, options) {
|
|
963
|
-
const
|
|
966
|
+
const { document, url, extraProviders: platformProviders } = options;
|
|
967
|
+
const platform = _getPlatform(platformDynamicServer, { document, url, platformProviders });
|
|
964
968
|
return _render(platform, platform.bootstrapModule(module));
|
|
965
969
|
}
|
|
970
|
+
/**
|
|
971
|
+
* Bootstraps an instance of an Angular application and renders it to a string.
|
|
972
|
+
*
|
|
973
|
+
* Note: the root component passed into this function *must* be a standalone one (should have the
|
|
974
|
+
* `standalone: true` flag in the `@Component` decorator config).
|
|
975
|
+
*
|
|
976
|
+
* ```typescript
|
|
977
|
+
* @Component({
|
|
978
|
+
* standalone: true,
|
|
979
|
+
* template: 'Hello world!'
|
|
980
|
+
* })
|
|
981
|
+
* class RootComponent {}
|
|
982
|
+
*
|
|
983
|
+
* const output: string = await renderApplication(RootComponent, {appId: 'server-app'});
|
|
984
|
+
* ```
|
|
985
|
+
*
|
|
986
|
+
* @param rootComponent A reference to a Standalone Component that should be rendered.
|
|
987
|
+
* @param options Additional configuration for the render operation:
|
|
988
|
+
* - `appId` - a string identifier of this application. The appId is used to prefix all
|
|
989
|
+
* server-generated stylings and state keys of the application in TransferState
|
|
990
|
+
* use-cases.
|
|
991
|
+
* - `document` - the full document HTML of the page to render, as a string.
|
|
992
|
+
* - `url` - the URL for the current render request.
|
|
993
|
+
* - `providers` - set of application level providers for the current render request.
|
|
994
|
+
* - `platformProviders` - the platform level providers for the current render request.
|
|
995
|
+
* @returns A Promise, that returns serialized (to a string) rendered page, once resolved.
|
|
996
|
+
*
|
|
997
|
+
* @publicApi
|
|
998
|
+
*/
|
|
999
|
+
function renderApplication(rootComponent, options) {
|
|
1000
|
+
const { document, url, platformProviders, appId } = options;
|
|
1001
|
+
const platform = _getPlatform(platformDynamicServer, { document, url, platformProviders });
|
|
1002
|
+
const appProviders = [
|
|
1003
|
+
importProvidersFrom(BrowserModule.withServerTransition({ appId })),
|
|
1004
|
+
importProvidersFrom(ServerModule),
|
|
1005
|
+
...(options.providers ?? []),
|
|
1006
|
+
];
|
|
1007
|
+
return _render(platform, ɵbootstrapApplication({ rootComponent, appProviders }));
|
|
1008
|
+
}
|
|
966
1009
|
/**
|
|
967
1010
|
* Renders a {@link NgModuleFactory} to string.
|
|
968
1011
|
*
|
|
@@ -977,7 +1020,8 @@ function renderModule(module, options) {
|
|
|
977
1020
|
* Use {@link renderModule} API instead.
|
|
978
1021
|
*/
|
|
979
1022
|
function renderModuleFactory(moduleFactory, options) {
|
|
980
|
-
const
|
|
1023
|
+
const { document, url, extraProviders: platformProviders } = options;
|
|
1024
|
+
const platform = _getPlatform(platformServer, { document, url, platformProviders });
|
|
981
1025
|
return _render(platform, platform.bootstrapModuleFactory(moduleFactory));
|
|
982
1026
|
}
|
|
983
1027
|
|
|
@@ -999,7 +1043,7 @@ function renderModuleFactory(moduleFactory, options) {
|
|
|
999
1043
|
/**
|
|
1000
1044
|
* @publicApi
|
|
1001
1045
|
*/
|
|
1002
|
-
const VERSION = new Version('14.0.0-next.
|
|
1046
|
+
const VERSION = new Version('14.0.0-next.16');
|
|
1003
1047
|
|
|
1004
1048
|
/**
|
|
1005
1049
|
* @license
|
|
@@ -1030,5 +1074,5 @@ const VERSION = new Version('14.0.0-next.13');
|
|
|
1030
1074
|
* Generated bundle index. Do not edit.
|
|
1031
1075
|
*/
|
|
1032
1076
|
|
|
1033
|
-
export { BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState, ServerModule, ServerTransferStateModule, VERSION, platformDynamicServer, platformServer, renderModule, renderModuleFactory, INTERNAL_SERVER_PLATFORM_PROVIDERS as ɵINTERNAL_SERVER_PLATFORM_PROVIDERS, SERVER_RENDER_PROVIDERS as ɵSERVER_RENDER_PROVIDERS, ServerRendererFactory2 as ɵServerRendererFactory2 };
|
|
1077
|
+
export { BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState, ServerModule, ServerTransferStateModule, VERSION, platformDynamicServer, platformServer, renderApplication, renderModule, renderModuleFactory, INTERNAL_SERVER_PLATFORM_PROVIDERS as ɵINTERNAL_SERVER_PLATFORM_PROVIDERS, SERVER_RENDER_PROVIDERS as ɵSERVER_RENDER_PROVIDERS, ServerRendererFactory2 as ɵServerRendererFactory2, setDomTypes as ɵsetDomTypes };
|
|
1034
1078
|
//# sourceMappingURL=platform-server.mjs.map
|