UNPKG

6.31 kBJSONView Raw
1{
2 "name": "downshift",
3 "version": "9.0.4",
4 "description": "🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.",
5 "main": "dist/downshift.cjs.js",
6 "react-native": "dist/downshift.native.cjs.js",
7 "module": "dist/downshift.esm.js",
8 "typings": "typings/index.d.ts",
9 "sideEffects": false,
10 "browserslist": [],
11 "scripts": {
12 "build": "npm run build:web --silent && npm run build:native --silent && npm run build:nativeWeb --silent",
13 "build:web": "kcd-scripts build --bundle --p-react --no-clean --size-snapshot",
14 "build:native": "cross-env BUILD_REACT_NATIVE=true BUILD_FILENAME_SUFFIX=.native kcd-scripts build --bundle cjs --no-clean",
15 "build:nativeWeb": "cross-env BUILD_REACT_NATIVE_WEB=true BUILD_FILENAME_SUFFIX=.nativeweb kcd-scripts build --bundle cjs --no-clean",
16 "lint": "kcd-scripts lint",
17 "test": "kcd-scripts test",
18 "test:cover": "kcd-scripts test --coverage",
19 "test:ssr": "kcd-scripts test --config other/ssr/jest.config.js --no-watch",
20 "test:update": "npm run test:cover -s -- --updateSnapshot",
21 "test:ts": "tsc --noEmit -p ./tsconfig.json",
22 "test:flow": "flow",
23 "test:flow:coverage": "flow-coverage-report",
24 "test:build": "jest --config other/misc-tests/jest.config.js",
25 "// FIXME: test:build": "jest --projects other/misc-tests other/react-native",
26 "test:cypress:dev": "npm-run-all --parallel --race docs:dev cy:open",
27 "pretest:cypress": "npm run docs:build --silent",
28 "test:cypress": "start-server-and-test docs:serve http://localhost:6006 cy:run",
29 "cy:run": "cypress run",
30 "cy:open": "cypress open",
31 "build-and-test": "npm run build -s && npm run test:build -s",
32 "docs:build": "docusaurus build",
33 "docs:dev": "docusaurus start",
34 "docs:serve": "docusaurus serve --port 6006",
35 "docs:clear": "docusaurus clear",
36 "setup": "npm install && npm run validate",
37 "validate": "kcd-scripts validate lint,build-and-test,test:cover,test:ts,test:ssr,test:cypress"
38 },
39 "husky": {
40 "hooks": {
41 "pre-commit": "kcd-scripts pre-commit"
42 }
43 },
44 "files": [
45 "dist",
46 "typings",
47 "preact",
48 "flow-typed"
49 ],
50 "keywords": [
51 "enhanced input",
52 "react",
53 "autocomplete",
54 "autosuggest",
55 "typeahead",
56 "dropdown",
57 "select",
58 "combobox",
59 "omnibox",
60 "accessibility",
61 "WAI-ARIA",
62 "multiselect",
63 "multiple selection"
64 ],
65 "author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
66 "license": "MIT",
67 "peerDependencies": {
68 "react": ">=16.12.0"
69 },
70 "dependencies": {
71 "@babel/runtime": "^7.22.15",
72 "compute-scroll-into-view": "^3.0.3",
73 "prop-types": "^15.8.1",
74 "react-is": "^18.2.0",
75 "tslib": "^2.6.2"
76 },
77 "devDependencies": {
78 "@babel/helpers": "^7.22.15",
79 "@babel/plugin-proposal-private-methods": "^7.18.6",
80 "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
81 "@cypress/webpack-preprocessor": "^6.0.0",
82 "@docusaurus/core": "3.0.0-alpha.0",
83 "@docusaurus/module-type-aliases": "3.0.0-alpha.0",
84 "@docusaurus/preset-classic": "3.0.0-alpha.0",
85 "@mdx-js/react": "^2.3.0",
86 "@rollup/plugin-babel": "^6.0.3",
87 "@rollup/plugin-commonjs": "^25.0.4",
88 "@rollup/plugin-typescript": "^11.1.3",
89 "@testing-library/cypress": "^10.0.1",
90 "@testing-library/dom": "^9.3.1",
91 "@testing-library/jest-dom": "^6.1.3",
92 "@testing-library/preact": "^2.0.1",
93 "@testing-library/react": "^14.0.0",
94 "@testing-library/user-event": "^14.4.3",
95 "@types/jest": "^29.5.4",
96 "@types/react": "^18.2.21",
97 "@typescript-eslint/eslint-plugin": "^6.7.0",
98 "@typescript-eslint/parser": "^6.7.0",
99 "babel-plugin-macros": "^3.1.0",
100 "babel-plugin-no-side-effect-class-properties": "0.0.7",
101 "babel-preset-react-native": "^4.0.1",
102 "buble": "^0.20.0",
103 "cpy-cli": "^5.0.0",
104 "cross-env": "^7.0.3",
105 "cypress": "13.2.0",
106 "eslint": "^8.49.0",
107 "eslint-plugin-cypress": "^2.14.0",
108 "eslint-plugin-react": "7.33.2",
109 "flow-bin": "^0.216.1",
110 "flow-coverage-report": "^0.8.0",
111 "get-pkg-repo": "5.0.0",
112 "kcd-scripts": "^14.0.0",
113 "node-polyfill-webpack-plugin": "^2.0.1",
114 "npm-run-all": "^4.1.5",
115 "preact": "^10.17.1",
116 "prism-react-renderer": "^2.0.6",
117 "react": "^18.2.0",
118 "react-dom": "^18.2.0",
119 "react-native": "^0.72.4",
120 "react-test-renderer": "^18.2.0",
121 "serve": "^14.2.1",
122 "start-server-and-test": "^2.0.0",
123 "typescript": "^5.2.2"
124 },
125 "eslintConfig": {
126 "parserOptions": {
127 "ecmaVersion": 2023,
128 "project": "./tsconfig.json",
129 "sourceType": "module"
130 },
131 "settings": {
132 "import/no-unresolved": [
133 2,
134 {
135 "ignore": [
136 "^@theme"
137 ]
138 }
139 ],
140 "import/resolver": {
141 "node": {
142 "extensions": [
143 ".js",
144 ".jsx",
145 ".ts",
146 ".tsx"
147 ]
148 }
149 }
150 },
151 "extends": "./node_modules/kcd-scripts/eslint.js",
152 "rules": {
153 "react/jsx-indent": "off",
154 "react/prop-types": "off",
155 "max-lines-per-function": "off",
156 "jsx-a11y/label-has-for": "off",
157 "jsx-a11y/label-has-associated-control": "off",
158 "jsx-a11y/autocomplete-valid": "off",
159 "testing-library/prefer-user-event": "off",
160 "testing-library/no-node-access": "off",
161 "testing-library/no-container": "off",
162 "testing-library/render-result-naming-convention": "off"
163 },
164 "overrides": [
165 {
166 "files": [
167 "cypress/**/*.js"
168 ],
169 "rules": {
170 "testing-library/prefer-screen-queries": "off",
171 "testing-library/await-async-query": "off"
172 }
173 }
174 ]
175 },
176 "eslintIgnore": [
177 "node_modules",
178 "coverage",
179 "dist",
180 ".docusaurus",
181 "build",
182 "typings",
183 "test"
184 ],
185 "repository": {
186 "type": "git",
187 "url": "https://github.com/downshift-js/downshift.git"
188 },
189 "bugs": {
190 "url": "https://github.com/downshift-js/downshift/issues"
191 },
192 "homepage": "https://downshift-js.com",
193 "flow-coverage-report": {
194 "includeGlob": [
195 "test/**/*.js"
196 ],
197 "threshold": 90,
198 "type": [
199 "text"
200 ]
201 }
202}