mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-18 15:44:36 +00:00
Adds @storyteller/ui-dnd: a single drop-target registry that both the internal gallery drag and external OS file drops route through, so any field can register as a typed drop target with media-type safety. - New lib: MediaKind vocabulary, dndCoordinator (geometric hit-test), useDropTarget hook, useExternalFileDrop hook, DND_Z scale. - Gallery drags hit-test the registry first, falling back to the existing canvas/3D/moodboard CustomEvent path (no regression). - Reference fields (image/end-frame/video/audio) in the shared promptbox row and the webapp ImagePromptRow/MediaReferenceRow accept drops; gallery items reuse their media token (no re-upload), OS files go through the existing upload fns. Type mismatches show a reject ring + toast. - Desktop GlobalFileDropHandler reworked: field-aware, over-driven overlay that no longer hijacks the screen on file-enter; drops work with modals open. Webapp gains a GlobalFileDropHandler for OS-file field drops.