UNPKG

react-split-pane

Version:

React split-pane component with hooks and TypeScript

100 lines (99 loc) 2.79 kB
{ "name": "react-split-pane", "version": "3.2.0", "description": "React split-pane component with hooks and TypeScript", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./keyboard": { "types": "./dist/keyboard.d.ts", "import": "./dist/keyboard.js", "require": "./dist/keyboard.cjs" }, "./persistence": { "types": "./dist/persistence.d.ts", "import": "./dist/persistence.js", "require": "./dist/persistence.cjs" }, "./styles.css": "./styles.css" }, "files": [ "dist", "styles.css" ], "sideEffects": false, "scripts": { "dev": "rollup -c -w", "build": "rollup -c && npm run build:types", "build:types": "tsc --emitDeclarationOnly", "test": "vitest run", "test:watch": "vitest", "test:coverage": "vitest run --coverage", "lint": "eslint src", "format": "prettier --write src examples", "format:check": "prettier --check src examples", "typecheck": "tsc --noEmit", "checks": "npm run typecheck && npm run lint && npm run format && npm run test", "examples": "vite --config examples/vite.config.ts", "examples:build": "vite build --config examples/vite.config.ts", "prepublishOnly": "npm run test && npm run build" }, "repository": { "type": "git", "url": "https://github.com/tomkp/react-split-pane" }, "keywords": [ "react", "react-component", "split-pane", "react-split-pane", "typescript", "hooks", "resizable", "panes", "layout", "accessibility" ], "author": "tomkp <tom@tomkp.com>", "license": "MIT", "peerDependencies": { "react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" }, "devDependencies": { "@rollup/plugin-commonjs": "^29.0.0", "@rollup/plugin-node-resolve": "^16.0.3", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^12.3.0", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.1", "@testing-library/user-event": "^14.5.2", "@types/react": "^18.3.27", "@types/react-dom": "^18.3.7", "@vitejs/plugin-react": "^4.7.0", "@vitest/coverage-v8": "^4.0.16", "eslint": "^9.39.2", "globals": "^16.2.0", "jsdom": "^26.1.0", "prettier": "^3.7.4", "react": "^18.3.1", "react-dom": "^18.3.1", "rollup": "^4.54.0", "tslib": "^2.8.1", "typescript": "^5.8.3", "typescript-eslint": "^8.50.0", "vite": "^6.3.5", "vitest": "^4.0.16" }, "engines": { "node": ">=20.0.0" } }