@angular/platform-browser 19.0.0-next.7 → 19.0.0-next.9
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/LICENSE +21 -0
- package/animations/async/index.d.ts +1 -1
- package/animations/index.d.ts +1 -1
- package/fesm2022/animations/async.mjs +4 -4
- package/fesm2022/animations.mjs +12 -12
- package/fesm2022/platform-browser.mjs +113 -144
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +12 -27
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v19.0.0-next.
|
2
|
+
* @license Angular v19.0.0-next.9
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -28,16 +28,16 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
|
|
28
28
|
* @publicApi
|
29
29
|
*/
|
30
30
|
class BrowserTestingModule {
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
32
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.
|
33
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.9", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
32
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.9", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
|
33
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.9", ngImport: i0, type: BrowserTestingModule, providers: [
|
34
34
|
{ provide: APP_ID, useValue: 'a' },
|
35
35
|
ɵinternalProvideZoneChangeDetection({}),
|
36
36
|
{ provide: ɵChangeDetectionScheduler, useExisting: ɵChangeDetectionSchedulerImpl },
|
37
37
|
{ provide: PlatformLocation, useClass: MockPlatformLocation },
|
38
38
|
], imports: [BrowserModule] }); }
|
39
39
|
}
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.9", ngImport: i0, type: BrowserTestingModule, decorators: [{
|
41
41
|
type: NgModule,
|
42
42
|
args: [{
|
43
43
|
exports: [BrowserModule],
|
package/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v19.0.0-next.
|
2
|
+
* @license Angular v19.0.0-next.9
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -16,7 +16,6 @@ import { HttpTransferCacheOptions } from '@angular/common/http';
|
|
16
16
|
import * as i0 from '@angular/core';
|
17
17
|
import * as i1 from '@angular/common';
|
18
18
|
import { InjectionToken } from '@angular/core';
|
19
|
-
import { ModuleWithProviders } from '@angular/core';
|
20
19
|
import { NgZone } from '@angular/core';
|
21
20
|
import { OnDestroy } from '@angular/core';
|
22
21
|
import { PlatformRef } from '@angular/core';
|
@@ -118,19 +117,6 @@ export declare function bootstrapApplication(rootComponent: Type<unknown>, optio
|
|
118
117
|
*/
|
119
118
|
export declare class BrowserModule {
|
120
119
|
constructor(providersAlreadyPresent: boolean | null);
|
121
|
-
/**
|
122
|
-
* Configures a browser-based app to transition from a server-rendered app, if
|
123
|
-
* one is present on the page.
|
124
|
-
*
|
125
|
-
* @param params An object containing an identifier for the app to transition.
|
126
|
-
* The ID must match between the client and server versions of the app.
|
127
|
-
* @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.
|
128
|
-
*
|
129
|
-
* @deprecated Use {@link APP_ID} instead to set the application ID.
|
130
|
-
*/
|
131
|
-
static withServerTransition(params: {
|
132
|
-
appId: string;
|
133
|
-
}): ModuleWithProviders<BrowserModule>;
|
134
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<BrowserModule, [{ optional: true; skipSelf: true; }]>;
|
135
121
|
static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserModule, never, never, [typeof i1.CommonModule, typeof i0.ApplicationModule]>;
|
136
122
|
static ɵinj: i0.ɵɵInjectorDeclaration<BrowserModule>;
|
@@ -999,19 +985,19 @@ export declare class ɵSharedStylesHost implements OnDestroy {
|
|
999
985
|
private readonly appId;
|
1000
986
|
private readonly nonce?;
|
1001
987
|
/**
|
1002
|
-
* Provides usage information for active
|
988
|
+
* Provides usage information for active inline style content and associated HTML <style> elements.
|
1003
989
|
* Embedded styles typically originate from the `styles` metadata of a rendered component.
|
1004
990
|
*/
|
1005
|
-
private readonly
|
991
|
+
private readonly inline;
|
1006
992
|
/**
|
1007
|
-
*
|
993
|
+
* Provides usage information for active external style URLs and the associated HTML <link> elements.
|
994
|
+
* External styles typically originate from the `ɵɵExternalStylesFeature` of a rendered component.
|
1008
995
|
*/
|
1009
|
-
private readonly
|
996
|
+
private readonly external;
|
1010
997
|
/**
|
1011
|
-
*
|
1012
|
-
* `null` if no server rendered styles are present in the DOM.
|
998
|
+
* Set of host DOM nodes that will have styles attached.
|
1013
999
|
*/
|
1014
|
-
private readonly
|
1000
|
+
private readonly hosts;
|
1015
1001
|
/**
|
1016
1002
|
* Whether the application code is currently executing on a server.
|
1017
1003
|
*/
|
@@ -1021,14 +1007,14 @@ export declare class ɵSharedStylesHost implements OnDestroy {
|
|
1021
1007
|
* Adds embedded styles to the DOM via HTML `style` elements.
|
1022
1008
|
* @param styles An array of style content strings.
|
1023
1009
|
*/
|
1024
|
-
addStyles(styles: string[]): void;
|
1010
|
+
addStyles(styles: string[], urls?: string[]): void;
|
1025
1011
|
/**
|
1026
1012
|
* Removes embedded styles from the DOM that were added as HTML `style` elements.
|
1027
1013
|
* @param styles An array of style content strings.
|
1028
1014
|
*/
|
1029
|
-
removeStyles(styles: string[]): void;
|
1030
|
-
protected
|
1031
|
-
protected
|
1015
|
+
removeStyles(styles: string[], urls?: string[]): void;
|
1016
|
+
protected addUsage<T extends HTMLElement>(value: string, usages: Map<string, UsageRecord<T>>, creator: (value: string, doc: Document) => T): void;
|
1017
|
+
protected removeUsage<T extends HTMLElement>(value: string, usages: Map<string, UsageRecord<T>>): void;
|
1032
1018
|
ngOnDestroy(): void;
|
1033
1019
|
/**
|
1034
1020
|
* Adds a host node to the set of style hosts and adds all existing style usage to
|
@@ -1039,7 +1025,6 @@ export declare class ɵSharedStylesHost implements OnDestroy {
|
|
1039
1025
|
addHost(hostNode: Node): void;
|
1040
1026
|
removeHost(hostNode: Node): void;
|
1041
1027
|
private addElement;
|
1042
|
-
private getStyleElement;
|
1043
1028
|
static ɵfac: i0.ɵɵFactoryDeclaration<ɵSharedStylesHost, [null, null, { optional: true; }, null]>;
|
1044
1029
|
static ɵprov: i0.ɵɵInjectableDeclaration<ɵSharedStylesHost>;
|
1045
1030
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@angular/platform-browser",
|
3
|
-
"version": "19.0.0-next.
|
3
|
+
"version": "19.0.0-next.9",
|
4
4
|
"description": "Angular - library for using Angular in a web browser",
|
5
5
|
"author": "angular",
|
6
6
|
"license": "MIT",
|
@@ -11,9 +11,9 @@
|
|
11
11
|
"tslib": "^2.3.0"
|
12
12
|
},
|
13
13
|
"peerDependencies": {
|
14
|
-
"@angular/animations": "19.0.0-next.
|
15
|
-
"@angular/core": "19.0.0-next.
|
16
|
-
"@angular/common": "19.0.0-next.
|
14
|
+
"@angular/animations": "19.0.0-next.9",
|
15
|
+
"@angular/core": "19.0.0-next.9",
|
16
|
+
"@angular/common": "19.0.0-next.9"
|
17
17
|
},
|
18
18
|
"peerDependenciesMeta": {
|
19
19
|
"@angular/animations": {
|
package/testing/index.d.ts
CHANGED