From 3366438ffbdea5748f6d2122d3ca60031e94e1c8 Mon Sep 17 00:00:00 2001 From: Sasha Milenkovic Date: Mon, 30 Sep 2024 17:17:46 -0400 Subject: [PATCH] cleans up typings in src index --- src/index.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/index.ts b/src/index.ts index c769f34..ed40dfd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -249,20 +249,20 @@ export function dragAndDrop({ handleParentKeydown, handleDragstart, handleNodeDragover, - handlePaqrentDragover, + handleParentDragover, handleNodeDrop, handleDragend, - handleBlurParent, - handleFocusParent, - handlePointerupNode, - handleTouchstart, + handleParentBlur, + handleParentFocus, + handleNodePointerup, + handleNodeTouchstart, handleNodePointerover, handleParentPointerover, - handlePointerdownNode, - handlePointermove, + handleNodePointerdown, + handleNodePointermove, handleNodeDragenter, handleNodeDragleave, - handleDropParent, + handleParentDrop, multiDrag: config.multiDrag ?? false, nativeDrag: config.nativeDrag ?? true, performSort, @@ -557,12 +557,12 @@ function clearLiveRegion(parent: ParentRecord) { liveRegion.textContent = ""; } -export function handleBlurParent( +export function handleParentBlur( _data: ParentEventData, _state: BaseDragState | DragState | SynthDragState ) {} -export function handleFocusParent( +export function handleParentFocus( data: ParentEventData, state: BaseDragState | DragState | SynthDragState ) { @@ -788,7 +788,7 @@ export function updateConfig( }); } -export function handleDropParent(_data: ParentEventData) {} +export function handleParentDrop(_data: ParentEventData) {} export function tearDown(parent: HTMLElement) { const parentData = parents.get(parent); @@ -1225,7 +1225,7 @@ export function handleDragstart( ); } -export function handlePointerdownNode( +export function handleNodePointerdown( data: NodePointerEventData, state: BaseDragState ) { @@ -1671,14 +1671,14 @@ export function handleEnd( synthNodePointerDown = false; } -export function handleTouchstart( +export function handleNodeTouchstart( data: NodeEventData, _state: BaseDragState ) { if (data.e.cancelable) data.e.preventDefault(); } -export function handlePointerupNode( +export function handleNodePointerup( data: NodePointerEventData, state: DragState | SynthDragState | BaseDragState ) { @@ -1694,7 +1694,7 @@ export function handlePointerupNode( handleEnd(data, state as DragState | SynthDragState); } -export function handlePointermove( +export function handleNodePointermove( data: NodePointerEventData, state: SynthDragState | BaseDragState ) {