Skip to content

Commit 5833597

Browse files
authored
refactor(cdk/clipboard): clean up deprecated APIs for v13 (#23401)
Cleans up the APIs that were marked for removal for v13. BREAKING CHANGE: * `CKD_COPY_TO_CLIPBOARD_CONFIG` has been removed. Use `CDK_COPY_TO_CLIPBOARD_CONFIG` instead.
1 parent 6fb5f31 commit 5833597

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/cdk/clipboard/copy-to-clipboard.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ export interface CdkCopyToClipboardConfig {
3030
export const CDK_COPY_TO_CLIPBOARD_CONFIG =
3131
new InjectionToken<CdkCopyToClipboardConfig>('CDK_COPY_TO_CLIPBOARD_CONFIG');
3232

33-
/**
34-
* @deprecated Use `CDK_COPY_TO_CLIPBOARD_CONFIG` instead.
35-
* @breaking-change 13.0.0
36-
*/
37-
export const CKD_COPY_TO_CLIPBOARD_CONFIG = CDK_COPY_TO_CLIPBOARD_CONFIG;
38-
3933
/**
4034
* Provides behavior for a button that when clicked copies content into user's
4135
* clipboard.
@@ -74,7 +68,7 @@ export class CdkCopyToClipboard implements OnDestroy {
7468
constructor(
7569
private _clipboard: Clipboard,
7670
private _ngZone: NgZone,
77-
@Optional() @Inject(CKD_COPY_TO_CLIPBOARD_CONFIG) config?: CdkCopyToClipboardConfig) {
71+
@Optional() @Inject(CDK_COPY_TO_CLIPBOARD_CONFIG) config?: CdkCopyToClipboardConfig) {
7872

7973
if (config && config.attempts != null) {
8074
this.attempts = config.attempts;

tools/public_api_guard/cdk/clipboard.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ export interface CdkCopyToClipboardConfig {
3333
attempts?: number;
3434
}
3535

36-
// @public @deprecated (undocumented)
37-
export const CKD_COPY_TO_CLIPBOARD_CONFIG: InjectionToken<CdkCopyToClipboardConfig>;
38-
3936
// @public
4037
class Clipboard_2 {
4138
constructor(document: any);

0 commit comments

Comments
 (0)