2015-04-25 07:46:15 +02:00
|
|
|
{
|
|
|
|
"name": "wagtail",
|
|
|
|
"version": "1.0.0",
|
2016-12-15 12:49:49 +01:00
|
|
|
"repository": "https://github.com/wagtail/wagtail",
|
2015-04-25 07:46:15 +02:00
|
|
|
"private": true,
|
2020-04-28 22:23:15 +02:00
|
|
|
"engines": {
|
|
|
|
"node": ">=10.0.0"
|
|
|
|
},
|
2020-05-28 02:33:36 +02:00
|
|
|
"browserslist": [
|
|
|
|
"Firefox ESR",
|
|
|
|
"ie 11",
|
|
|
|
"last 2 Chrome versions",
|
|
|
|
"last 2 ChromeAndroid versions",
|
|
|
|
"last 2 Edge versions",
|
|
|
|
"last 1 Firefox version",
|
|
|
|
"last 2 iOS versions",
|
|
|
|
"last 2 Safari versions"
|
|
|
|
],
|
2016-06-17 15:48:33 +02:00
|
|
|
"jest": {
|
2020-10-21 10:42:14 +02:00
|
|
|
"moduleFileExtensions": [
|
|
|
|
"js",
|
|
|
|
"ts",
|
|
|
|
"tsx",
|
|
|
|
"json",
|
|
|
|
"node"
|
|
|
|
],
|
|
|
|
"transform": {
|
|
|
|
"^.+\\.(js|ts|tsx)$": "ts-jest"
|
|
|
|
},
|
2018-01-19 17:02:49 +01:00
|
|
|
"testPathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
|
|
|
"/build/"
|
|
|
|
],
|
2020-05-22 09:44:23 +02:00
|
|
|
"coveragePathIgnorePatterns": [
|
|
|
|
"/node_modules/",
|
|
|
|
"/tests/"
|
|
|
|
],
|
2016-06-17 15:48:33 +02:00
|
|
|
"setupFiles": [
|
2017-12-20 11:14:41 +01:00
|
|
|
"./client/tests/adapter.js",
|
2017-02-12 16:29:56 +01:00
|
|
|
"./client/tests/stubs.js",
|
|
|
|
"./client/tests/mock-fetch.js"
|
2016-06-17 15:48:33 +02:00
|
|
|
],
|
|
|
|
"snapshotSerializers": [
|
|
|
|
"enzyme-to-json/serializer"
|
|
|
|
]
|
|
|
|
},
|
2015-04-25 07:46:15 +02:00
|
|
|
"devDependencies": {
|
2020-10-19 19:30:43 +02:00
|
|
|
"@types/react": "^16.9.53",
|
2020-10-21 01:51:09 +02:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.5.0",
|
|
|
|
"@typescript-eslint/parser": "^4.5.0",
|
2020-06-03 20:01:01 +02:00
|
|
|
"@wagtail/stylelint-config-wagtail": "^0.1.1",
|
2020-06-03 13:06:12 +02:00
|
|
|
"autoprefixer": "^9.8.0",
|
|
|
|
"cssnano": "^4.1.10",
|
2019-07-05 13:52:26 +02:00
|
|
|
"enzyme": "^3.9.0",
|
|
|
|
"enzyme-adapter-react-16": "^1.9.1",
|
2017-12-20 11:14:41 +01:00
|
|
|
"enzyme-to-json": "^3.3.0",
|
2020-10-21 01:51:09 +02:00
|
|
|
"eslint": "^7.11.0",
|
|
|
|
"eslint-config-wagtail": "^0.1.1",
|
2017-04-10 21:34:15 +02:00
|
|
|
"eslint-import-resolver-webpack": "^0.8.1",
|
2016-02-26 22:10:54 +01:00
|
|
|
"eslint-plugin-import": "^1.8.1",
|
|
|
|
"eslint-plugin-jsx-a11y": "^1.5.3",
|
2016-06-17 15:48:33 +02:00
|
|
|
"eslint-plugin-react": "^5.2.2",
|
2020-10-21 12:33:31 +02:00
|
|
|
"expose-loader": "^0.7.5",
|
2020-06-03 13:06:12 +02:00
|
|
|
"gulp": "^4.0.2",
|
2020-05-08 01:33:49 +02:00
|
|
|
"gulp-dart-sass": "^1.0.2",
|
2020-06-03 13:06:12 +02:00
|
|
|
"gulp-postcss": "^8.0.0",
|
2015-04-25 07:46:15 +02:00
|
|
|
"gulp-rename": "^1.2.2",
|
2020-05-28 02:33:36 +02:00
|
|
|
"gulp-size": "^3.0.0",
|
2017-12-20 11:14:41 +01:00
|
|
|
"gulp-sourcemaps": "~2.6.1",
|
|
|
|
"gulp-util": "~3.0.8",
|
2020-10-20 18:06:52 +02:00
|
|
|
"jest": "^26.6.0",
|
2018-11-28 12:35:21 +01:00
|
|
|
"npm-run-all": "^4.1.5",
|
2019-04-24 15:07:39 +02:00
|
|
|
"react-axe": "^3.1.0",
|
2020-10-09 15:32:16 +02:00
|
|
|
"react-test-renderer": "^16.13.1",
|
2017-12-20 11:14:41 +01:00
|
|
|
"redux-mock-store": "^1.3.0",
|
2020-05-28 02:33:36 +02:00
|
|
|
"stylelint": "^13.5.0",
|
2020-10-21 10:42:14 +02:00
|
|
|
"ts-jest": "^26.4.1",
|
|
|
|
"ts-loader": "^8.0.6",
|
2020-10-21 01:51:09 +02:00
|
|
|
"typescript": "^4.0.3",
|
2020-10-09 15:32:16 +02:00
|
|
|
"webpack": "^4.44.2",
|
2020-10-21 12:33:31 +02:00
|
|
|
"webpack-cli": "^3.3.11"
|
2016-02-24 11:44:14 +01:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2018-01-17 10:23:37 +01:00
|
|
|
"core-js": "^2.5.3",
|
2018-02-09 10:23:04 +01: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 21:29:26 +01:00
|
|
|
"draftail": "^1.2.1",
|
2018-02-09 23:07:29 +01:00
|
|
|
"element-closest": "^2.0.2",
|
2017-12-20 11:14:41 +01:00
|
|
|
"focus-trap-react": "^3.1.0",
|
2019-07-05 13:52:26 +02:00
|
|
|
"prop-types": "^15.6.2",
|
|
|
|
"react": "^16.4.0",
|
|
|
|
"react-dom": "^16.4.0",
|
2017-12-20 11:14:41 +01:00
|
|
|
"react-redux": "^5.0.6",
|
2020-05-28 02:33:36 +02:00
|
|
|
"react-streamfield": "^0.9.6",
|
2017-05-28 20:49:05 +02:00
|
|
|
"react-transition-group": "^1.1.3",
|
2019-07-05 13:52:26 +02:00
|
|
|
"redux": "^4.0.0",
|
|
|
|
"redux-thunk": "^2.3.0",
|
2017-12-20 11:14:41 +01:00
|
|
|
"whatwg-fetch": "^2.0.3"
|
2015-04-25 07:46:15 +02:00
|
|
|
},
|
|
|
|
"scripts": {
|
2017-09-17 19:40:34 +02:00
|
|
|
"build": "npm run gulp:prod:build && npm run webpack:prod:build",
|
2016-04-21 23:31:50 +02:00
|
|
|
"dist": "NODE_ENV=production npm run build",
|
2017-09-17 19:40:34 +02:00
|
|
|
"watch": "npm-run-all --parallel gulp:dev:watch webpack:dev:watch",
|
2016-02-24 11:44:14 +01:00
|
|
|
"start": "npm run watch",
|
2017-09-17 19:40:34 +02:00
|
|
|
"gulp:dev:watch": "gulp watch",
|
|
|
|
"gulp:prod:build": "gulp build",
|
2020-10-21 12:33:31 +02:00
|
|
|
"webpack:dev:watch": "webpack --config ./client/webpack.config.js --mode development --progress --watch",
|
|
|
|
"webpack:prod:build": "webpack --config ./client/webpack.config.js --mode production",
|
2016-12-19 19:03:14 +01:00
|
|
|
"lint:js": "eslint --max-warnings 16 ./client",
|
2017-08-18 02:28:38 +02:00
|
|
|
"lint:css": "stylelint **/*.scss",
|
2019-05-05 07:48:01 +02:00
|
|
|
"lint": "npm run lint:js && npm run lint:css",
|
2016-02-24 11:44:14 +01:00
|
|
|
"test": "npm run test:unit",
|
2016-06-17 15:48:33 +02:00
|
|
|
"test:unit": "jest",
|
|
|
|
"test:unit:watch": "jest --watch",
|
2018-08-08 00:52:18 +02:00
|
|
|
"test:unit:coverage": "jest --coverage"
|
2015-04-25 07:46:15 +02:00
|
|
|
}
|
2015-04-25 07:48:06 +02:00
|
|
|
}
|