Skip to content

Commit a97b050

Browse files
crisbetommalerba
authored andcommitted
fix(drag-drop): expose some missing injection tokens (#20410)
A couple of injection tokens weren't exposed from the `drag-drop` module. Normally these sorts of tokens would be internal, but the code from the `drag-drop` module is meant to be extended so we have to expose them to allow people to reach the same level of functionality. Fixes #20406.
1 parent 8ed5ba7 commit a97b050

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/cdk/drag-drop/public-api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
export {DragDrop} from './drag-drop';
1010
export {DragRef, DragRefConfig, Point} from './drag-ref';
1111
export {DropListRef} from './drop-list-ref';
12+
export {CDK_DRAG_PARENT} from './drag-parent';
1213

1314
export * from './drag-events';
1415
export * from './drag-utils';
1516
export * from './drag-drop-module';
1617
export * from './drag-drop-registry';
1718

18-
export {CdkDropList} from './directives/drop-list';
19+
export {CdkDropList, CDK_DROP_LIST} from './directives/drop-list';
1920
export * from './directives/config';
2021
export * from './directives/drop-list-group';
2122
export * from './directives/drag';

tools/public_api_guard/cdk/drag-drop.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ export declare const CDK_DRAG_CONFIG: InjectionToken<DragDropConfig>;
22

33
export declare const CDK_DRAG_HANDLE: InjectionToken<CdkDragHandle>;
44

5+
export declare const CDK_DRAG_PARENT: InjectionToken<{}>;
6+
57
export declare const CDK_DRAG_PLACEHOLDER: InjectionToken<CdkDragPlaceholder<any>>;
68

79
export declare const CDK_DRAG_PREVIEW: InjectionToken<CdkDragPreview<any>>;
810

11+
export declare const CDK_DROP_LIST: InjectionToken<CdkDropList<any>>;
12+
913
export declare const CDK_DROP_LIST_GROUP: InjectionToken<CdkDropListGroup<unknown>>;
1014

1115
export declare class CdkDrag<T = any> implements AfterViewInit, OnChanges, OnDestroy {

0 commit comments

Comments
 (0)