2015-04-25 05:46:15 +00:00
|
|
|
{
|
|
|
|
"name": "wagtail",
|
|
|
|
"version": "1.0.0",
|
2016-12-15 11:49:49 +00:00
|
|
|
"repository": "https://github.com/wagtail/wagtail",
|
2015-04-25 05:46:15 +00:00
|
|
|
"private": true,
|
2017-06-07 13:09:09 +00:00
|
|
|
"babel": {
|
|
|
|
"presets": [
|
2017-06-12 15:28:57 +00:00
|
|
|
[
|
|
|
|
"es2015",
|
|
|
|
{
|
|
|
|
"modules": false
|
|
|
|
}
|
|
|
|
],
|
2017-06-07 13:09:09 +00:00
|
|
|
"react"
|
|
|
|
],
|
2017-06-12 15:28:57 +00:00
|
|
|
"env": {
|
|
|
|
"test": {
|
|
|
|
"presets": [
|
|
|
|
"es2015",
|
|
|
|
"react"
|
|
|
|
]
|
2018-01-17 22:02:04 +00:00
|
|
|
},
|
|
|
|
"production": {
|
|
|
|
"plugins": [
|
|
|
|
[
|
|
|
|
"transform-react-remove-prop-types",
|
|
|
|
{
|
|
|
|
"mode": "remove",
|
|
|
|
"removeImport": true,
|
|
|
|
"ignoreFilenames": [
|
|
|
|
"node_modules"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
2017-06-12 15:28:57 +00:00
|
|
|
}
|
|
|
|
}
|
2017-06-07 13:09:09 +00:00
|
|
|
},
|
2016-06-17 13:48:33 +00:00
|
|
|
"jest": {
|
2018-01-19 16:02:49 +00:00
|
|
|
"testPathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
|
|
|
"/build/"
|
|
|
|
],
|
2016-06-17 13:48:33 +00:00
|
|
|
"setupFiles": [
|
2017-12-20 10:14:41 +00:00
|
|
|
"./client/tests/adapter.js",
|
2017-02-12 15:29:56 +00:00
|
|
|
"./client/tests/stubs.js",
|
|
|
|
"./client/tests/mock-fetch.js"
|
2016-06-17 13:48:33 +00:00
|
|
|
],
|
|
|
|
"snapshotSerializers": [
|
|
|
|
"enzyme-to-json/serializer"
|
|
|
|
]
|
|
|
|
},
|
2015-04-25 05:46:15 +00:00
|
|
|
"devDependencies": {
|
2019-05-08 22:09:40 +00:00
|
|
|
"@wagtail/stylelint-config-wagtail": "^0.1.0",
|
2018-08-07 22:43:58 +00:00
|
|
|
"babel-core": "^6.26.3",
|
2017-12-20 10:14:41 +00:00
|
|
|
"babel-jest": "^22.0.3",
|
|
|
|
"babel-loader": "^7.1.2",
|
2018-01-17 22:02:04 +00:00
|
|
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.12",
|
2017-06-07 09:39:24 +00:00
|
|
|
"babel-preset-es2015": "^6.24.1",
|
2017-05-28 18:49:05 +00:00
|
|
|
"babel-preset-react": "^6.24.1",
|
2018-08-07 22:43:58 +00:00
|
|
|
"enzyme": "^3.3.0",
|
2017-12-20 10:14:41 +00:00
|
|
|
"enzyme-adapter-react-16": "^1.1.1",
|
|
|
|
"enzyme-to-json": "^3.3.0",
|
2016-02-26 21:10:54 +00:00
|
|
|
"eslint": "^2.9.0",
|
2017-04-10 19:34:15 +00:00
|
|
|
"eslint-config-wagtail": "0.1.1",
|
|
|
|
"eslint-import-resolver-webpack": "^0.8.1",
|
2016-02-26 21:10:54 +00:00
|
|
|
"eslint-plugin-import": "^1.8.1",
|
|
|
|
"eslint-plugin-jsx-a11y": "^1.5.3",
|
2016-06-17 13:48:33 +00:00
|
|
|
"eslint-plugin-react": "^5.2.2",
|
2018-01-17 21:23:17 +00:00
|
|
|
"expose-loader": "^0.7.4",
|
2017-08-10 21:32:04 +00:00
|
|
|
"gulp": "^3.9.1",
|
2017-12-20 10:14:41 +00:00
|
|
|
"gulp-autoprefixer": "~4.0.0",
|
2016-04-21 21:31:50 +00:00
|
|
|
"gulp-cssnano": "^2.1.2",
|
2015-04-25 05:46:15 +00:00
|
|
|
"gulp-rename": "^1.2.2",
|
2018-08-07 22:43:58 +00:00
|
|
|
"gulp-sass": "^4.0.1",
|
2016-04-21 21:31:50 +00:00
|
|
|
"gulp-size": "^2.1.0",
|
2017-12-20 10:14:41 +00:00
|
|
|
"gulp-sourcemaps": "~2.6.1",
|
|
|
|
"gulp-util": "~3.0.8",
|
|
|
|
"jest": "^22.0.3",
|
2018-11-28 11:35:21 +00:00
|
|
|
"npm-run-all": "^4.1.5",
|
2019-04-24 13:07:39 +00:00
|
|
|
"react-axe": "^3.1.0",
|
2017-12-20 10:14:41 +00:00
|
|
|
"react-test-renderer": "^16.2.0",
|
|
|
|
"redux-mock-store": "^1.3.0",
|
2019-05-05 05:47:46 +00:00
|
|
|
"stylelint": "^10.0.1",
|
2017-12-20 10:14:41 +00:00
|
|
|
"webpack": "^3.10.0"
|
2016-02-24 10:44:14 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-01-17 09:23:37 +00:00
|
|
|
"core-js": "^2.5.3",
|
2018-02-09 09:23:04 +00:00
|
|
|
"draft-js": "0.10.5",
|
Upgrade Draftail to v1.2.1. Fix #4985, adds more Markdown shortcuts (#5117)
This includes:
- [v1.0.0](https://github.com/springload/draftail/releases/tag/v1.0.0) (identical to v0.17.2)
- [v1.1.0](https://github.com/springload/draftail/releases/tag/v1.1.0) (contains fix for #4985)
- [v1.2.0](https://github.com/springload/draftail/releases/tag/v1.2.0)
- [v1.2.1](https://github.com/springload/draftail/releases/tag/v1.2.1) (fixes regression in v1.2.0)
Here is the combined CHANGELOG for what's relevant to Wagtail:
Bug fixes
~~~~~~~~~
- #4985 – Prevent crash when filtering pasted content whose last block is to be removed (e.g. unsupported image) ([#179](https://github.com/springload/draftail/issues/179)).
- Stop unnecessarily calling `onSave` in the editor’s `onBlur` ([#173](https://github.com/springload/draftail/issues/173)).
- Prevent crash in `DraftUtils.getEntitySelection`, when the provided entity key isn't valid (undefined, missing) ([#168](https://github.com/springload/draftail/pull/168)).
- Fix entity removal and editing not doing anything when the selection is backwards (right to left) ([#168](https://github.com/springload/draftail/pull/168)).
- Prevent the editor from crashing when copy-paste filtering removes all of its content (https://github.com/thibaudcolas/draftjs-filters/commit/652750f)
New features
~~~~~~~~~~~~
- Add support for Markdown shortcuts for inline styles, e.g. `**` for bold, `_` for italic, etc ([#134](https://github.com/springload/draftail/issues/134), [#187](https://github.com/springload/draftail/pull/187)). View the full list of [keyboard shortcuts](https://www.draftail.org/docs/keyboard-shortcuts).
New APIs
~~~~~~~~
- Add [`onFocus`](https://www.draftail.org/docs/api#managing-focus) and [`onBlur`](https://www.draftail.org/docs/api#managing-focus) props to use callbacks on those events. This can be useful for [form validation](https://www.draftail.org/docs/next/form-validation). [#170](https://github.com/springload/draftail/issues/170), [#174](https://github.com/springload/draftail/pull/174), thanks to [@TheSpicyMeatball](https://github.com/TheSpicyMeatball).
- Add [`plugins`](https://www.draftail.org/docs/plugins) API to support extensions of the editor using the [draft-js-plugins](https://github.com/draft-js-plugins/draft-js-plugins) architecture ([#83](https://github.com/springload/draftail/issues/83), [#171](https://github.com/springload/draftail/pull/171)).
- Add ability to disable or customise the editor toolbar with [`topToolbar`](https://www.draftail.org/docs/customising-toolbars).
- Add ability to add a toolbar below the editor with [`bottomToolbar`](https://www.draftail.org/docs/customising-toolbars).
- Add data reset parameter to `DraftUtils.resetBlockWithType()`.
- Enable list continuation on Enter for custom `*-list-item` blocks. All that’s required is for the block type to end with `-list-item`.
None of those API additions will be usable within Wagtail (at least without hacks) until corresponding rich text features APIs are built to allow their configuration. The last 2 additions would already be usable but they would only be useful when leveraging the other APIs.
2019-03-21 20:29:26 +00:00
|
|
|
"draftail": "^1.2.1",
|
2018-02-09 22:07:29 +00:00
|
|
|
"element-closest": "^2.0.2",
|
2017-12-20 10:14:41 +00:00
|
|
|
"focus-trap-react": "^3.1.0",
|
|
|
|
"prop-types": "^15.6.0",
|
|
|
|
"react": "^16.2.0",
|
|
|
|
"react-dom": "^16.2.0",
|
|
|
|
"react-redux": "^5.0.6",
|
2017-05-28 18:49:05 +00:00
|
|
|
"react-transition-group": "^1.1.3",
|
2017-12-20 10:14:41 +00:00
|
|
|
"redux": "^3.7.2",
|
2016-06-17 13:48:33 +00:00
|
|
|
"redux-thunk": "^2.2.0",
|
2017-12-20 10:14:41 +00:00
|
|
|
"whatwg-fetch": "^2.0.3"
|
2015-04-25 05:46:15 +00:00
|
|
|
},
|
|
|
|
"scripts": {
|
2017-09-17 17:40:34 +00:00
|
|
|
"build": "npm run gulp:prod:build && npm run webpack:prod:build",
|
2016-04-21 21:31:50 +00:00
|
|
|
"dist": "NODE_ENV=production npm run build",
|
2017-09-17 17:40:34 +00:00
|
|
|
"watch": "npm-run-all --parallel gulp:dev:watch webpack:dev:watch",
|
2016-02-24 10:44:14 +00:00
|
|
|
"start": "npm run watch",
|
2017-09-17 17:40:34 +00:00
|
|
|
"gulp:dev:watch": "gulp watch",
|
|
|
|
"gulp:prod:build": "gulp build",
|
|
|
|
"webpack:dev:watch": "webpack --config ./client/webpack/dev.config.js",
|
|
|
|
"webpack:prod:build": "webpack --config ./client/webpack/prod.config.js",
|
2016-12-19 18:03:14 +00:00
|
|
|
"lint:js": "eslint --max-warnings 16 ./client",
|
2017-08-18 00:28:38 +00:00
|
|
|
"lint:css": "stylelint **/*.scss",
|
2019-05-05 05:48:01 +00:00
|
|
|
"lint": "npm run lint:js && npm run lint:css",
|
2016-02-24 10:44:14 +00:00
|
|
|
"test": "npm run test:unit",
|
2016-06-17 13:48:33 +00:00
|
|
|
"test:unit": "jest",
|
|
|
|
"test:unit:watch": "jest --watch",
|
2018-08-07 22:52:18 +00:00
|
|
|
"test:unit:coverage": "jest --coverage"
|
2015-04-25 05:46:15 +00:00
|
|
|
}
|
2015-04-25 05:48:06 +00:00
|
|
|
}
|