- Implementado drag & drop nativo HTML5 para reordenar preguntas - Agregados estados draggedQuestion y dragOverQuestion - Handlers: handleDragStart, handleDragEnd, handleDragOver, handleDrop - Indicador visual: línea azul en drop zone - Icono de agarre (⋮⋮) con tooltip "Arrastra para reordenar" - Opacidad 50% en elemento arrastrado - Cursor 'move' indica elemento arrastrable - Mantiene función moveQuestion para compatibilidad - Reordenamiento automático al soltar
29 lines
663 B
JSON
29 lines
663 B
JSON
{
|
|
"name": "checklist-frontend",
|
|
"private": true,
|
|
"version": "1.0.73",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-router-dom": "^6.21.1",
|
|
"axios": "^1.6.5",
|
|
"react-signature-canvas": "^1.0.6",
|
|
"lucide-react": "^0.303.0",
|
|
"clsx": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^18.2.48",
|
|
"@types/react-dom": "^18.2.18",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"autoprefixer": "^10.4.16",
|
|
"postcss": "^8.4.33",
|
|
"tailwindcss": "^3.4.1",
|
|
"vite": "^5.0.11"
|
|
}
|
|
} |