0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
wagtail/package.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

138 lines
4.2 KiB
JSON
Raw Normal View History

2015-04-25 07:46:15 +02:00
{
"name": "wagtail",
"version": "1.0.0",
"repository": "https://github.com/wagtail/wagtail",
2015-04-25 07:46:15 +02:00
"private": true,
"engines": {
"node": ">=16.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",
2022-02-24 21:08:28 +01:00
"last 3 Safari versions",
"not safari 13",
2022-02-24 21:08:28 +01:00
"not ie 11"
],
"jest": {
2020-10-21 10:42:14 +02: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 10:42:14 +02:00
"transform": {
"^.+\\.(js|ts|tsx)$": "ts-jest"
},
"testPathIgnorePatterns": [
"/node_modules/",
2021-11-12 17:27:10 +01:00
"/build/",
"client/tests/integration"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/tests/"
],
"setupFiles": [
"./client/tests/adapter.js",
"./client/tests/stubs.js",
2021-04-24 12:35:47 +02:00
"./client/tests/mock-fetch.js",
"./client/tests/mock-jquery.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
},
2015-04-25 07:46:15 +02:00
"devDependencies": {
2022-01-06 22:27:01 +01:00
"@babel/core": "^7.16.7",
"@storybook/addon-controls": "^6.4.19",
"@storybook/addon-docs": "^6.4.19",
"@storybook/builder-webpack5": "^6.4.19",
"@storybook/manager-webpack5": "^6.4.19",
"@storybook/react": "^6.4.19",
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 10:56:27 +01:00
"@types/draft-js": "^0.10.45",
2022-01-06 22:27:01 +01:00
"@types/jest": "^26.0.24",
"@types/react": "^16.14.21",
"@types/react-redux": "^7.1.20",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"@wagtail/eslint-config-wagtail": "^0.4.0",
"@wagtail/stylelint-config-wagtail": "^0.5.0",
"autoprefixer": "^10.4.2",
2022-01-06 22:27:01 +01:00
"babel-loader": "^8.2.3",
"copy-webpack-plugin": "^10.2.0",
"css-loader": "^6.5.1",
"cssnano": "^5.0.14",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"enzyme-to-json": "^3.6.2",
"eslint": "^8.5.0",
"expose-loader": "^3.1.0",
"gettext-extractor": "^3.5.3",
"jest": "^26.6.3",
2022-01-06 22:27:01 +01:00
"mini-css-extract-plugin": "^2.4.5",
"postcss": "^8.4.7",
2022-01-06 22:27:01 +01:00
"postcss-loader": "^6.2.1",
"prettier": "^2.5.1",
2022-01-06 22:27:01 +01:00
"react-axe": "^3.5.4",
"react-test-renderer": "^16.14.0",
"redux-mock-store": "^1.3.0",
2022-01-06 22:27:01 +01:00
"sass": "^1.45.1",
"sass-loader": "^12.4.0",
"storybook-django": "^0.5.1",
2022-01-06 22:27:01 +01:00
"stylelint": "^14.2.0",
"tailwindcss": "^3.0.23",
"tailwindcss-vanilla-rtl": "^0.1.0",
2022-01-06 22:27:01 +01:00
"ts-jest": "^26.5.6",
"ts-loader": "^9.2.6",
"typescript": "^4.5.4",
"webpack": "^5.65.0",
"webpack-cli": "^4.9.1"
},
"dependencies": {
"@tippyjs/react": "^4.2.6",
"a11y-dialog": "^7.4.0",
"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 10:56:27 +01:00
"draftjs-filters": "^2.5.0",
"focus-trap-react": "^8.4.2",
"immer": "^9.0.6",
2021-07-23 11:47:50 +02:00
"js-cookie": "^2.2.1",
"prop-types": "^15.6.2",
2021-03-19 14:17:58 +01:00
"react": "^16.14.0",
"react-dom": "^16.14.0",
2021-03-19 14:21:14 +01: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",
"tippy.js": "^6.3.7",
"uuid": "^8.3.2"
2015-04-25 07:46:15 +02:00
},
"scripts": {
"start": "webpack --config ./client/webpack.config.js --mode development --progress --watch",
"build": "webpack --config ./client/webpack.config.js --mode production",
"fix:js": "eslint --ext .js,.ts,.tsx --fix .",
"format": "prettier --write '**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}'",
"lint:js": "eslint --ext .js,.ts,.tsx --report-unused-disable-directives .",
"lint:css": "stylelint **/*.scss",
"lint:format": "prettier --check '**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}'",
"lint": "npm run lint:js && npm run lint:css && npm run lint:format",
"test": "npm run test:unit",
"test:unit": "jest",
"test:unit:watch": "jest --watch",
"test:unit:coverage": "jest --coverage",
2021-11-12 17:27:10 +01:00
"test:integration": "./client/tests/integration/node_modules/.bin/jest --config ./client/tests/integration/jest.config.js",
"storybook": "start-storybook -c client/storybook -p 6006 --no-open --no-version-updates --no-release-notes --quiet --modern",
"build-storybook": "build-storybook -c client/storybook --modern"
2015-04-25 07:46:15 +02:00
}
2015-04-25 07:48:06 +02:00
}