@angular/platform-server 14.0.0-next.14 → 14.0.0-next.15

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.
@@ -1,188 +1,191 @@
1
1
  /**
2
- * @license Angular v14.0.0-next.14
2
+ * @license Angular v14.0.0-next.15
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import { EventManager } from '@angular/platform-browser';
8
- import * as i0 from '@angular/core';
9
- import * as i1 from '@angular/common/http';
10
- import * as i2 from '@angular/platform-browser/animations';
11
- import * as i3 from '@angular/platform-browser';
12
- import { InjectionToken } from '@angular/core';
13
- import { NgModuleFactory } from '@angular/core';
14
- import { NgZone } from '@angular/core';
15
- import { PlatformRef } from '@angular/core';
16
- import { Provider } from '@angular/core';
17
- import { Renderer2 } from '@angular/core';
18
- import { RendererFactory2 } from '@angular/core';
19
- import { RendererType2 } from '@angular/core';
20
- import { StaticProvider } from '@angular/core';
21
- import { Type } from '@angular/core';
22
- import { Version } from '@angular/core';
23
- import { ɵSharedStylesHost } from '@angular/platform-browser';
24
-
25
- /**
26
- * A function that will be executed when calling `renderModuleFactory` or `renderModule` just
27
- * before current platform state is rendered to string.
28
- *
29
- * @publicApi
30
- */
31
- export declare const BEFORE_APP_SERIALIZED: InjectionToken<(() => void | Promise<void>)[]>;
32
-
33
- /**
34
- * The DI token for setting the initial config for the platform.
35
- *
36
- * @publicApi
37
- */
38
- export declare const INITIAL_CONFIG: InjectionToken<PlatformConfig>;
39
-
40
- /**
41
- * Config object passed to initialize the platform.
42
- *
43
- * @publicApi
44
- */
45
- export declare interface PlatformConfig {
46
- /**
47
- * The initial DOM to use to bootstrap the server application.
48
- * @default create a new DOM using Domino
49
- */
50
- document?: string;
51
- /**
52
- * The URL for the current application state. This is used for initializing
53
- * the platform's location. `protocol`, `hostname`, and `port` will be
54
- * overridden if `baseUrl` is set.
55
- * @default none
56
- */
57
- url?: string;
58
- /**
59
- * Whether to append the absolute URL to any relative HTTP requests. If set to
60
- * true, this logic executes prior to any HTTP interceptors that may run later
61
- * on in the request. `baseUrl` must be supplied if this flag is enabled.
62
- * @default false
63
- */
64
- useAbsoluteUrl?: boolean;
65
- /**
66
- * The base URL for resolving absolute URL for HTTP requests. It must be set
67
- * if `useAbsoluteUrl` is true, and must consist of protocol, hostname,
68
- * and optional port. This option has no effect if `useAbsoluteUrl` is not
69
- * enabled.
70
- */
71
- baseUrl?: string;
72
- }
73
-
74
- /**
75
- * The server platform that supports the runtime compiler.
76
- *
77
- * @publicApi
78
- */
79
- export declare const platformDynamicServer: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
80
-
81
- /**
82
- * @publicApi
83
- */
84
- export declare const platformServer: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
85
-
86
- /**
87
- * Representation of the current platform state.
88
- *
89
- * @publicApi
90
- */
91
- export declare class PlatformState {
92
- private _doc;
93
- constructor(_doc: any);
94
- /**
95
- * Renders the current state of the platform to string.
96
- */
97
- renderToString(): string;
98
- /**
99
- * Returns the current DOM state.
100
- */
101
- getDocument(): any;
102
- static ɵfac: i0.ɵɵFactoryDeclaration<PlatformState, never>;
103
- static ɵprov: i0.ɵɵInjectableDeclaration<PlatformState>;
104
- }
105
-
106
- /**
107
- * Renders a Module to string.
108
- *
109
- * `document` is the full document HTML of the page to render, as a string.
110
- * `url` is the URL for the current render request.
111
- * `extraProviders` are the platform level providers for the current render request.
112
- *
113
- * @publicApi
114
- */
115
- export declare function renderModule<T>(module: Type<T>, options: {
116
- document?: string;
117
- url?: string;
118
- extraProviders?: StaticProvider[];
119
- }): Promise<string>;
120
-
121
- /**
122
- * Renders a {@link NgModuleFactory} to string.
123
- *
124
- * `document` is the full document HTML of the page to render, as a string.
125
- * `url` is the URL for the current render request.
126
- * `extraProviders` are the platform level providers for the current render request.
127
- *
128
- * @publicApi
129
- *
130
- * @deprecated
131
- * This symbol is no longer necessary as of Angular v13.
132
- * Use {@link renderModule} API instead.
133
- */
134
- export declare function renderModuleFactory<T>(moduleFactory: NgModuleFactory<T>, options: {
135
- document?: string;
136
- url?: string;
137
- extraProviders?: StaticProvider[];
138
- }): Promise<string>;
139
-
140
- /**
141
- * The ng module for the server.
142
- *
143
- * @publicApi
144
- */
145
- export declare class ServerModule {
146
- static ɵfac: i0.ɵɵFactoryDeclaration<ServerModule, never>;
147
- static ɵmod: i0.ɵɵNgModuleDeclaration<ServerModule, never, [typeof i1.HttpClientModule, typeof i2.NoopAnimationsModule], [typeof i3.BrowserModule]>;
148
- static ɵinj: i0.ɵɵInjectorDeclaration<ServerModule>;
149
- }
150
-
151
- /**
152
- * NgModule to install on the server side while using the `TransferState` to transfer state from
153
- * server to client.
154
- *
155
- * @publicApi
156
- */
157
- export declare class ServerTransferStateModule {
158
- static ɵfac: i0.ɵɵFactoryDeclaration<ServerTransferStateModule, never>;
159
- static ɵmod: i0.ɵɵNgModuleDeclaration<ServerTransferStateModule, never, never, never>;
160
- static ɵinj: i0.ɵɵInjectorDeclaration<ServerTransferStateModule>;
161
- }
162
-
163
- /**
164
- * @publicApi
165
- */
166
- export declare const VERSION: Version;
167
-
168
- export declare const ɵINTERNAL_SERVER_PLATFORM_PROVIDERS: StaticProvider[];
169
-
170
- export declare const ɵSERVER_RENDER_PROVIDERS: Provider[];
171
-
172
- export declare class ɵServerRendererFactory2 implements RendererFactory2 {
173
- private eventManager;
174
- private ngZone;
175
- private document;
176
- private sharedStylesHost;
177
- private rendererByCompId;
178
- private defaultRenderer;
179
- private schema;
180
- constructor(eventManager: EventManager, ngZone: NgZone, document: any, sharedStylesHost: ɵSharedStylesHost);
181
- createRenderer(element: any, type: RendererType2 | null): Renderer2;
182
- begin(): void;
183
- end(): void;
184
- static ɵfac: i0.ɵɵFactoryDeclaration<ɵServerRendererFactory2, never>;
185
- static ɵprov: i0.ɵɵInjectableDeclaration<ɵServerRendererFactory2>;
186
- }
187
-
188
- export { }
7
+
8
+ import { EventManager } from '@angular/platform-browser';
9
+ import * as i0 from '@angular/core';
10
+ import * as i1 from '@angular/common/http';
11
+ import * as i2 from '@angular/platform-browser/animations';
12
+ import * as i3 from '@angular/platform-browser';
13
+ import { InjectionToken } from '@angular/core';
14
+ import { NgModuleFactory } from '@angular/core';
15
+ import { NgZone } from '@angular/core';
16
+ import { PlatformRef } from '@angular/core';
17
+ import { Provider } from '@angular/core';
18
+ import { Renderer2 } from '@angular/core';
19
+ import { RendererFactory2 } from '@angular/core';
20
+ import { RendererType2 } from '@angular/core';
21
+ import { StaticProvider } from '@angular/core';
22
+ import { Type } from '@angular/core';
23
+ import { Version } from '@angular/core';
24
+ import { ɵSharedStylesHost } from '@angular/platform-browser';
25
+
26
+ /**
27
+ * A function that will be executed when calling `renderModuleFactory` or `renderModule` just
28
+ * before current platform state is rendered to string.
29
+ *
30
+ * @publicApi
31
+ */
32
+ export declare const BEFORE_APP_SERIALIZED: InjectionToken<(() => void | Promise<void>)[]>;
33
+
34
+ /**
35
+ * The DI token for setting the initial config for the platform.
36
+ *
37
+ * @publicApi
38
+ */
39
+ export declare const INITIAL_CONFIG: InjectionToken<PlatformConfig>;
40
+
41
+ /**
42
+ * Config object passed to initialize the platform.
43
+ *
44
+ * @publicApi
45
+ */
46
+ export declare interface PlatformConfig {
47
+ /**
48
+ * The initial DOM to use to bootstrap the server application.
49
+ * @default create a new DOM using Domino
50
+ */
51
+ document?: string;
52
+ /**
53
+ * The URL for the current application state. This is used for initializing
54
+ * the platform's location. `protocol`, `hostname`, and `port` will be
55
+ * overridden if `baseUrl` is set.
56
+ * @default none
57
+ */
58
+ url?: string;
59
+ /**
60
+ * Whether to append the absolute URL to any relative HTTP requests. If set to
61
+ * true, this logic executes prior to any HTTP interceptors that may run later
62
+ * on in the request. `baseUrl` must be supplied if this flag is enabled.
63
+ * @default false
64
+ */
65
+ useAbsoluteUrl?: boolean;
66
+ /**
67
+ * The base URL for resolving absolute URL for HTTP requests. It must be set
68
+ * if `useAbsoluteUrl` is true, and must consist of protocol, hostname,
69
+ * and optional port. This option has no effect if `useAbsoluteUrl` is not
70
+ * enabled.
71
+ */
72
+ baseUrl?: string;
73
+ }
74
+
75
+ /**
76
+ * The server platform that supports the runtime compiler.
77
+ *
78
+ * @publicApi
79
+ */
80
+ export declare const platformDynamicServer: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
81
+
82
+ /**
83
+ * @publicApi
84
+ */
85
+ export declare const platformServer: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
86
+
87
+ /**
88
+ * Representation of the current platform state.
89
+ *
90
+ * @publicApi
91
+ */
92
+ export declare class PlatformState {
93
+ private _doc;
94
+ constructor(_doc: any);
95
+ /**
96
+ * Renders the current state of the platform to string.
97
+ */
98
+ renderToString(): string;
99
+ /**
100
+ * Returns the current DOM state.
101
+ */
102
+ getDocument(): any;
103
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlatformState, never>;
104
+ static ɵprov: i0.ɵɵInjectableDeclaration<PlatformState>;
105
+ }
106
+
107
+ /**
108
+ * Renders a Module to string.
109
+ *
110
+ * `document` is the full document HTML of the page to render, as a string.
111
+ * `url` is the URL for the current render request.
112
+ * `extraProviders` are the platform level providers for the current render request.
113
+ *
114
+ * @publicApi
115
+ */
116
+ export declare function renderModule<T>(module: Type<T>, options: {
117
+ document?: string;
118
+ url?: string;
119
+ extraProviders?: StaticProvider[];
120
+ }): Promise<string>;
121
+
122
+ /**
123
+ * Renders a {@link NgModuleFactory} to string.
124
+ *
125
+ * `document` is the full document HTML of the page to render, as a string.
126
+ * `url` is the URL for the current render request.
127
+ * `extraProviders` are the platform level providers for the current render request.
128
+ *
129
+ * @publicApi
130
+ *
131
+ * @deprecated
132
+ * This symbol is no longer necessary as of Angular v13.
133
+ * Use {@link renderModule} API instead.
134
+ */
135
+ export declare function renderModuleFactory<T>(moduleFactory: NgModuleFactory<T>, options: {
136
+ document?: string;
137
+ url?: string;
138
+ extraProviders?: StaticProvider[];
139
+ }): Promise<string>;
140
+
141
+ /**
142
+ * The ng module for the server.
143
+ *
144
+ * @publicApi
145
+ */
146
+ export declare class ServerModule {
147
+ static ɵfac: i0.ɵɵFactoryDeclaration<ServerModule, never>;
148
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ServerModule, never, [typeof i1.HttpClientModule, typeof i2.NoopAnimationsModule], [typeof i3.BrowserModule]>;
149
+ static ɵinj: i0.ɵɵInjectorDeclaration<ServerModule>;
150
+ }
151
+
152
+ /**
153
+ * NgModule to install on the server side while using the `TransferState` to transfer state from
154
+ * server to client.
155
+ *
156
+ * @publicApi
157
+ */
158
+ export declare class ServerTransferStateModule {
159
+ static ɵfac: i0.ɵɵFactoryDeclaration<ServerTransferStateModule, never>;
160
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ServerTransferStateModule, never, never, never>;
161
+ static ɵinj: i0.ɵɵInjectorDeclaration<ServerTransferStateModule>;
162
+ }
163
+
164
+ /**
165
+ * @publicApi
166
+ */
167
+ export declare const VERSION: Version;
168
+
169
+ export declare const ɵINTERNAL_SERVER_PLATFORM_PROVIDERS: StaticProvider[];
170
+
171
+ export declare const ɵSERVER_RENDER_PROVIDERS: Provider[];
172
+
173
+ export declare class ɵServerRendererFactory2 implements RendererFactory2 {
174
+ private eventManager;
175
+ private ngZone;
176
+ private document;
177
+ private sharedStylesHost;
178
+ private rendererByCompId;
179
+ private defaultRenderer;
180
+ private schema;
181
+ constructor(eventManager: EventManager, ngZone: NgZone, document: any, sharedStylesHost: ɵSharedStylesHost);
182
+ createRenderer(element: any, type: RendererType2 | null): Renderer2;
183
+ begin(): void;
184
+ end(): void;
185
+ static ɵfac: i0.ɵɵFactoryDeclaration<ɵServerRendererFactory2, never>;
186
+ static ɵprov: i0.ɵɵInjectableDeclaration<ɵServerRendererFactory2>;
187
+ }
188
+
189
+ export declare function ɵsetDomTypes(): void;
190
+
191
+ export { }
@@ -1,7 +1,8 @@
1
1
  /**
2
- * @license Angular v14.0.0-next.14
2
+ * @license Angular v14.0.0-next.15
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- export { }
7
+
8
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-server",
3
- "version": "14.0.0-next.14",
3
+ "version": "14.0.0-next.15",
4
4
  "description": "Angular - library for using Angular in Node.js",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -8,12 +8,12 @@
8
8
  "node": "^14.15.0 || >=16.10.0"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/animations": "14.0.0-next.14",
12
- "@angular/common": "14.0.0-next.14",
13
- "@angular/compiler": "14.0.0-next.14",
14
- "@angular/core": "14.0.0-next.14",
15
- "@angular/platform-browser": "14.0.0-next.14",
16
- "@angular/platform-browser-dynamic": "14.0.0-next.14"
11
+ "@angular/animations": "14.0.0-next.15",
12
+ "@angular/common": "14.0.0-next.15",
13
+ "@angular/compiler": "14.0.0-next.15",
14
+ "@angular/core": "14.0.0-next.15",
15
+ "@angular/platform-browser": "14.0.0-next.15",
16
+ "@angular/platform-browser-dynamic": "14.0.0-next.15"
17
17
  },
18
18
  "dependencies": {
19
19
  "domino": "^2.1.2",
@@ -46,14 +46,14 @@
46
46
  ]
47
47
  },
48
48
  "sideEffects": [
49
- "./esm2020/init/src/init.mjs",
49
+ "./esm2020/init/**",
50
50
  "./fesm2015/init.mjs",
51
51
  "./fesm2020/init.mjs"
52
52
  ],
53
53
  "fesm2020": "./fesm2020/platform-server.mjs",
54
54
  "fesm2015": "./fesm2015/platform-server.mjs",
55
55
  "esm2020": "./esm2020/platform-server.mjs",
56
- "typings": "./platform-server.d.ts",
56
+ "typings": "./index.d.ts",
57
57
  "module": "./fesm2015/platform-server.mjs",
58
58
  "es2020": "./fesm2020/platform-server.mjs",
59
59
  "type": "module",
@@ -62,7 +62,7 @@
62
62
  "default": "./package.json"
63
63
  },
64
64
  ".": {
65
- "types": "./platform-server.d.ts",
65
+ "types": "./index.d.ts",
66
66
  "esm2020": "./esm2020/platform-server.mjs",
67
67
  "es2020": "./fesm2020/platform-server.mjs",
68
68
  "es2015": "./fesm2015/platform-server.mjs",
@@ -70,7 +70,7 @@
70
70
  "default": "./fesm2020/platform-server.mjs"
71
71
  },
72
72
  "./init": {
73
- "types": "./init/init.d.ts",
73
+ "types": "./init/index.d.ts",
74
74
  "esm2020": "./esm2020/init/init.mjs",
75
75
  "es2020": "./fesm2020/init.mjs",
76
76
  "es2015": "./fesm2015/init.mjs",
@@ -78,7 +78,7 @@
78
78
  "default": "./fesm2020/init.mjs"
79
79
  },
80
80
  "./testing": {
81
- "types": "./testing/testing.d.ts",
81
+ "types": "./testing/index.d.ts",
82
82
  "esm2020": "./esm2020/testing/testing.mjs",
83
83
  "es2020": "./fesm2020/testing.mjs",
84
84
  "es2015": "./fesm2015/testing.mjs",
@@ -1,31 +1,32 @@
1
1
  /**
2
- * @license Angular v14.0.0-next.14
2
+ * @license Angular v14.0.0-next.15
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import * as i0 from '@angular/core';
8
- import * as i1 from '@angular/platform-browser/animations';
9
- import * as i2 from '@angular/platform-browser-dynamic/testing';
10
- import { PlatformRef } from '@angular/core';
11
- import { StaticProvider } from '@angular/core';
12
-
13
- /**
14
- * Platform for testing
15
- *
16
- * @publicApi
17
- */
18
- export declare const platformServerTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
19
-
20
- /**
21
- * NgModule for testing.
22
- *
23
- * @publicApi
24
- */
25
- export declare class ServerTestingModule {
26
- static ɵfac: i0.ɵɵFactoryDeclaration<ServerTestingModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<ServerTestingModule, never, [typeof i1.NoopAnimationsModule], [typeof i2.BrowserDynamicTestingModule]>;
28
- static ɵinj: i0.ɵɵInjectorDeclaration<ServerTestingModule>;
29
- }
30
-
31
- export { }
7
+
8
+ import * as i0 from '@angular/core';
9
+ import * as i1 from '@angular/platform-browser/animations';
10
+ import * as i2 from '@angular/platform-browser-dynamic/testing';
11
+ import { PlatformRef } from '@angular/core';
12
+ import { StaticProvider } from '@angular/core';
13
+
14
+ /**
15
+ * Platform for testing
16
+ *
17
+ * @publicApi
18
+ */
19
+ export declare const platformServerTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
20
+
21
+ /**
22
+ * NgModule for testing.
23
+ *
24
+ * @publicApi
25
+ */
26
+ export declare class ServerTestingModule {
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<ServerTestingModule, never>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ServerTestingModule, never, [typeof i1.NoopAnimationsModule], [typeof i2.BrowserDynamicTestingModule]>;
29
+ static ɵinj: i0.ɵɵInjectorDeclaration<ServerTestingModule>;
30
+ }
31
+
32
+ export { }
package/init/package.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "name": "@angular/platform-server/init",
3
- "sideEffects": true,
4
- "fesm2020": "../fesm2020/init.mjs",
5
- "fesm2015": "../fesm2015/init.mjs",
6
- "esm2020": "../esm2020/init/init.mjs",
7
- "typings": "./init.d.ts",
8
- "module": "../fesm2015/init.mjs",
9
- "es2020": "../fesm2020/init.mjs"
10
- }
@@ -1,9 +0,0 @@
1
- {
2
- "name": "@angular/platform-server/testing",
3
- "fesm2020": "../fesm2020/testing.mjs",
4
- "fesm2015": "../fesm2015/testing.mjs",
5
- "esm2020": "../esm2020/testing/testing.mjs",
6
- "typings": "./testing.d.ts",
7
- "module": "../fesm2015/testing.mjs",
8
- "es2020": "../fesm2020/testing.mjs"
9
- }