UNPKG

react-selectable-box

Version:

A React component used hooks that allows you to select elements in the drag area using the mouse

110 lines (109 loc) 3.1 kB
{ "name": "react-selectable-box", "version": "1.10.0", "description": "A React component used hooks that allows you to select elements in the drag area using the mouse", "keywords": [ "react", "selectable", "selection", "mouse", "drag" ], "homepage": "https://github.com/linxianxi/react-selectable-box", "bugs": { "url": "https://github.com/linxianxi/react-selectable-box/issues/new" }, "repository": { "type": "git", "url": "https://github.com/linxianxi/react-selectable-box.git" }, "license": "MIT", "sideEffects": false, "main": "lib/index.js", "module": "es/index.js", "types": "lib/index.d.ts", "files": [ "lib", "es", "dist" ], "scripts": { "build": "father build", "build:watch": "father dev", "ci": "npm run lint && npm run type-check && npm run doctor && npm run build", "clean": "rm -rf es lib dist coverage .dumi/tmp .eslintcache .doc", "dev": "dumi dev", "docs:build": "dumi build", "doctor": "father doctor", "lint": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"", "prepare": "husky install && npm run setup", "prepublishOnly": "npm run doctor && npm run build", "prettier": "prettier -c --write \"**/**\"", "release": "semantic-release", "setup": "dumi setup", "start": "dumi dev", "test": "vitest --passWithNoTests", "test:coverage": "vitest run --coverage --passWithNoTests", "test:update": "vitest -u", "type-check": "tsc -p tsconfig-check.json" }, "lint-staged": { "*.{md,json}": [ "prettier --write --no-error-on-unmatched-pattern" ], "*.{js,jsx}": [ "eslint --fix", "prettier --write" ], "*.{ts,tsx}": [ "eslint --fix", "prettier --parser=typescript --write" ] }, "devDependencies": { "@commitlint/cli": "^17", "@commitlint/config-conventional": "^17", "@dnd-kit/core": "^5.0.1", "@dnd-kit/sortable": "^6.0.0", "@dnd-kit/utilities": "^3.1.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@tanstack/react-virtual": "^3.8.4", "@testing-library/jest-dom": "^5", "@testing-library/react": "^14", "@types/react": "^18", "@types/react-dom": "^18", "@types/react-window": "^1.8.5", "@types/testing-library__jest-dom": "^5", "@umijs/lint": "^4", "@vitest/coverage-v8": "latest", "antd": "^5.8.3", "commitlint": "^17", "concurrently": "^7", "cross-env": "^7", "dumi": "^2", "dumi-theme-antd-style": "^0.29.7", "eslint": "^8", "father": "^4", "husky": "^8", "jsdom": "^22", "lint-staged": "^13", "prettier": "^2", "prettier-plugin-organize-imports": "^3", "prettier-plugin-packagejson": "^2", "react": "^18", "react-dom": "^18", "semantic-release": "^21", "stylelint": "^15", "typescript": "^5", "vitest": "latest" }, "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" } }