Skip to content

Commit 79e8872

Browse files
committed
fix(cdk/dialog): breaking changes for v20
Removes the deprecated symbols for v20 from `cdk/dialog`. BREAKING CHANGE: * `DIALOG_SCROLL_STRATEGY_PROVIDER` has been removed. * `DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY` has been removed.
1 parent 1167d06 commit 79e8872

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

src/cdk/dialog/dialog-injectors.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,3 @@ export const DIALOG_DATA = new InjectionToken<any>('DialogData');
2727

2828
/** Injection token that can be used to provide default options for the dialog module. */
2929
export const DEFAULT_DIALOG_CONFIG = new InjectionToken<DialogConfig>('DefaultDialogConfig');
30-
31-
/**
32-
* @docs-private
33-
* @deprecated No longer used. To be removed.
34-
* @breaking-change 19.0.0
35-
*/
36-
export function DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy {
37-
return () => overlay.scrollStrategies.block();
38-
}
39-
40-
/**
41-
* @docs-private
42-
* @deprecated No longer used. To be removed.
43-
* @breaking-change 19.0.0
44-
*/
45-
export const DIALOG_SCROLL_STRATEGY_PROVIDER = {
46-
provide: DIALOG_SCROLL_STRATEGY,
47-
deps: [Overlay],
48-
useFactory: DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY,
49-
};

tools/public_api_guard/cdk/dialog.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { Injector } from '@angular/core';
2525
import { NgZone } from '@angular/core';
2626
import { Observable } from 'rxjs';
2727
import { OnDestroy } from '@angular/core';
28-
import { Overlay } from '@angular/cdk/overlay';
2928
import { OverlayRef } from '@angular/cdk/overlay';
3029
import { PositionStrategy } from '@angular/cdk/overlay';
3130
import { ScrollStrategy } from '@angular/cdk/overlay';
@@ -107,16 +106,6 @@ export const DIALOG_DATA: InjectionToken<any>;
107106
// @public
108107
export const DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
109108

110-
// @public @deprecated
111-
export const DIALOG_SCROLL_STRATEGY_PROVIDER: {
112-
provide: InjectionToken<() => ScrollStrategy>;
113-
deps: (typeof Overlay)[];
114-
useFactory: typeof DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY;
115-
};
116-
117-
// @public @deprecated
118-
export function DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay): () => ScrollStrategy;
119-
120109
// @public
121110
export interface DialogCloseOptions {
122111
focusOrigin?: FocusOrigin;

0 commit comments

Comments
 (0)