feat: remove deprecated DOCUMENT token from platform-browser (#28117)
PR Close #28117
This commit is contained in:
parent
6200732e23
commit
3a9d2473ca
|
@ -1,22 +0,0 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {DOCUMENT as commonDOCUMENT} from '@angular/common';
|
||||
import {InjectionToken} from '@angular/core';
|
||||
|
||||
|
||||
/**
|
||||
* A DI Token representing the main rendering context. In a browser this is the DOM Document.
|
||||
*
|
||||
* Note: Document might not be available in the Application Context when Application and Rendering
|
||||
* Contexts are not the same (e.g. when running the application into a Web Worker).
|
||||
*
|
||||
* @deprecated import from `@angular/common` instead.
|
||||
* @publicApi
|
||||
*/
|
||||
export const DOCUMENT = commonDOCUMENT;
|
|
@ -12,7 +12,6 @@ export {Title} from './browser/title';
|
|||
export {disableDebugTools, enableDebugTools} from './browser/tools/tools';
|
||||
export {BrowserTransferStateModule, StateKey, TransferState, makeStateKey} from './browser/transfer_state';
|
||||
export {By} from './dom/debug/by';
|
||||
export {DOCUMENT} from './dom/dom_tokens';
|
||||
export {EVENT_MANAGER_PLUGINS, EventManager} from './dom/events/event_manager';
|
||||
export {HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerLoader} from './dom/events/hammer_gestures';
|
||||
export {DomSanitizer, SafeHtml, SafeResourceUrl, SafeScript, SafeStyle, SafeUrl, SafeValue} from './security/dom_sanitization_service';
|
||||
|
|
|
@ -16,9 +16,6 @@ export declare class By {
|
|||
|
||||
export declare function disableDebugTools(): void;
|
||||
|
||||
/** @deprecated */
|
||||
export declare const DOCUMENT: InjectionToken<Document>;
|
||||
|
||||
export declare abstract class DomSanitizer implements Sanitizer {
|
||||
abstract bypassSecurityTrustHtml(value: string): SafeHtml;
|
||||
abstract bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl;
|
||||
|
|
Loading…
Reference in New Issue