diff --git a/.changeset/few-panthers-punch.md b/.changeset/few-panthers-punch.md new file mode 100644 index 00000000..97549579 --- /dev/null +++ b/.changeset/few-panthers-punch.md @@ -0,0 +1,5 @@ +--- +'@dnd-kit/core': patch +--- + +Export `defaultKeyboardCoordinateGetter` diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 304f8b1a..793623e7 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -52,6 +52,7 @@ export { MouseSensor, PointerSensor, TouchSensor, + defaultKeyboardCoordinateGetter, useSensors, useSensor, } from './sensors'; diff --git a/packages/core/src/sensors/index.ts b/packages/core/src/sensors/index.ts index 854cf591..831a2ff7 100644 --- a/packages/core/src/sensors/index.ts +++ b/packages/core/src/sensors/index.ts @@ -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, diff --git a/packages/core/src/sensors/keyboard/index.ts b/packages/core/src/sensors/keyboard/index.ts index a36d740a..d8bfe1fd 100644 --- a/packages/core/src/sensors/keyboard/index.ts +++ b/packages/core/src/sensors/keyboard/index.ts @@ -5,3 +5,4 @@ export type { } from './KeyboardSensor'; export type {KeyboardCoordinateGetter, KeyboardCodes} from './types'; export {KeyboardCode} from './types'; +export {defaultKeyboardCoordinateGetter} from './defaults';