Add yet-another-react-lightbox package and update .gitignore to exclude node_modules

This commit is contained in:
IGNY8 VPS (Salman)
2025-11-12 18:50:30 +00:00
parent bd2a5570a9
commit c92f4a5edd
9304 changed files with 29 additions and 2008667 deletions

View File

@@ -1,31 +0,0 @@
import type {
DragDropManager,
DragSource,
DropTarget,
Identifier,
SourceType,
TargetType,
Unsubscribe,
} from 'dnd-core'
export function registerTarget(
type: TargetType,
target: DropTarget,
manager: DragDropManager,
): [Identifier, Unsubscribe] {
const registry = manager.getRegistry()
const targetId = registry.addTarget(type, target)
return [targetId, () => registry.removeTarget(targetId)]
}
export function registerSource(
type: SourceType,
source: DragSource,
manager: DragDropManager,
): [Identifier, Unsubscribe] {
const registry = manager.getRegistry()
const sourceId = registry.addSource(type, source)
return [sourceId, () => registry.removeSource(sourceId)]
}