Skip to content

Commit

Permalink
Merge pull request #1400 from 12joan/fix/export-keyboard-coordinate-g…
Browse files Browse the repository at this point in the history
…etter

Export `defaultKeyboardCoordinateGetter`
  • Loading branch information
clauderic authored Nov 23, 2024
2 parents 3a83e2a + 995dc23 commit 9c078b4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/few-panthers-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dnd-kit/core': patch
---

Export `defaultKeyboardCoordinateGetter`
1 change: 1 addition & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export {
MouseSensor,
PointerSensor,
TouchSensor,
defaultKeyboardCoordinateGetter,
useSensors,
useSensor,
} from './sensors';
Expand Down
6 changes: 5 additions & 1 deletion packages/core/src/sensors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export type {MouseSensorOptions, MouseSensorProps} from './mouse';
export {TouchSensor} from './touch';
export type {TouchSensorOptions, TouchSensorProps} from './touch';

export {KeyboardSensor, KeyboardCode} from './keyboard';
export {
KeyboardSensor,
KeyboardCode,
defaultKeyboardCoordinateGetter,
} from './keyboard';
export type {
KeyboardCoordinateGetter,
KeyboardSensorOptions,
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/sensors/keyboard/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export type {
} from './KeyboardSensor';
export type {KeyboardCoordinateGetter, KeyboardCodes} from './types';
export {KeyboardCode} from './types';
export {defaultKeyboardCoordinateGetter} from './defaults';

0 comments on commit 9c078b4

Please sign in to comment.