0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-22 11:07:57 +01:00
wagtail/package.json

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

158 lines
4.8 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": {
2023-10-27 08:45:09 +02:00
"node": ">=20.0.0"
},
"browserslist": [
"Firefox ESR",
"last 2 Chrome versions",
"last 2 ChromeAndroid versions",
"last 2 Edge versions",
"last 1 Firefox version",
"iOS >= 16",
"Safari >= 15",
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"
},
"testEnvironment": "jsdom",
"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"
],
"setupFilesAfterEnv": [
"./client/tests/utils.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
},
2015-04-25 07:46:15 +02:00
"devDependencies": {
2024-08-28 12:04:43 +02:00
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@storybook/addon-controls": "^7.6.14",
"@storybook/addon-docs": "^7.6.14",
"@storybook/react": "^7.6.14",
"@storybook/react-webpack5": "^7.6.14",
"@types/autosize": "^4.0.3",
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",
"@types/jest": "^29.5.12",
2024-08-28 12:04:43 +02:00
"@types/jquery": "^3.5.30",
"@types/mousetrap": "^1.6.15",
2022-01-06 22:27:01 +01:00
"@types/react": "^16.14.21",
"@types/react-dom": "^16.0",
"@types/react-redux": "^7.1.33",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
2022-01-06 22:27:01 +01:00
"@wagtail/eslint-config-wagtail": "^0.4.0",
"@wagtail/stylelint-config-wagtail": "^0.8.0",
2024-08-28 12:04:43 +02:00
"autoprefixer": "^10.4.20",
"babel-loader": "^9.1.3",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.10.0",
"cssnano": "^5.1.15",
2022-01-06 22:27:01 +01:00
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.8",
2022-01-06 22:27:01 +01:00
"enzyme-to-json": "^3.6.2",
"eslint": "^8.56.0",
"eslint-plugin-storybook": "^0.6.15",
"expose-loader": "^5.0.0",
"gettext-extractor": "^3.8.0",
2024-01-08 18:43:11 +01:00
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
2024-08-28 12:04:43 +02:00
"mini-css-extract-plugin": "^2.9.1",
"postcss": "^8.4.41",
"postcss-loader": "^8.1.1",
"prettier": "^3.3.3",
2022-01-06 22:27:01 +01:00
"react-test-renderer": "^16.14.0",
"redux-mock-store": "^1.5.4",
2024-08-28 12:04:43 +02:00
"sass": "^1.77.8",
"sass-loader": "^14.1.0",
"storybook": "^7.6.14",
"storybook-django": "^0.5.1",
"stylelint": "^15.11.0",
2024-08-28 12:04:43 +02:00
"tailwindcss": "^3.4.10",
"tailwindcss-vanilla-rtl": "^0.4.0",
2024-08-28 12:04:43 +02:00
"ts-jest": "^29.2.5",
2023-12-13 11:40:27 +01:00
"ts-loader": "^9.5.1",
2024-08-28 12:04:43 +02:00
"typescript": "^5.5.4",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@hotwired/stimulus": "^3.2.2",
"@tippyjs/react": "^4.2.6",
2024-08-28 12:04:43 +02:00
"a11y-dialog": "^8.1.0",
"autosize": "^6.0.1",
2024-08-28 12:04:43 +02:00
"axe-core": "^4.10.0",
"downshift": "^7.6.2",
"draft-js": "^0.10.5",
"draftail": "^2.0.0-rc.6",
"draftjs-filters": "^3.0.1",
"focus-trap-react": "^8.11.3",
"immer": "^9.0.21",
"js-cookie": "^3.0.5",
"mousetrap": "^1.6.5",
"prop-types": "^15.8.1",
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.2.1",
"redux-thunk": "^2.4.2",
"reselect": "^4.1.8",
"sortablejs": "^1.15.2",
"telepath-unpack": "^0.0.3",
"tippy.js": "^6.3.7",
"uuid": "^9.0.1"
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:css": "stylelint --fix **/*.scss",
"fix:js": "eslint --ext .js,.ts,.tsx --fix .",
"fix": "npm run fix:css && npm run fix:js",
"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:ts": "tsc --noEmit",
"lint": "npm run lint:js && npm run lint:ts && 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": "storybook dev -c client/storybook -p 6006 --no-open --no-version-updates",
"build-storybook": "storybook build -c client/storybook"
2015-04-25 07:46:15 +02:00
}
2015-04-25 07:48:06 +02:00
}