From 9fd2c52547d0bf8bd61b81217706a2785d99536a Mon Sep 17 00:00:00 2001 From: yingfeng Date: Thu, 13 Jun 2024 16:28:14 -0400 Subject: [PATCH] AMP-2979: update react & eslint to match bbc --- package-lock.json | 111 ++++++++++++++++++++++++++++++++++++++-------- package.json | 6 +-- 2 files changed, 96 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index b923ff2..e98a652 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "1.0.2", "hasInstallScript": true, "dependencies": { + "@bbc/react-transcript-editor": "file:../react-transcript-editor", "@vue/cli": "^5.0.8", "@vuejs-community/vue-filter-date-format": "^1.6.3", "axios": "^1.7.2", @@ -20,8 +21,8 @@ "eslint-webpack-plugin": "^4.1.0", "mediaelement": "^7.0.3", "moment": "^2.30.1", - "react": "^16.14.0", - "react-dom": "^16.14.0", + "react": "^17.0.2", + "react-dom": "^17.0.2", "sass-loader": "^14.2.1", "underscore": "^1.13.6", "vue": "^2.6.14", @@ -47,7 +48,7 @@ "@vue/eslint-config-prettier": "^9.0.0", "@vue/test-utils": "^2.4.5", "babel-eslint": "^10.1.0", - "eslint": "^8.0.1", + "eslint": "^8.57.0", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-react": "^7.34.2", "eslint-plugin-vue": "^9.25.0", @@ -56,6 +57,76 @@ "vue-template-compiler": "^2.7.16" } }, + "../react-transcript-editor": { + "name": "@bbc/react-transcript-editor", + "version": "1.4.4", + "license": "MIT", + "dependencies": { + "@fortawesome/fontawesome-svg-core": "^6.5.2", + "@fortawesome/free-brands-svg-icons": "^6.5.2", + "@fortawesome/free-solid-svg-icons": "^6.5.2", + "@fortawesome/react-fontawesome": "^0.2.2", + "babel-polyfill": "^6.26.0", + "difflib": "^0.2.4", + "docx": "^8.5.0", + "draft-js": "^0.11.7", + "everpolate": "0.0.3", + "mousetrap": "1.6.5", + "number-to-words": "^1.2.4", + "prop-types": "^15.8.1", + "react-fast-compare": "^3.2.2", + "react-keyboard-shortcuts": "^1.1.3", + "react-simple-tooltip": "^2.6.3", + "sbd": "^1.0.19", + "smpte-timecode": "^1.3.5" + }, + "devDependencies": { + "@babel/cli": "^7.24.7", + "@babel/core": "^7.24.7", + "@babel/plugin-proposal-class-properties": "^7.5.5", + "@babel/plugin-proposal-object-rest-spread": "^7.6.2", + "@babel/preset-env": "^7.24.7", + "@babel/preset-react": "^7.24.7", + "@storybook/addon-a11y": "^7.0.0", + "@storybook/addon-actions": "^7.0.0", + "@storybook/addon-knobs": "^7.0.0", + "@storybook/addon-links": "^7.0.0", + "@storybook/addon-viewport": "^7.0.0", + "@storybook/addons": "^7.0.0", + "@storybook/react": "^7.0.0", + "babel-eslint": "^10.0.3", + "babel-jest": "^29.7.0", + "babel-loader": "^9.1.3", + "babel-plugin-transform-object-rest-spread": "^6.26.0", + "babel-preset-minify": "^0.5.2", + "css-loader": "^7.1.2", + "enzyme": "^3.11.0", + "eslint": "^8.57.0", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-plugin-css-modules": "^2.12.0", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-react": "^7.34.2", + "gh-pages": "^6.1.1", + "husky": "^9.0.11", + "jest": "^29.7.0", + "mini-css-extract-plugin": "^2.9.0", + "prettier-stylelint": "^0.4.2", + "react-testing-library": "^5.2.3", + "regenerator-runtime": "^0.14.1", + "rimraf": "^5.0.7", + "sass": "^1.77.4", + "sass-loader": "^14.2.1", + "style-loader": "^4.0.0", + "stylelint-config-standard": "^36.0.0", + "webpack": "^5.91.0", + "webpack-cli": "^5.1.4", + "why-did-you-update": "^1.0.6" + }, + "peerDependencies": { + "react": "^17.0.2", + "react-dom": "^17.0.2" + } + }, "node_modules/@achrinza/node-ipc": { "version": "9.2.9", "resolved": "https://registry.npmjs.org/@achrinza/node-ipc/-/node-ipc-9.2.9.tgz", @@ -2160,6 +2231,10 @@ "node": ">=6.9.0" } }, + "node_modules/@bbc/react-transcript-editor": { + "resolved": "../react-transcript-editor", + "link": true + }, "node_modules/@bcoe/v8-coverage": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", @@ -18200,6 +18275,7 @@ "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -18209,7 +18285,8 @@ "node_modules/prop-types/node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true }, "node_modules/proto-list": { "version": "1.2.4", @@ -18356,30 +18433,28 @@ } }, "node_modules/react": { - "version": "16.14.0", - "resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz", - "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==", + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react/-/react-17.0.2.tgz", + "integrity": "sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==", "dependencies": { "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "prop-types": "^15.6.2" + "object-assign": "^4.1.1" }, "engines": { "node": ">=0.10.0" } }, "node_modules/react-dom": { - "version": "16.14.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz", - "integrity": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==", + "version": "17.0.2", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz", + "integrity": "sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==", "dependencies": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", - "prop-types": "^15.6.2", - "scheduler": "^0.19.1" + "scheduler": "^0.20.2" }, "peerDependencies": { - "react": "^16.14.0" + "react": "17.0.2" } }, "node_modules/react-is": { @@ -19003,9 +19078,9 @@ } }, "node_modules/scheduler": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.19.1.tgz", - "integrity": "sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==", + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz", + "integrity": "sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ==", "dependencies": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1" diff --git a/package.json b/package.json index 09c2ede..5ba43a8 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ }, "dependencies": { "@bbc/react-transcript-editor": "https://github.com/AudiovisualMetadataPlatform/react-transcript-editor.git", - "react": "^16.14.0", - "react-dom": "^16.14.0", + "react": "^17.0.2", + "react-dom": "^17.0.2", "@vue/cli": "^5.0.8", "@vuejs-community/vue-filter-date-format": "^1.6.3", "axios": "^1.7.2", @@ -51,7 +51,7 @@ "@vue/eslint-config-prettier": "^9.0.0", "@vue/test-utils": "^2.4.5", "babel-eslint": "^10.1.0", - "eslint": "^8.0.1", + "eslint": "^8.57.0", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-react": "^7.34.2", "eslint-plugin-vue": "^9.25.0",