Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] upgrade packages #3172

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 51 additions & 47 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,68 +3,72 @@
"version": "6.2.2",
"private": true,
"type": "module",
"license": {
"type": "AGPL-3.0",
"url": "https://github.com/glific/glific-frontend?tab=AGPL-3.0-1-ov-file#readme"
},
"dependencies": {
"@apollo/client": "^3.11.8",
"@apollo/client": "^3.12.3",
"@apollo/link-context": "^2.0.0-beta.3",
"@apollo/link-error": "^2.0.0-beta.3",
"@appsignal/javascript": "^1.3.31",
"@appsignal/javascript": "^1.5.0",
"@appsignal/plugin-breadcrumbs-network": "^1.1.22",
"@appsignal/plugin-path-decorator": "^1.0.16",
"@appsignal/plugin-window-events": "^1.0.22",
"@appsignal/react": "^1.0.26",
"@appsignal/plugin-window-events": "^1.0.24",
"@appsignal/react": "^1.0.28",
"@date-io/dayjs": "^3.0.0",
"@emoji-mart/data": "^1.2.1",
"@emoji-mart/react": "^1.1.1",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@glific/flow-editor": "^1.26.3-18",
"@lexical/react": "^0.17.1",
"@mui/icons-material": "^6.1.1",
"@mui/material": "^6.1.1",
"@mui/x-date-pickers": "^7.18.0",
"@nyaruka/temba-components": "^0.108.1",
"@stripe/react-stripe-js": "^2.8.0",
"@stripe/stripe-js": "^4.5.0",
"@vitejs/plugin-react": "^4.3.1",
"@lexical/react": "^0.21.0",
"@mui/icons-material": "^6.2.0",
"@mui/material": "^6.2.0",
"@mui/x-date-pickers": "^7.23.2",
"@nyaruka/temba-components": "^0.113.0",
"@stripe/react-stripe-js": "^3.1.1",
"@stripe/stripe-js": "^5.3.0",
"@vitejs/plugin-react": "^4.3.4",
"apollo-absinthe-upload-link": "^1.7.0",
"apollo-link-token-refresh": "^0.7.0",
"axios": "^1.7.7",
"axios": "^1.7.9",
"buffer": "^6.0.3",
"dayjs": "^1.11.13",
"emoji-mart": "^5.6.0",
"formik": "^2.4.6",
"graphql": "^16.9.0",
"graphql": "^16.10.0",
"graphql-ws": "^5.16.0",
"i18next": "^23.15.1",
"i18next-browser-languagedetector": "^8.0.0",
"i18next": "^24.1.0",
"i18next-browser-languagedetector": "^8.0.2",
"interweave": "^13.1.0",
"interweave-autolink": "^5.1.1",
"lexical": "^0.17.1",
"lexical-beautiful-mentions": "^0.1.41",
"pino": "^9.4.0",
"lexical": "^0.21.0",
"lexical-beautiful-mentions": "^0.1.44",
"pino": "^9.5.0",
"pino-logflare": "^0.4.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-draggable": "^4.4.6",
"react-google-recaptcha-v3": "^1.10.1",
"react-i18next": "^15.0.2",
"react-i18next": "^15.2.0",
"react-image": "^4.1.0",
"react-media-recorder": "^1.7.1",
"react-phone-input-2": "^2.15.1",
"react-player": "^2.16.0",
"react-resize-detector": "^11.0.1",
"react-router-dom": "^6.26.2",
"react-resize-detector": "^12.0.1",
"react-router-dom": "^7.0.2",
"react-tiny-link": "^3.6.1",
"react-viewer": "^3.2.2",
"rollup-plugin-polyfill-node": "^0.13.0",
"stream-browserify": "^3.0.0",
"util": "^0.12.5",
"uuid": "^10.0.0",
"vite": "^5.4.8",
"uuid": "^11.0.3",
"vite": "^6.0.3",
"vite-plugin-checker": "^0.8.0",
"vite-plugin-svgr": "^4.2.0",
"vite-tsconfig-paths": "^5.0.1",
"yup": "^1.4.0"
"vite-plugin-svgr": "^4.3.0",
"vite-tsconfig-paths": "^5.1.4",
"yup": "^1.5.0"
},
"scripts": {
"setup": "yarn install --force && yarn run floweditor",
Expand Down Expand Up @@ -99,33 +103,33 @@
},
"devDependencies": {
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@types/emoji-mart": "^3.0.14",
"@types/node": "^22.7.2",
"@types/react": "^18.3.9",
"@types/react-dom": "^18.3.0",
"@types/node": "^22.10.2",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"@types/react-google-recaptcha": "^2.1.9",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"@types/react-test-renderer": "^18.3.0",
"@types/react-test-renderer": "^19.0.0",
"@types/uuid": "^10.0.0",
"@vitest/coverage-istanbul": "^2.1.1",
"@vitest/ui": "^2.1.1",
"@vitest/coverage-istanbul": "^2.1.8",
"@vitest/ui": "^2.1.8",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.1.0",
"i18next-parser": "^9.0.2",
"jsdom": "^25.0.1",
"prettier": "^3.3.3",
"react-test-renderer": "^18.3.1",
"typescript": "^5.6.2",
"vitest": "^2.1.1",
"prettier": "^3.4.2",
"react-test-renderer": "^19.0.0",
"typescript": "^5.7.2",
"vitest": "^2.1.8",
"yarn-upgrade-all": "^0.7.4"
}
}
2 changes: 1 addition & 1 deletion src/components/UI/ImgFallback/ImgFallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type ImgProps = {

const ImgFallback = ({ src, alt, ...rest }: ImgProps) => {
const [imgSrc, setImgSrc] = useState<string>(src);
const imgRef: any = useRef<HTMLImageElement>();
const imgRef = useRef<HTMLImageElement>(null);

useEffect(() => {
setImgSrc(src);
Expand Down
12 changes: 0 additions & 12 deletions src/components/UI/ListIcon/ListIcon.test.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
import { MemoryRouter } from 'react-router';
import { render } from '@testing-library/react';

import ChatIcon from 'assets/images/icons/SideDrawer/ChatIcon';
import FlowIcon from 'assets/images/icons/SideDrawer/FlowIcon';
import SearchIcon from 'assets/images/icons/SideDrawer/SearchIcon';
import SpeedSendIcon from 'assets/images/icons/SideDrawer/SpeedSendIcon';
import TemplateIcon from 'assets/images/icons/SideDrawer/TemplateIcon';
import { ListIcon } from './ListIcon';

describe('list icon tests', () => {
const iconList: { [iconName: string]: (color: { color: any }) => JSX.Element } = {
chat: ChatIcon,
flow: FlowIcon,
search: SearchIcon,
'speed-send': SpeedSendIcon,
template: TemplateIcon,
};
const createIcon = (type: string) => (
<MemoryRouter>
<ListIcon icon={type} />
Expand Down
Loading
Loading