UNPKG

focus-trap-react

Version:
120 lines (119 loc) 4.38 kB
{ "name": "focus-trap-react", "version": "11.0.4", "description": "A React component that traps focus.", "main": "dist/focus-trap-react.js", "types": "index.d.ts", "files": [ "README.md", "LICENSE", "CHANGELOG.md", "SECURITY.md", "dist", "src", "index.d.ts" ], "scripts": { "demo-bundle": "NODE_ENV=production browserify demo/js -t babelify --extension=.jsx -o demo/demo-bundle.js", "start": "npm run build && NODE_ENV=development budo demo/js/index.js:demo-bundle.js --dir demo --live -- -t babelify --extension=.jsx", "lint": "eslint \"{*,src/**/*,test/**/*,demo/**/*,cypress/e2e/**/*}.+(js|cjs|mjs|ts|cts|mts)\"", "format": "prettier --write \"{*,src/**/*,test/**/*,demo/js/**/*,.github/workflows/**/*,cypress/**/*}.+(js|cjs|mjs|ts|cts|mts|yml)\"", "format:check": "prettier --check \"{*,src/**/*,test/**/*,demo/js/**/*,.github/workflows/**/*,cypress/**/*}.+(js|cjs|mjs|ts|cts|mts|yml)\"", "format:watch": "onchange \"{*,src/**/*,test/**/*,demo/js/**/*,.github/workflows/**/*,cypress/**/*}.+(js|cjs|mjs|ts|cts|mts|yml)\" -- prettier --write {{changed}}", "build": "babel src -d dist", "test:types": "tsc index.d.ts", "test:unit": "jest", "test:coverage": "jest --coverage", "test:e2e": "ELECTRON_ENABLE_LOGGING=1 start-server-and-test start 9966 'cypress run --browser $CYPRESS_BROWSER --headless'", "test:e2e:chrome": "CYPRESS_BROWSER=chrome npm run test:e2e", "test:e2e:dev": "ELECTRON_ENABLE_LOGGING=1 start-server-and-test start 9966 'cypress open'", "test": "npm run format:check && npm run lint && npm run test:unit && npm run test:types && npm run test:e2e:chrome", "prepare": "npm run build", "prepublishOnly": "npm run test && npm run build", "release": "npm run build && changeset publish" }, "repository": { "type": "git", "url": "git+https://github.com/focus-trap/focus-trap-react.git" }, "keywords": [ "react", "reactjs", "react-component", "aria", "accessibility", "modal", "dialog", "focus", "keyboard" ], "author": { "name": "David Clark", "url": "http://davidtheclark.com/" }, "license": "MIT", "bugs": { "url": "https://github.com/focus-trap/focus-trap-react/issues" }, "homepage": "https://github.com/focus-trap/focus-trap-react#readme", "devDependencies": { "@babel/cli": "^7.27.2", "@babel/core": "^7.27.1", "@babel/eslint-parser": "^7.27.1", "@babel/eslint-plugin": "^7.27.1", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/preset-env": "^7.27.2", "@babel/preset-react": "^7.27.1", "@changesets/cli": "^2.29.4", "@eslint/js": "^9.27.0", "@testing-library/cypress": "^10.0.3", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@testing-library/user-event": "^14.6.1", "@types/jquery": "^3.5.32", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", "@typescript-eslint/eslint-plugin": "^8.32.1", "@typescript-eslint/parser": "^8.32.1", "all-contributors-cli": "^6.26.1", "babel-jest": "^29.7.0", "babelify": "^10.0.0", "browserify": "^17.0.1", "budo": "^11.8.4", "cypress": "^14.4.0", "cypress-plugin-tab": "^1.0.5", "eslint": "^9.27.0", "eslint-config-prettier": "^10.1.5", "eslint-import-resolver-node": "^0.3.9", "eslint-import-resolver-typescript": "^4.3.5", "eslint-plugin-cypress": "^4.3.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jest": "^28.11.0", "eslint-plugin-jest-dom": "^5.5.0", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-testing-library": "^7.2.1", "globals": "^16.1.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jest-watch-typeahead": "^2.2.2", "onchange": "^7.1.0", "prettier": "^3.5.3", "react": "^19.0.0", "react-dom": "^19.0.0", "regenerator-runtime": "^0.14.1", "start-server-and-test": "^2.0.12", "typescript": "^5.8.3" }, "dependencies": { "focus-trap": "^7.6.5", "tabbable": "^6.2.0" }, "peerDependencies": { "@types/react": "^18.0.0 || ^19.0.0", "@types/react-dom": "^18.0.0 || ^19.0.0", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" } }