UNPKG

react-telephone-input

Version:

React component for entering and validating international telephone numbers

116 lines (115 loc) 3.62 kB
{ "name": "react-telephone-input", "version": "5.0.0", "description": "React component for entering and validating international telephone numbers", "main": "dist/index.js", "module": "dist/react-telephone-input.esm.js", "typings": "dist/ReactTelephoneInput.d.ts", "files": [ "css", "dist", "src" ], "scripts": { "build": "tsdx build --entry ./src/ReactTelephoneInput.tsx ./src/withStyles.js", "clean": "nwb clean-module && npx nwb clean-demo", "start": "nwb serve-react-demo", "lint": "eslint src", "test": "jest", "test:coverage": "jest --coverage", "test:watch": "jest --watch", "deploy": "gh-pages -d demo/dist", "release:major": "changelog -M && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags", "release:minor": "changelog -m && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags", "release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,jsx}": [ "eslint --fix", "prettier --write", "npm run test -- --bail --passWithNoTests --findRelatedTests" ] }, "jest": { "transform": { "^.+\\.js$": "babel-jest" }, "moduleFileExtensions": [ "js" ] }, "repository": { "type": "git", "url": "https://github.com/mukeshsoni/react-telephone-input" }, "keywords": [ "react-component", "react-telephone-input", "international-telephone-input", "react" ], "author": "Mukesh Soni", "license": "MIT", "bugs": { "url": "https://github.com/mukeshsoni/react-telephone-input/issues" }, "homepage": "https://github.com/mukeshsoni/react-telephone-input", "devDependencies": { "@babel/core": "^7.9.0", "@babel/plugin-proposal-class-properties": "^7.8.3", "@babel/preset-env": "^7.9.5", "@babel/preset-react": "^7.9.4", "@testing-library/react": "^10.0.3", "@types/jest": "^25.2.1", "@typescript-eslint/eslint-plugin": "^2.30.0", "@typescript-eslint/parser": "^2.30.0", "awesome-typescript-loader": "^5.2.1", "babel-eslint": "^10.0.3", "babel-jest": "^25.5.1", "babel-plugin-remove-data-test-id-attribute": "^1.0.0", "eslint": "^5.16.0", "eslint-config-airbnb": "^17.1.1", "eslint-plugin-import": "^2.11.0", "eslint-plugin-jest": "^23.8.2", "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.7.0", "generate-changelog": "^1.8.0", "gh-pages": "^2.2.0", "husky": "^4.2.3", "jest": "^25.5.1", "lint-staged": "^10.2.0", "nwb": "^0.24.5", "prettier": "^2.0.5", "react": "^16.3.2", "react-dom": "^16.13.1", "regenerator-runtime": "0.13.5", "ts-jest": "^25.4.0", "tsdx": "^0.13.2", "typescript": "^3.8.3" }, "dependencies": { "@types/classnames": "^2.2.10", "@types/debounce": "^1.2.0", "@types/lodash.memoize": "^4.1.6", "classnames": "^2.1.2", "country-telephone-data": "0.6.2", "cramda": "^0.4.4", "debounce": "^1.1.0", "lodash.memoize": "^4.1.2", "prop-types": "^15.5.10", "react-click-outside": "^3.0.1", "react-tiny-virtual-list": "^2.1.4" }, "peerDependencies": { "react": ">=0.14.0 || ^15.0.0 || ^16.0.0" }, "browserify-shim": { "classnames": "global:classNames", "react": "global:React" } }