UNPKG

react-sane-contenteditable

Version:

React component with sane defaults to make any element contentEditable

85 lines (84 loc) 3.04 kB
{ "name": "react-sane-contenteditable", "version": "1.6.1", "description": "React component with sane defaults to make any element contentEditable", "keywords": ["content-editable", "contenteditable", "editable", "react", "react-component"], "homepage": "https://github.com/ashleyw/react-sane-contenteditable#readme", "bugs": { "url": "https://github.com/ashleyw/react-sane-contenteditable/issues" }, "repository": { "type": "git", "url": "git+https://github.com/ashleyw/react-sane-contenteditable.git" }, "license": "MIT", "author": "Ashley Williams <hi@ashleyw.co.uk>", "contributors": ["Nick Aspinall", "Raphael Silva Cavalcanti", "Jess Telford"], "files": ["lib", "LICENSE", "README.md"], "main": "lib/cjs/react-sane-contenteditable.js", "module": "lib/esm/react-sane-contenteditable.js", "directories": { "lib": "lib" }, "scripts": { "build": "yarn run build:clean && yarn run build:esm && yarn run build:cjs && yarn run build:umd", "build:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir lib/cjs", "build:clean": "rimraf dist/ && rimraf lib/", "build:esm": "cross-env BABEL_ENV=esm babel src --out-dir lib/esm", "build:umd": "rollup -c && rimraf dist/index.esm.js", "demo": "rollup -c rollup.config.demo.js", "dev": "yarn run demo -w", "dev:test": "jest --watch --verbose false", "lint": "yarn run lint:prettier", "lint:prettier": "prettier --write src/**/*", "prepublish": "yarn build", "test": "jest" }, "husky": { "hooks": { "pre-commit": "yarn run lint && yarn run build && git add lib/* .size-snapshot.json", "pre-push": "yarn test" } }, "dependencies": { "@babel/runtime": "^7.1.2", "prop-types": "^15.6.2" }, "devDependencies": { "@babel/cli": "^7.0.0-rc.1", "@babel/core": "^7.0.0-rc.1", "@babel/plugin-proposal-class-properties": "^7.0.0-rc.1", "@babel/plugin-transform-runtime": "^7.1.0", "@babel/plugin-transform-spread": "^7.0.0-rc.1", "@babel/preset-env": "^7.0.0-rc.1", "@babel/preset-react": "^7.0.0-rc.1", "babel-core": "^7.0.0-0", "babel-jest": "^23.4.2", "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", "babel-plugin-transform-react-remove-prop-types": "^0.4.15", "cross-env": "^5.2.0", "enzyme": "^3.4.0", "enzyme-adapter-react-16": "^1.2.0", "husky": "1.0.0-rc.13", "jest": "^23.4.2", "jsdom": "^11.12.0", "prettier": "1.14.2", "react": "^16.4.2", "react-dom": "^16.3.2", "rimraf": "^2.6.2", "rollup": "^0.66.6", "rollup-plugin-babel": "^4.0.0-beta.8", "rollup-plugin-babel-minify": "^5.0.0", "rollup-plugin-commonjs": "^9.1.3", "rollup-plugin-jsx": "^1.0.3", "rollup-plugin-node-resolve": "^3.3.0", "rollup-plugin-replace": "^2.0.0", "rollup-plugin-serve": "^0.4.2", "rollup-plugin-size-snapshot": "^0.7.0", "rollup-plugin-uglify": "^6.0.0", "styled-components": "^3.4.2" }, "peerDependencies": { "react": "^16.4.2" } }