UNPKG

downshift

Version:

A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete components

155 lines (154 loc) 4.85 kB
{ "name": "downshift", "version": "4.0.8", "description": "A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete components", "main": "dist/downshift.cjs.js", "react-native": "dist/downshift.native.cjs.js", "module": "dist/downshift.esm.js", "typings": "typings/index.d.ts", "sideEffects": false, "scripts": { "build": "npm run build:web --silent && npm run build:native --silent", "build:web": "kcd-scripts build --bundle --p-react --no-clean --size-snapshot", "build:native": "cross-env BUILD_REACT_NATIVE=true BUILD_FILENAME_SUFFIX=.native kcd-scripts build --bundle cjs --no-clean", "lint": "kcd-scripts lint", "test": "kcd-scripts test", "test:cover": "kcd-scripts test --coverage", "test:ssr": "kcd-scripts test --config other/ssr/jest.config.js --no-watch", "test:update": "npm run test:cover -s -- --updateSnapshot", "test:ts": "tsc --noEmit -p ./tsconfig.json", "test:flow": "flow", "test:flow:coverage": "flow-coverage-report", "test:build": "jest --config other/misc-tests/jest.config.js", "// FIXME: test:build": "jest --projects other/misc-tests other/react-native", "test:cypress:dev": "npm-run-all --parallel --race docs:dev cy:open", "pretest:cypress": "npm run docs:build --silent", "test:cypress": "start-server-and-test docs:serve http://localhost:6006 cy:run", "cy:run": "cypress run", "cy:open": "cypress open", "build-and-test": "npm run build -s && npm run test:build -s", "docs:build": "docz build", "postdocs:build": "cpy \"**/*\" ../../.docz/dist --cwd=\"other/public\" --parents", "docs:dev": "docz dev", "docs:serve": "serve ./.docz/dist --listen 6006 --single", "setup": "npm install && npm run validate", "validate": "kcd-scripts validate lint,build-and-test,test:cover,test:ts,test:flow:coverage,test:ssr,test:cypress" }, "husky": { "hooks": { "pre-commit": "kcd-scripts pre-commit" } }, "files": [ "dist", "typings", "preact", "flow-typed" ], "keywords": [ "enhanced input", "react", "autocomplete", "autosuggest", "typeahead", "dropdown", "select", "combobox", "omnibox", "accessibility", "WAI-ARIA", "multiselect", "multiple selection" ], "author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)", "license": "MIT", "peerDependencies": { "react": ">=0.14.9" }, "dependencies": { "@babel/runtime": "^7.4.5", "compute-scroll-into-view": "^1.0.9", "prop-types": "^15.7.2", "react-is": "^16.9.0" }, "devDependencies": { "@babel/helpers": "^7.4.4", "@material-ui/core": "^4.7.0", "@material-ui/icons": "^4.5.1", "@testing-library/cypress": "^5.0.2", "@testing-library/jest-dom": "^4.1.2", "@testing-library/preact": "^1.0.2", "@testing-library/react": "^9.3.0", "@testing-library/react-hooks": "^3.1.0", "@types/jest": "^24.0.15", "@types/react": "^16.9.2", "babel-plugin-macros": "^2.6.1", "babel-plugin-no-side-effect-class-properties": "0.0.7", "babel-preset-react-native": "^4.0.1", "buble": "^0.19.6", "cpy-cli": "^2.0.0", "cross-env": "^6.0.3", "cypress": "^3.5.0", "docz": "^1.3.2", "docz-theme-default": "^1.2.0", "eslint-plugin-cypress": "^2.7.0", "eslint-plugin-react": "7.16.0", "flow-bin": "^0.110.1", "flow-coverage-report": "^0.6.0", "kcd-scripts": "^1.9.0", "npm-run-all": "^4.1.2", "preact": "^10.0.1", "react": "^16.9.0", "react-dom": "^16.9.0", "react-native": "^0.60.5", "react-test-renderer": "^16.9.0", "rollup-plugin-babel": "^4.3.3", "rollup-plugin-commonjs": "^10.0.2", "serve": "^11.0.2", "start-server-and-test": "^1.10.0", "typescript": "^3.6.4" }, "eslintConfig": { "extends": "./node_modules/kcd-scripts/eslint.js", "rules": { "eqeqeq": "off", "import/no-useless-path-segments": "off", "import/no-unassigned-import": "off", "max-lines": "off", "max-lines-per-function": "off", "no-eq-null": "off", "react/jsx-indent": "off", "react/prop-types": "off", "jsx-a11y/label-has-for": "off", "jsx-a11y/label-has-associated-control": "off", "complexity": [ "error", 12 ] } }, "eslintIgnore": [ "node_modules", "coverage", "dist", ".docz", "typings" ], "repository": { "type": "git", "url": "https://github.com/downshift-js/downshift.git" }, "bugs": { "url": "https://github.com/downshift-js/downshift/issues" }, "homepage": "https://github.com/downshift-js/downshift#readme", "flow-coverage-report": { "includeGlob": [ "test/**/*.js" ], "threshold": 90, "type": [ "text" ] } }