wagtail/package.json

144 wiersze
4.3 KiB
JSON
Czysty Zwykły widok Historia

2015-04-25 05:46:15 +00:00
{
"name": "wagtail",
"version": "1.0.0",
"repository": "https://github.com/wagtail/wagtail",
2015-04-25 05:46:15 +00:00
"private": true,
"engines": {
"node": ">=14.0.0"
},
"browserslist": [
"Firefox ESR",
"last 2 Chrome versions",
"last 2 ChromeAndroid versions",
"last 2 Edge versions",
"last 1 Firefox version",
"last 2 iOS versions",
"last 2 Safari versions"
],
"jest": {
2020-10-21 08:42:14 +00:00
"moduleFileExtensions": [
"js",
"ts",
"tsx",
"json",
"node"
],
"moduleNameMapper": {
"jquery": "<rootDir>/wagtail/admin/static_src/wagtailadmin/js/vendor/jquery-3.6.0.min.js"
},
2020-10-21 08:42:14 +00:00
"transform": {
"^.+\\.(js|ts|tsx)$": "ts-jest"
},
"testPathIgnorePatterns": [
"/node_modules/",
"/build/"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/tests/"
],
"setupFiles": [
"./client/tests/adapter.js",
"./client/tests/stubs.js",
2021-04-24 10:35:47 +00:00
"./client/tests/mock-fetch.js",
"./client/tests/mock-jquery.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
},
2015-04-25 05:46:15 +00:00
"devDependencies": {
"@babel/core": "^7.13.16",
"@storybook/addon-actions": "^6.3.0-alpha.14",
"@storybook/addon-essentials": "^6.3.0-alpha.14",
"@storybook/addon-links": "^6.3.0-alpha.14",
"@storybook/builder-webpack5": "^6.3.0-alpha.14",
"@storybook/react": "^6.3.0-alpha.14",
Feature/redux comments (#6856) Adds inline commenting to the Draftail editor (FE only), and refactors field level comments to subscribe to updates from the store directly * Refactor field level comments to subscribe to updates directly from the commenting store, rather than calling methods on supplied widgets and annotations directly from the commenting app * Update Draftail and React-Redux packages in preparation for Draftail inline commenting * Add CommentableEditor version of Draftail as controlled component, in preparation for manipulating state from the comments system * Only initialize CommentableEditor if comments are on and the contentpath is valid. Add a comment-adding control to CommentableEditor * Update eslint * Remove comment adding control from Draftail if comments are disabled * fixup! Only initialize CommentableEditor if comments are on and the contentpath is valid. Add a comment-adding control to CommentableEditor * Add decorator to comments, allowing them to be focused * Add inline styling to comments * Make Draftail instance accessible via the DOM node on CommentableEditor as well * Force rerender for styles and decorators when necessary, and filter out deleted comments * Remove comment styles when saving Draftail content * Fix formatting error * Remove unnecessary comment * Don't use addition for string concatenation * Newline * Add explanatory comment about save logic * fixup! Don't use addition for string concatenation * Use more idiomatic undefined check * Fix aria-label for comment button * Use span to decorate link Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Update getFullSelectionState comment Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Reorder selection state generation Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Remove unused argument Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Make draftail position comments by median annotation, and pin by clicked comment * Remove inline return * Make setPinnedComment an option on setFocusedComment * Add JSDoc comments and remove unused attribute * use decoratorRef instead of Ref for clarity in annotation * fixup! Update eslint * Update Draftail snapshot * Move entrypoint * Prettier reformat and eslint fix * Use Typescript for CommentableEditor * Install types for react-redux and draft-js * Remove unused popPage from interface * Add draftjs-filters as an explicit dependency * fixup! Use Typescript for CommentableEditor * Add explicit type for timeout Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-03-25 09:56:27 +00:00
"@types/draft-js": "^0.10.45",
"@types/react": "^16.9.53",
Feature/redux comments (#6856) Adds inline commenting to the Draftail editor (FE only), and refactors field level comments to subscribe to updates from the store directly * Refactor field level comments to subscribe to updates directly from the commenting store, rather than calling methods on supplied widgets and annotations directly from the commenting app * Update Draftail and React-Redux packages in preparation for Draftail inline commenting * Add CommentableEditor version of Draftail as controlled component, in preparation for manipulating state from the comments system * Only initialize CommentableEditor if comments are on and the contentpath is valid. Add a comment-adding control to CommentableEditor * Update eslint * Remove comment adding control from Draftail if comments are disabled * fixup! Only initialize CommentableEditor if comments are on and the contentpath is valid. Add a comment-adding control to CommentableEditor * Add decorator to comments, allowing them to be focused * Add inline styling to comments * Make Draftail instance accessible via the DOM node on CommentableEditor as well * Force rerender for styles and decorators when necessary, and filter out deleted comments * Remove comment styles when saving Draftail content * Fix formatting error * Remove unnecessary comment * Don't use addition for string concatenation * Newline * Add explanatory comment about save logic * fixup! Don't use addition for string concatenation * Use more idiomatic undefined check * Fix aria-label for comment button * Use span to decorate link Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Update getFullSelectionState comment Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Reorder selection state generation Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Remove unused argument Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Make draftail position comments by median annotation, and pin by clicked comment * Remove inline return * Make setPinnedComment an option on setFocusedComment * Add JSDoc comments and remove unused attribute * use decoratorRef instead of Ref for clarity in annotation * fixup! Update eslint * Update Draftail snapshot * Move entrypoint * Prettier reformat and eslint fix * Use Typescript for CommentableEditor * Install types for react-redux and draft-js * Remove unused popPage from interface * Add draftjs-filters as an explicit dependency * fixup! Use Typescript for CommentableEditor * Add explicit type for timeout Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-03-25 09:56:27 +00:00
"@types/react-redux": "^7.1.16",
2021-03-25 09:00:15 +00:00
"@types/redux": "^3.6.0",
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^4.5.0",
"@wagtail/stylelint-config-wagtail": "^0.1.1",
"autoprefixer": "^9.8.0",
2021-01-04 15:25:45 +00:00
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2",
"cssnano": "^4.1.10",
"dotenv-webpack": "^7.0.2",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.9.1",
"enzyme-to-json": "^3.3.0",
Feature/redux comments (#6856) Adds inline commenting to the Draftail editor (FE only), and refactors field level comments to subscribe to updates from the store directly * Refactor field level comments to subscribe to updates directly from the commenting store, rather than calling methods on supplied widgets and annotations directly from the commenting app * Update Draftail and React-Redux packages in preparation for Draftail inline commenting * Add CommentableEditor version of Draftail as controlled component, in preparation for manipulating state from the comments system * Only initialize CommentableEditor if comments are on and the contentpath is valid. Add a comment-adding control to CommentableEditor * Update eslint * Remove comment adding control from Draftail if comments are disabled * fixup! Only initialize CommentableEditor if comments are on and the contentpath is valid. Add a comment-adding control to CommentableEditor * Add decorator to comments, allowing them to be focused * Add inline styling to comments * Make Draftail instance accessible via the DOM node on CommentableEditor as well * Force rerender for styles and decorators when necessary, and filter out deleted comments * Remove comment styles when saving Draftail content * Fix formatting error * Remove unnecessary comment * Don't use addition for string concatenation * Newline * Add explanatory comment about save logic * fixup! Don't use addition for string concatenation * Use more idiomatic undefined check * Fix aria-label for comment button * Use span to decorate link Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Update getFullSelectionState comment Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Reorder selection state generation Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Remove unused argument Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Make draftail position comments by median annotation, and pin by clicked comment * Remove inline return * Make setPinnedComment an option on setFocusedComment * Add JSDoc comments and remove unused attribute * use decoratorRef instead of Ref for clarity in annotation * fixup! Update eslint * Update Draftail snapshot * Move entrypoint * Prettier reformat and eslint fix * Use Typescript for CommentableEditor * Install types for react-redux and draft-js * Remove unused popPage from interface * Add draftjs-filters as an explicit dependency * fixup! Use Typescript for CommentableEditor * Add explicit type for timeout Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-03-25 09:56:27 +00:00
"eslint": "^7.20.0",
"eslint-config-wagtail": "^0.1.1",
"eslint-import-resolver-webpack": "^0.8.1",
"eslint-plugin-import": "^1.8.1",
"eslint-plugin-jsx-a11y": "^1.5.3",
"eslint-plugin-react": "^5.2.2",
2020-12-27 17:53:41 +00:00
"expose-loader": "^1.0.3",
"gulp": "^4.0.2",
"gulp-dart-sass": "^1.0.2",
"gulp-postcss": "^8.0.0",
2015-04-25 05:46:15 +00:00
"gulp-rename": "^1.2.2",
"gulp-size": "^3.0.0",
"gulp-sourcemaps": "~2.6.1",
"gulp-util": "~3.0.8",
"html-webpack-plugin": "^5.3.1",
"jest": "^26.6.3",
"npm-run-all": "^4.1.5",
"postcss-custom-properties": "^10.0.0",
"react-axe": "^3.1.0",
2020-10-09 13:32:16 +00:00
"react-test-renderer": "^16.13.1",
"redux-mock-store": "^1.3.0",
"stylelint": "^13.5.0",
2020-10-21 08:42:14 +00:00
"ts-jest": "^26.4.1",
"ts-loader": "^9.1.1",
"typescript": "^4.0.3",
"webpack": "^5.35.1",
"webpack-cli": "^3.3.12"
},
"dependencies": {
"core-js": "^2.5.3",
"draft-js": "^0.10.5",
"draftail": "^1.4.1",
Feature/redux comments (#6856) Adds inline commenting to the Draftail editor (FE only), and refactors field level comments to subscribe to updates from the store directly * Refactor field level comments to subscribe to updates directly from the commenting store, rather than calling methods on supplied widgets and annotations directly from the commenting app * Update Draftail and React-Redux packages in preparation for Draftail inline commenting * Add CommentableEditor version of Draftail as controlled component, in preparation for manipulating state from the comments system * Only initialize CommentableEditor if comments are on and the contentpath is valid. Add a comment-adding control to CommentableEditor * Update eslint * Remove comment adding control from Draftail if comments are disabled * fixup! Only initialize CommentableEditor if comments are on and the contentpath is valid. Add a comment-adding control to CommentableEditor * Add decorator to comments, allowing them to be focused * Add inline styling to comments * Make Draftail instance accessible via the DOM node on CommentableEditor as well * Force rerender for styles and decorators when necessary, and filter out deleted comments * Remove comment styles when saving Draftail content * Fix formatting error * Remove unnecessary comment * Don't use addition for string concatenation * Newline * Add explanatory comment about save logic * fixup! Don't use addition for string concatenation * Use more idiomatic undefined check * Fix aria-label for comment button * Use span to decorate link Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Update getFullSelectionState comment Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Reorder selection state generation Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Remove unused argument Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com> * Make draftail position comments by median annotation, and pin by clicked comment * Remove inline return * Make setPinnedComment an option on setFocusedComment * Add JSDoc comments and remove unused attribute * use decoratorRef instead of Ref for clarity in annotation * fixup! Update eslint * Update Draftail snapshot * Move entrypoint * Prettier reformat and eslint fix * Use Typescript for CommentableEditor * Install types for react-redux and draft-js * Remove unused popPage from interface * Add draftjs-filters as an explicit dependency * fixup! Use Typescript for CommentableEditor * Add explicit type for timeout Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-03-25 09:56:27 +00:00
"draftjs-filters": "^2.5.0",
"element-closest": "^2.0.2",
"focus-trap-react": "^8.4.2",
"formdata-polyfill": "^3.0.20",
"immer": "^9.0.1",
2021-07-23 09:47:50 +00:00
"js-cookie": "^2.2.1",
"postcss-calc": "^7.0.5",
"prop-types": "^15.6.2",
2021-03-19 13:17:58 +00:00
"react": "^16.14.0",
"react-dom": "^16.14.0",
2021-03-19 13:21:14 +00:00
"react-redux": "^7.2.2",
"react-transition-group": "^1.1.3",
"redux": "^4.0.0",
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0",
"telepath-unpack": "^0.0.3",
"url-search-params-polyfill": "^8.1.1",
2021-03-19 11:12:03 +00:00
"uuid": "^8.3.2",
"whatwg-fetch": "^2.0.3"
2015-04-25 05:46:15 +00:00
},
"scripts": {
"build": "npm run gulp:prod:build && npm run webpack:prod:build",
"dist": "NODE_ENV=production npm run build",
"watch": "npm-run-all --parallel gulp:dev:watch webpack:dev:watch",
"start": "npm run watch",
"gulp:dev:watch": "gulp watch",
"gulp:prod:build": "gulp build",
2020-10-21 10:33:31 +00: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",
"lint:js": "eslint --report-unused-disable-directives --max-warnings 16 ./client",
"lint:css": "stylelint **/*.scss",
"lint": "npm run lint:js && npm run lint:css",
"test": "npm run test:unit",
"test:unit": "jest",
"test:unit:watch": "jest --watch",
"test:unit:coverage": "jest --coverage",
"storybook": "start-storybook -c client/.storybook -p 6006",
"build-storybook": "build-storybook -c client/.storybook"
2015-04-25 05:46:15 +00:00
}
2015-04-25 05:48:06 +00:00
}