@angular/platform-browser 21.0.0-next.8 → 21.0.0-rc.0

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,12 +1,12 @@
1
1
  /**
2
- * @license Angular v21.0.0-next.8
2
+ * @license Angular v21.0.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  export { BootstrapContext, BrowserModule, bootstrapApplication, createApplication, platformBrowser, provideProtractorTestingSupport } from './_browser-chunk.js';
8
8
  import * as i0 from '@angular/core';
9
- import { ComponentRef, Predicate, DebugNode, DebugElement, Type, InjectionToken, NgZone, ListenerOptions, OnDestroy, RendererFactory2, ɵTracingService as _TracingService, ɵTracingSnapshot as _TracingSnapshot, RendererType2, Renderer2, Injector, Sanitizer, SecurityContext, Provider, EnvironmentProviders, GetTestability, TestabilityRegistry, Testability, Version } from '@angular/core';
9
+ import { ComponentRef, Predicate, DebugNode, DebugElement, Type, ListenerOptions, InjectionToken, NgZone, OnDestroy, RendererFactory2, ɵTracingService as _TracingService, ɵTracingSnapshot as _TracingSnapshot, RendererType2, Renderer2, Injector, Sanitizer, SecurityContext, Provider, EnvironmentProviders, GetTestability, TestabilityRegistry, Testability, Version } from '@angular/core';
10
10
  import { HttpTransferCacheOptions } from '@angular/common/http';
11
11
  import { ɵDomAdapter as _DomAdapter } from '@angular/common';
12
12
  export { ɵgetDOM } from '@angular/common';
@@ -205,9 +205,35 @@ declare class By {
205
205
  static directive(type: Type<any>): Predicate<DebugNode>;
206
206
  }
207
207
 
208
+ /**
209
+ * The plugin definition for the `EventManager` class
210
+ *
211
+ * It can be used as a base class to create custom manager plugins, i.e. you can create your own
212
+ * class that extends the `EventManagerPlugin` one.
213
+ *
214
+ * @see [Extend event handling](guide/templates/event-listeners#extend-event-handling)
215
+ *
216
+ * @publicApi
217
+ */
218
+ declare abstract class EventManagerPlugin {
219
+ private _doc;
220
+ constructor(_doc: any);
221
+ manager: EventManager;
222
+ /**
223
+ * Should return `true` for every event name that should be supported by this plugin
224
+ */
225
+ abstract supports(eventName: string): boolean;
226
+ /**
227
+ * Implement the behaviour for the supported events
228
+ */
229
+ abstract addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
230
+ }
231
+
208
232
  /**
209
233
  * The injection token for plugins of the `EventManager` service.
210
234
  *
235
+ * @see [Extend event handling](guide/templates/event-listeners#extend-event-handling)
236
+ *
211
237
  * @publicApi
212
238
  */
213
239
  declare const EVENT_MANAGER_PLUGINS: InjectionToken<EventManagerPlugin[]>;
@@ -243,27 +269,6 @@ declare class EventManager {
243
269
  static ɵfac: i0.ɵɵFactoryDeclaration<EventManager, never>;
244
270
  static ɵprov: i0.ɵɵInjectableDeclaration<EventManager>;
245
271
  }
246
- /**
247
- * The plugin definition for the `EventManager` class
248
- *
249
- * It can be used as a base class to create custom manager plugins, i.e. you can create your own
250
- * class that extends the `EventManagerPlugin` one.
251
- *
252
- * @publicApi
253
- */
254
- declare abstract class EventManagerPlugin {
255
- private _doc;
256
- constructor(_doc: any);
257
- manager: EventManager;
258
- /**
259
- * Should return `true` for every event name that should be supported by this plugin
260
- */
261
- abstract supports(eventName: string): boolean;
262
- /**
263
- * Implement the behaviour for the supported events
264
- */
265
- abstract addEventListener(element: HTMLElement, eventName: string, handler: Function, options?: ListenerOptions): Function;
266
- }
267
272
 
268
273
  /**
269
274
  * A record of usage for a specific style including all elements added to the DOM
@@ -646,6 +651,8 @@ interface HydrationFeature<FeatureKind extends HydrationFeatureKind> {
646
651
  * Disables HTTP transfer cache. Effectively causes HTTP requests to be performed twice: once on the
647
652
  * server and other one on the browser.
648
653
  *
654
+ * @see [Disabling Caching](guide/ssr#disabling-caching)
655
+ *
649
656
  * @publicApi
650
657
  */
651
658
  declare function withNoHttpTransferCache(): HydrationFeature<HydrationFeatureKind.NoHttpTransferCache>;
@@ -655,6 +662,8 @@ declare function withNoHttpTransferCache(): HydrationFeature<HydrationFeatureKin
655
662
  * whether POST requests should be cached or a callback function to determine if a
656
663
  * particular request should be cached.
657
664
  *
665
+ * @see [Configuring HTTP transfer cache options](guide/ssr#caching-data-when-using-httpclient)
666
+ *
658
667
  * @publicApi
659
668
  */
660
669
  declare function withHttpTransferCacheOptions(options: HttpTransferCacheOptions): HydrationFeature<HydrationFeatureKind.HttpTransferCacheOptions>;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0-next.8
2
+ * @license Angular v21.0.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */