UNPKG

3.45 kBJSONView Raw
1{
2 "name": "react-focus-lock",
3 "version": "2.9.1",
4 "description": "It is a trap! (for a focus)",
5 "main": "dist/cjs/index.js",
6 "jsnext:main": "dist/es2015/index.js",
7 "module": "dist/es2015/index.js",
8 "types": "react-focus-lock.d.ts",
9 "sideEffects": [
10 "**/sidecar.js"
11 ],
12 "scripts": {
13 "build:cjs": "NODE_ENV=cjs babel src -d dist/cjs",
14 "build:es5": "NODE_ENV=es2015 babel src -d dist/es2015",
15 "build": "rm -Rf ./dist && yarn build:es5 && yarn build:cjs",
16 "test": "npm run test:pick -- '_tests/**/*spec.js'",
17 "test:pick": "NODE_ENV=cjs mocha --require @babel/register --require global-jsdom/register --require _tests/spinup/scaffolding --exit",
18 "prepublish": "npm run lint:fix && npm run build && npm run changelog",
19 "lint": "eslint src",
20 "lint:fix": "eslint src --fix",
21 "storybook": "NODE_ENV=es2015 start-storybook -p 6006",
22 "build-storybook": "NODE_ENV=es2015 build-storybook",
23 "package-self": "package-self",
24 "size": "yarn build && yarn size-limit",
25 "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
26 },
27 "repository": {
28 "type": "git",
29 "url": "git+https://github.com/theKashey/react-focus-lock.git"
30 },
31 "files": [
32 "dist",
33 "sidecar",
34 "UI",
35 "interfaces.d.ts",
36 "react-focus-lock.d.ts"
37 ],
38 "keywords": [
39 "react",
40 "focus",
41 "lock",
42 "trap",
43 "tabbable"
44 ],
45 "author": "theKashey <thekashey@gmail.com>",
46 "license": "MIT",
47 "bugs": {
48 "url": "https://github.com/theKashey/react-focus-lock/issues"
49 },
50 "peerDependencies": {
51 "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
52 "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0"
53 },
54 "peerDependenciesMeta": {
55 "@types/react": {
56 "optional": true
57 }
58 },
59 "devDependencies": {
60 "@babel/cli": "^7.0.0",
61 "@babel/core": "^7.0.0",
62 "@babel/plugin-proposal-class-properties": "^7.0.0",
63 "@babel/plugin-syntax-dynamic-import": "^7.2.0",
64 "@babel/plugin-transform-runtime": "^7.1.0",
65 "@babel/polyfill": "^7.0.0",
66 "@babel/preset-env": "^7.0.0",
67 "@babel/preset-react": "^7.0.0",
68 "@babel/register": "^7.0.0",
69 "@size-limit/preset-small-lib": "^4.5.0",
70 "@storybook/addon-actions": "^5.1.8",
71 "@storybook/addon-links": "^5.1.8",
72 "@storybook/react": "^5.1.8",
73 "@types/react": "^18.0.8",
74 "babel-eslint": "^10.0.1",
75 "babel-loader": "^8.0.4",
76 "babel-plugin-transform-react-remove-prop-types": "^0.4.19",
77 "chai": "^4.1.0",
78 "chai-enzyme": "^1.0.0-beta.0",
79 "conventional-changelog-cli": "^2.0.12",
80 "enzyme": "^3.3.0",
81 "enzyme-adapter-react-16": "^1.15.2",
82 "eslint": "^5.16.0",
83 "eslint-config-airbnb": "^17.1.0",
84 "eslint-plugin-import": "^2.17.3",
85 "eslint-plugin-jsx-a11y": "^6.2.1",
86 "eslint-plugin-mocha": "^5.3.0",
87 "eslint-plugin-react": "^7.13.0",
88 "jsdom": "^16.0.0",
89 "global-jsdom": "^8.4.0",
90 "material-ui": "^0.20.0",
91 "mocha": "^8.3.2",
92 "package-self": "^1.1.1",
93 "react": "^16.8.6",
94 "react-dom": "^16.8.6",
95 "react-hot-loader": "^4.11.0",
96 "react-test-renderer": "^16.2.0",
97 "sinon": "7.3.2",
98 "size-limit": "^4.5.0"
99 },
100 "homepage": "https://github.com/theKashey/react-focus-lock#readme",
101 "dependencies": {
102 "@babel/runtime": "^7.0.0",
103 "focus-lock": "^0.11.2",
104 "prop-types": "^15.6.2",
105 "react-clientside-effect": "^1.2.6",
106 "use-callback-ref": "^1.3.0",
107 "use-sidecar": "^1.1.2"
108 }
109}