draftail
Version:
📝🍸 A configurable rich text editor built with Draft.js
147 lines (146 loc) • 5.41 kB
JSON
{
"name": "draftail",
"version": "2.0.1",
"description": "📝🍸 A configurable rich text editor built with Draft.js",
"author": "Springload",
"license": "MIT",
"main": "dist/draftail.cjs.js",
"module": "dist/draftail.esm.js",
"types": "dist/draftail.d.ts",
"keywords": [
"draftjs",
"draft.js",
"draft",
"draft-js",
"draft-js-plugins",
"editor",
"wysiwyg",
"rich text",
"rte",
"react",
"react-component",
"react-components"
],
"repository": {
"type": "git",
"url": "https://github.com/springload/draftail.git"
},
"bugs": {
"url": "https://github.com/springload/draftail/issues"
},
"homepage": "https://www.draftail.org/",
"files": [
"dist",
"src/**/*.scss"
],
"browserslist": [
"> 1%",
"not IE 11",
"Firefox ESR",
"not OperaMini all"
],
"dependencies": {
"@tippyjs/react": "^4.2.6",
"decorate-component-with-props": "^1.0.2",
"downshift": "^7.0.4 || ^8.5.0 || ^9.0.0",
"draft-js-plugins-editor": "^2.1.1",
"draftjs-conductor": "^3.0.0",
"draftjs-filters": "^3.0.1"
},
"devDependencies": {
"@rollup/plugin-typescript": "^8.3.2",
"@storybook/addon-storyshots": "^6.5.7",
"@storybook/builder-webpack5": "^6.5.7",
"@storybook/manager-webpack5": "^6.5.7",
"@storybook/react": "^6.5.7",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.2.0",
"@types/draft-convert": "^2.1.4",
"@types/draft-js": "^0.10.45",
"@types/enzyme": "^3.10.12",
"@types/jest": "^28.1.1",
"@types/jest-axe": "^3.5.3",
"@types/prismjs": "^1.26.0",
"@types/react": "^16.14.26",
"@types/react-color": "^3.0.6",
"@types/react-dom": "^16.9.16",
"@types/react-modal": "^3.13.1",
"coveralls": "^3.1.1",
"draft-convert": "^2.1.12",
"draft-js": "~0.10.5",
"draft-js-emoji-plugin": "^2.1.3",
"draft-js-hashtag-plugin": "^2.0.4",
"draft-js-inline-toolbar-plugin": "^3.0.1",
"draft-js-side-toolbar-plugin": "^3.0.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"enzyme-to-json": "^3.6.2",
"eslint": "^8.17.0",
"eslint-config-torchbox": "^1.0.0",
"express": "^4.18.1",
"formik": "^1.5.8",
"immutable": "~3.7.6",
"jest": "^28.1.1",
"jest-axe": "^6.0.0",
"jest-environment-jsdom": "^28.1.1",
"jest-environment-node": "^28.1.1",
"jest-image-snapshot": "^5.1.0",
"markov_draftjs": "^2.0.1",
"mkdirp": "^1.0.4",
"normalize.css": "^8.0.1",
"prettier": "^2.8.8",
"prismjs": "^1.28.0",
"puppeteer": "^14.3.0",
"react": "^16.14.0",
"react-benchmark": "^5.0.0",
"react-color": "^2.19.3",
"react-component-benchmark": "^1.0.0",
"react-dom": "^16.14.0",
"react-modal": "^3.15.1",
"react-test-renderer": "^16.14.0",
"rimraf": "^3.0.2",
"rollup": "^2.75.6",
"rollup-plugin-dts": "^4.2.2",
"sass": "^1.53.0",
"sass-loader": "^13.0.2",
"stylelint": "^13.13.1",
"stylelint-config-torchbox": "^1.0.0",
"ts-jest": "^28.0.4",
"typescript": "^4.7.3",
"webpack-bundle-analyzer": "^4.5.0"
},
"overrides": {
"enzyme": {
"cheerio": "1.0.0-rc.10"
}
},
"peerDependencies": {
"draft-js": "^0.10.5",
"react": "^16.6.0",
"react-dom": "^16.6.0"
},
"scripts": {
"start": "start-storybook -c .storybook -p 9001 --no-open --no-version-updates --no-release-notes --quiet --modern",
"build:rollup": "rollup -c",
"build:styles": "sass src/index.scss > dist/draftail.css",
"build:storybook": "build-storybook -c .storybook -o storybook-static --quiet --modern",
"build": "npm run build:rollup -s && npm run build:storybook -s && npm run build:styles -s",
"dist": "NODE_ENV=production npm run build -s",
"lint": "eslint --cache --cache-location ./node_modules/.cache/.eslintcache --ext .js,.ts,.tsx --report-unused-disable-directives . && stylelint --report-needless-disables '**/*.scss' && prettier --cache --check '**/?(.)*.{md,css,scss,js,ts,tsx,json,json5,yaml,yml,html}'",
"format": "prettier --cache --write '**/?(.)*.{md,css,scss,js,ts,tsx,json,json5,yaml,yml,html}'",
"test": "jest",
"test:integration": "jest --config tests/integration/jest.config.js",
"test:integration:watch": "jest --config tests/integration/jest.config.js --watch",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"test:watch:coverage": "jest --watch --coverage",
"test:performance": "react-benchmark tests/performance/markov_draftjs_41.js | tee -a public/benchmark.txt && date >> public/benchmark.txt",
"report:coverage": "open coverage/lcov-report/index.html",
"report:build": "open public/webpack-stats.html",
"report:size": "uglifyjs --compress --mangle -- dist/draftail.cjs.js > dist/draftail.cjs.min.js && gzip --keep dist/* && wc -c dist/* | tee -a public/size.txt && date >> public/size.txt && rm dist/*.gz && rm dist/*.min.js",
"report:package": "npm pack --dry-run --loglevel notice 2>&1 >/dev/null | sed -e 's/^npm notice //' | tee -a public/package.txt && date >> public/package.txt",
"test:ci": "npm run lint -s && npm run test:coverage -s --json --runInBand && npm run dist -s && npm run test:integration -s && npm run test:performance -s",
"prepare": "./.githooks/deploy.sh"
}
}