The useImageDrop hook's handleDrop was uploading files and inserting image blocks, but BlockNote already has a native dropFile ProseMirror plugin that does the same via editor.uploadFile — causing duplicate uploads and image block insertions on every drop. Fix: handleDrop now only resets the visual overlay state. BlockNote's native handler handles the actual upload (which calls uploadImageFile) and block insertion with proper drop-position support. Also fix build: exclude test files from tsconfig.app.json (test files use vi.Mock types from vitest, not available in the app build config). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
896 B
896 B