| 1 |
{ |
| 2 |
"name": "focus-trap", |
| 3 |
"version": "7.6.6", |
| 4 |
"description": "Trap focus within a DOM node.", |
| 5 |
"main": "dist/focus-trap.js", |
| 6 |
"module": "dist/focus-trap.esm.js", |
| 7 |
"types": "index.d.ts", |
| 8 |
"sideEffects": false, |
| 9 |
"files": [ |
| 10 |
"package.json", |
| 11 |
"README.md", |
| 12 |
"CHANGELOG.md", |
| 13 |
"SECURITY.md", |
| 14 |
"LICENSE", |
| 15 |
"index.js", |
| 16 |
"index.d.ts", |
| 17 |
"dist" |
| 18 |
], |
| 19 |
"scripts": { |
| 20 |
"demo-bundle": "npm run compile:demo", |
| 21 |
"format": "prettier --write \"{*,src/**/*,test/**/*,docs/js/**/*,.github/workflows/**/*,cypress/**/*}.+(js|cjs|mjs|ts|cts|mts|yml)\"", |
| 22 |
"format:check": "prettier --check \"{*,src/**/*,test/**/*,docs/js/**/*,.github/workflows/**/*,cypress/**/*}.+(js|cjs|mjs|ts|cts|mts|yml)\"", |
| 23 |
"format:watch": "onchange \"{*,src/**/*,test/**/*,docs/js/**/*,.github/workflows/**/*,cypress/**/*}.+(js|cjs|mjs|ts|cts|mts|yml)\" -- prettier --write {{changed}}", |
| 24 |
"lint": "eslint \"{*,docs/js/**/*,cypress/e2e/**/*}.+(js|cjs|mjs|ts|cts|mts)\"", |
| 25 |
"clean": "rm -rf ./dist", |
| 26 |
"compile:esm": "cross-env BUILD_ENV=esm BABEL_ENV=esm rollup -c", |
| 27 |
"compile:cjs": "cross-env BUILD_ENV=cjs BABEL_ENV=es5 rollup -c", |
| 28 |
"compile:umd": "cross-env BUILD_ENV=umd BABEL_ENV=es5 rollup -c", |
| 29 |
"compile:demo": "cross-env BUILD_ENV=demo BABEL_ENV=es5 rollup -c", |
| 30 |
"compile": "npm run compile:esm && npm run compile:cjs && npm run compile:umd", |
| 31 |
"build": "npm run clean && npm run compile", |
| 32 |
"start": "npm run compile:demo -- --watch --environment SERVE,RELOAD", |
| 33 |
"start:cypress": "npm run compile:demo -- --environment SERVE,IS_CYPRESS_ENV:\"$CYPRESS_BROWSER\"", |
| 34 |
"test:types": "tsc index.d.ts", |
| 35 |
"test:unit": "echo \"No unit tests to run!\"", |
| 36 |
"test:e2e": "ELECTRON_ENABLE_LOGGING=1 start-server-and-test start:cypress 9966 'cypress run --browser $CYPRESS_BROWSER --headless'", |
| 37 |
"test:e2e:chrome": "CYPRESS_BROWSER=chrome npm run test:e2e", |
| 38 |
"test:e2e:dev": "ELECTRON_ENABLE_LOGGING=1 start-server-and-test start:cypress 9966 'cypress open'", |
| 39 |
"test": "npm run format:check && npm run lint && npm run test:unit && npm run test:types && npm run test:e2e:chrome", |
| 40 |
"prepare": "npm run build", |
| 41 |
"prepublishOnly": "npm run test && npm run build", |
| 42 |
"release": "npm run build && changeset publish", |
| 43 |
"all-contributors": "all-contributors" |
| 44 |
}, |
| 45 |
"repository": { |
| 46 |
"type": "git", |
| 47 |
"url": "git+https://github.com/focus-trap/focus-trap.git" |
| 48 |
}, |
| 49 |
"keywords": [ |
| 50 |
"focus", |
| 51 |
"accessibility", |
| 52 |
"trap", |
| 53 |
"capture", |
| 54 |
"keyboard", |
| 55 |
"modal" |
| 56 |
], |
| 57 |
"author": { |
| 58 |
"name": "David Clark", |
| 59 |
"url": "http://davidtheclark.com/" |
| 60 |
}, |
| 61 |
"license": "MIT", |
| 62 |
"bugs": { |
| 63 |
"url": "https://github.com/focus-trap/focus-trap/issues" |
| 64 |
}, |
| 65 |
"homepage": "https://github.com/focus-trap/focus-trap#readme", |
| 66 |
"dependencies": { |
| 67 |
"tabbable": "^6.3.0" |
| 68 |
}, |
| 69 |
"devDependencies": { |
| 70 |
"@babel/cli": "^7.28.3", |
| 71 |
"@babel/core": "^7.28.4", |
| 72 |
"@babel/eslint-parser": "^7.28.4", |
| 73 |
"@babel/eslint-plugin": "^7.27.1", |
| 74 |
"@babel/preset-env": "^7.28.3", |
| 75 |
"@changesets/cli": "^2.29.7", |
| 76 |
"@eslint/js": "^9.38.0", |
| 77 |
"@rollup/plugin-babel": "^6.1.0", |
| 78 |
"@rollup/plugin-commonjs": "^28.0.8", |
| 79 |
"@rollup/plugin-node-resolve": "^16.0.3", |
| 80 |
"@rollup/plugin-replace": "^6.0.2", |
| 81 |
"@rollup/plugin-terser": "^0.4.4", |
| 82 |
"@testing-library/cypress": "^10.1.0", |
| 83 |
"@types/jquery": "^3.5.33", |
| 84 |
"@typescript-eslint/eslint-plugin": "^8.46.2", |
| 85 |
"@typescript-eslint/parser": "^8.46.2", |
| 86 |
"all-contributors-cli": "^6.26.1", |
| 87 |
"babel-loader": "^10.0.0", |
| 88 |
"cross-env": "^10.1.0", |
| 89 |
"cypress": "^14.5.4", |
| 90 |
"cypress-plugin-tab": "^1.0.5", |
| 91 |
"eslint": "^9.38.0", |
| 92 |
"eslint-config-prettier": "^10.1.8", |
| 93 |
"eslint-import-resolver-node": "^0.3.9", |
| 94 |
"eslint-import-resolver-typescript": "^4.4.4", |
| 95 |
"eslint-plugin-cypress": "^5.2.0", |
| 96 |
"eslint-plugin-import": "^2.32.0", |
| 97 |
"eslint-plugin-jest": "^29.0.1", |
| 98 |
"eslint-plugin-jest-dom": "^5.5.0", |
| 99 |
"eslint-plugin-testing-library": "^7.13.3", |
| 100 |
"globals": "^16.4.0", |
| 101 |
"onchange": "^7.1.0", |
| 102 |
"prettier": "^3.6.2", |
| 103 |
"rollup": "^4.52.5", |
| 104 |
"rollup-plugin-livereload": "^2.0.5", |
| 105 |
"rollup-plugin-serve": "^3.0.0", |
| 106 |
"start-server-and-test": "^2.1.2", |
| 107 |
"typescript": "^5.9.3" |
| 108 |
} |
| 109 |
} |