wagtail/package.json

158 wiersze
4.8 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": {
2023-10-27 06:45:09 +00: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 20:08:28 +00:00
"not ie 11"
],
"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"
},
"testEnvironment": "jsdom",
"testPathIgnorePatterns": [
"/node_modules/",
2021-11-12 16:27:10 +00:00
"/build/",
"client/tests/integration"
],
"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"
],
"setupFilesAfterEnv": [
"./client/tests/utils.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
},
2015-04-25 05:46:15 +00:00
"devDependencies": {
"@babel/core": "^7.24.4",
"@babel/preset-env": "^7.24.4",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@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 09:56:27 +00:00
"@types/draft-js": "^0.10.45",
"@types/jest": "^29.5.12",
"@types/jquery": "^3.5.29",
"@types/mousetrap": "^1.6.15",
2022-01-06 21:27:01 +00: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 21:27:01 +00:00
"@wagtail/eslint-config-wagtail": "^0.4.0",
"@wagtail/stylelint-config-wagtail": "^0.8.0",
"autoprefixer": "^10.4.17",
"babel-loader": "^9.1.3",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.10.0",
"cssnano": "^5.1.15",
2022-01-06 21:27:01 +00:00
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.8",
2022-01-06 21:27:01 +00: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 17:43:11 +00:00
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mini-css-extract-plugin": "^2.8.0",
"postcss": "^8.4.35",
"postcss-loader": "^8.1.0",
"prettier": "^3.1.0",
2022-01-06 21:27:01 +00:00
"react-test-renderer": "^16.14.0",
"redux-mock-store": "^1.5.4",
"sass": "^1.70.0",
"sass-loader": "^14.1.0",
"storybook": "^7.6.14",
"storybook-django": "^0.5.1",
"stylelint": "^15.11.0",
"tailwindcss": "^3.4.1",
"tailwindcss-vanilla-rtl": "^0.4.0",
"ts-jest": "^29.1.2",
2023-12-13 10:40:27 +00:00
"ts-loader": "^9.5.1",
"typescript": "^5.4.4",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@hotwired/stimulus": "^3.2.2",
"@tippyjs/react": "^4.2.6",
"a11y-dialog": "^8.0.4",
"autosize": "^6.0.1",
"axe-core": "^4.8.4",
"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 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.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 05:46:15 +00: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 16:27:10 +00: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 05:46:15 +00:00
}
2015-04-25 05:48:06 +00:00
}