Files
vibe-kanban/package.json
Britannio Jarrett 5b0be87d3f prevent cards in kanban board from being dragged infintely to the right by limiting x delta (#853)
Previously, if a card in the Kanban board was dragged to the far right edge of the screen, it would continue scrolling.
With this change, we introduce a variant of the restrictToFirstScrollableAncestor dnd-kit modifier (https://docs.dndkit.com/api-documentation/modifiers#restricttofirstscrollableancestor).
This modifier additionally limits the x delta of the dragged card by comparing the right edge of the card to the right edge of the scrollable ancestor and ensuring that it is at least 16 units.
2025-09-25 15:54:23 +01:00

43 lines
1.6 KiB
JSON

{
"name": "vibe-kanban",
"version": "0.0.96",
"private": true,
"bin": {
"vibe-kanban": "npx-cli/bin/cli.js"
},
"files": [
"npx-cli/bin/cli.js",
"npx-cli/dist/**"
],
"scripts": {
"format": "cargo fmt --all && cd frontend && npm run format",
"check": "npm run frontend:check && npm run backend:check",
"dev": "export FRONTEND_PORT=$(node scripts/setup-dev-environment.js frontend) && export BACKEND_PORT=$(node scripts/setup-dev-environment.js backend) && concurrently \"npm run backend:dev:watch\" \"npm run frontend:dev\"",
"test:npm": "./test-npm-package.sh",
"frontend:dev": "cd frontend && npm run dev -- --port ${FRONTEND_PORT:-3000} --host",
"frontend:check": "cd frontend && npm run check",
"backend:dev": "BACKEND_PORT=$(node scripts/setup-dev-environment.js backend) npm run backend:dev:watch",
"backend:check": "cargo check",
"backend:dev:watch": "DISABLE_WORKTREE_ORPHAN_CLEANUP=1 RUST_LOG=debug cargo watch -w crates -x 'run --bin server'",
"generate-types": "cargo run --bin generate_types",
"generate-types:check": "cargo run --bin generate_types -- --check",
"prepare-db": "node scripts/prepare-db.js",
"build:npx": "bash ./local-build.sh",
"prepack": "npm run build:npx"
},
"devDependencies": {
"@tailwindcss/container-queries": "^0.1.1",
"concurrently": "^8.2.2",
"vite": "^6.3.5"
},
"engines": {
"node": ">=18",
"pnpm": ">=8"
},
"dependencies": {
"lodash": "^4.17.21",
"@dnd-kit/utilities": "^3.2.2",
"@ebay/nice-modal-react": "^1.2.13"
}
}