From b0fc1f0311097ff224e7070f9c1c237b43d8f32b Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Tue, 23 Feb 2021 21:21:54 +0100 Subject: [PATCH] fix(cdk/clipboard): typo in injection token name (#21978) There was a typo in the name of the `CDK_COPY_TO_CLIPBOARD_CONFIG` token. Fixes #21976. (cherry picked from commit 1f69ff4da44a0380447e394b55f97a1484821bd5) --- src/cdk/clipboard/copy-to-clipboard.ts | 10 ++++++++-- tools/public_api_guard/cdk/clipboard.d.ts | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/cdk/clipboard/copy-to-clipboard.ts b/src/cdk/clipboard/copy-to-clipboard.ts index 63c2976b5376..50457567e3f8 100644 --- a/src/cdk/clipboard/copy-to-clipboard.ts +++ b/src/cdk/clipboard/copy-to-clipboard.ts @@ -27,8 +27,14 @@ export interface CdkCopyToClipboardConfig { } /** Injection token that can be used to provide the default options to `CdkCopyToClipboard`. */ -export const CKD_COPY_TO_CLIPBOARD_CONFIG = - new InjectionToken('CKD_COPY_TO_CLIPBOARD_CONFIG'); +export const CDK_COPY_TO_CLIPBOARD_CONFIG = + new InjectionToken('CDK_COPY_TO_CLIPBOARD_CONFIG'); + +/** + * @deprecated Use `CDK_COPY_TO_CLIPBOARD_CONFIG` instead. + * @breaking-change 13.0.0 + */ +export const CKD_COPY_TO_CLIPBOARD_CONFIG = CDK_COPY_TO_CLIPBOARD_CONFIG; /** * Provides behavior for a button that when clicked copies content into user's diff --git a/tools/public_api_guard/cdk/clipboard.d.ts b/tools/public_api_guard/cdk/clipboard.d.ts index 6c66ed5a0893..e9f117bbddb5 100644 --- a/tools/public_api_guard/cdk/clipboard.d.ts +++ b/tools/public_api_guard/cdk/clipboard.d.ts @@ -1,3 +1,5 @@ +export declare const CDK_COPY_TO_CLIPBOARD_CONFIG: InjectionToken; + export declare class CdkCopyToClipboard implements OnDestroy { attempts: number; copied: EventEmitter;