Skip to content

Commit 00c583e

Browse files
authored
feat: update dependencies (#209)
* feat: update dependencies * refactor: use spacing
1 parent 21d44ca commit 00c583e

File tree

6 files changed

+4222
-2214
lines changed

6 files changed

+4222
-2214
lines changed

package.json

Lines changed: 49 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,41 @@
1313
"dependencies": {
1414
"@codemirror/lang-cpp": "^6.0.2",
1515
"@codemirror/lang-java": "6.0.1",
16-
"@codemirror/lang-javascript": "6.2.1",
16+
"@codemirror/lang-javascript": "6.2.2",
1717
"@codemirror/lang-json": "^6.0.1",
18-
"@codemirror/lang-markdown": "^6.2.3",
19-
"@codemirror/lang-python": "^6.1.4",
20-
"@emotion/react": "11.11.1",
21-
"@emotion/styled": "11.11.0",
22-
"@fortawesome/fontawesome-svg-core": "6.5.1",
23-
"@fortawesome/free-regular-svg-icons": "6.5.1",
24-
"@fortawesome/free-solid-svg-icons": "6.5.1",
18+
"@codemirror/lang-markdown": "^6.2.5",
19+
"@codemirror/lang-python": "^6.1.5",
20+
"@emotion/react": "11.11.4",
21+
"@emotion/styled": "11.11.5",
22+
"@fortawesome/fontawesome-svg-core": "6.5.2",
23+
"@fortawesome/free-regular-svg-icons": "6.5.2",
24+
"@fortawesome/free-solid-svg-icons": "6.5.2",
2525
"@fortawesome/react-fontawesome": "0.2.0",
26-
"@graasp/apps-query-client": "3.4.8",
26+
"@graasp/apps-query-client": "3.4.11",
2727
"@graasp/pyodide": "github:graasp/graasp-pyodide",
28-
"@graasp/sdk": "4.1.0",
29-
"@graasp/ui": "4.1.1",
30-
"@mui/icons-material": "5.15.1",
31-
"@mui/lab": "5.0.0-alpha.134",
32-
"@mui/material": "5.15.1",
33-
"@sentry/react": "7.89.0",
28+
"@graasp/sdk": "4.7.2",
29+
"@graasp/ui": "4.15.0",
30+
"@mui/icons-material": "5.15.15",
31+
"@mui/lab": "5.0.0-alpha.170",
32+
"@mui/material": "5.15.15",
33+
"@sentry/react": "7.110.1",
3434
"@tanstack/react-query": "^4.36.1",
3535
"@tanstack/react-query-devtools": "^4.36.1",
3636
"@types/lodash.groupby": "4.6.9",
37-
"@types/node": "20.10.5",
38-
"@types/react": "18.2.60",
39-
"@types/react-dom": "18.2.19",
40-
"@uiw/react-codemirror": "^4.21.24",
41-
"@uppy/core": "^3.1.1",
42-
"@uppy/dashboard": "^3.3.1",
43-
"@uppy/drag-drop": "^3.0.1",
44-
"@uppy/file-input": "^3.0.1",
45-
"@uppy/progress-bar": "^3.0.1",
46-
"@uppy/react": "^3.1.0",
47-
"@uppy/xhr-upload": "^3.1.0",
48-
"date-fns": "3.0.1",
37+
"@types/node": "20.12.7",
38+
"@types/react": "18.2.79",
39+
"@types/react-dom": "18.2.25",
40+
"@uiw/react-codemirror": "^4.21.25",
41+
"@uppy/core": "^3.10.1",
42+
"@uppy/dashboard": "^3.8.1",
43+
"@uppy/drag-drop": "^3.1.0",
44+
"@uppy/file-input": "^3.1.1",
45+
"@uppy/progress-bar": "^3.1.1",
46+
"@uppy/react": "^3.3.0",
47+
"@uppy/xhr-upload": "^3.6.4",
48+
"date-fns": "3.6.0",
4949
"file-saver": "^2.0.5",
50-
"i18next": "23.7.11",
50+
"i18next": "23.11.2",
5151
"lodash.countby": "4.6.0",
5252
"lodash.groupby": "4.6.0",
5353
"lodash.isequal": "4.5.0",
@@ -60,17 +60,17 @@
6060
"react-csv": "2.2.2",
6161
"react-diff-viewer": "3.1.1",
6262
"react-dom": "18.2.0",
63-
"react-i18next": "13.5.0",
63+
"react-i18next": "14.1.0",
6464
"react-markdown": "9.0.1",
6565
"react-mde": "12.0.8",
66-
"react-router-dom": "6.21.0",
66+
"react-router-dom": "6.22.3",
6767
"react-sparklines": "1.7.0",
6868
"react-syntax-highlighter": "15.5.0",
69-
"react-toastify": "9.1.3",
69+
"react-toastify": "10.0.5",
7070
"remark-breaks": "4.0.0",
7171
"remark-gfm": "4.0.0",
7272
"stylis-plugin-rtl": "2.1.1",
73-
"typescript": "5.3.3"
73+
"typescript": "5.4.5"
7474
},
7575
"scripts": {
7676
"dev": "yarn vite",
@@ -97,46 +97,46 @@
9797
"cov:report": "open ./coverage/lcov-report/index.html"
9898
},
9999
"devDependencies": {
100-
"@commitlint/cli": "18.4.4",
101-
"@commitlint/config-conventional": "18.4.4",
100+
"@commitlint/cli": "19.2.2",
101+
"@commitlint/config-conventional": "19.2.2",
102102
"@cypress/code-coverage": "3.12.35",
103103
"@trivago/prettier-plugin-sort-imports": "4.3.0",
104104
"@types/file-saver": "^2.0.7",
105105
"@types/i18n": "0.13.10",
106-
"@types/lodash.countby": "^4",
106+
"@types/lodash.countby": "^4.6.9",
107107
"@types/lodash.isequal": "4.5.8",
108108
"@types/lodash.isobject": "3.0.9",
109109
"@types/lodash.isstring": "4.0.9",
110-
"@types/lodash.orderby": "^4",
110+
"@types/lodash.orderby": "^4.6.9",
111111
"@types/lodash.sumby": "4.6.9",
112112
"@types/react-csv": "1.1.10",
113-
"@types/react-sparklines": "^1",
114-
"@types/react-syntax-highlighter": "^15",
113+
"@types/react-sparklines": "^1.7.5",
114+
"@types/react-syntax-highlighter": "^15.5.11",
115115
"@types/uuid": "9.0.8",
116-
"@typescript-eslint/eslint-plugin": "6.15.0",
117-
"@typescript-eslint/parser": "6.15.0",
116+
"@typescript-eslint/eslint-plugin": "7.7.0",
117+
"@typescript-eslint/parser": "7.7.0",
118118
"@vitejs/plugin-react": "^4.2.1",
119119
"concurrently": "8.2.2",
120-
"cypress": "13.6.6",
120+
"cypress": "13.7.3",
121121
"env-cmd": "10.1.0",
122-
"eslint": "8.56.0",
122+
"eslint": "8.57.0",
123123
"eslint-config-airbnb": "19.0.4",
124124
"eslint-config-prettier": "9.1.0",
125125
"eslint-config-react-app": "7.0.1",
126126
"eslint-import-resolver-typescript": "^3.6.1",
127-
"eslint-plugin-cypress": "2.15.1",
127+
"eslint-plugin-cypress": "2.15.2",
128128
"eslint-plugin-import": "2.29.1",
129129
"eslint-plugin-jsx-a11y": "6.8.0",
130-
"eslint-plugin-prettier": "5.1.0",
131-
"eslint-plugin-react": "^7.33.2",
130+
"eslint-plugin-prettier": "5.1.3",
131+
"eslint-plugin-react": "^7.34.1",
132132
"eslint-plugin-react-hooks": "4.6.0",
133-
"husky": "8.0.3",
133+
"husky": "9.0.11",
134134
"nyc": "15.1.0",
135-
"prettier": "3.1.1",
135+
"prettier": "3.2.5",
136136
"uuid": "9.0.1",
137-
"vite": "5.0.13",
137+
"vite": "5.2.9",
138138
"vite-plugin-checker": "0.6.4",
139-
"vite-plugin-istanbul": "5.0.0"
139+
"vite-plugin-istanbul": "6.0.0"
140140
},
141141
"browserslist": {
142142
"production": [
@@ -160,13 +160,6 @@
160160
"src/**/*.d.ts"
161161
]
162162
},
163-
"resolutions": {
164-
"@codemirror/state": "6.3.3",
165-
"react": "18.2.0",
166-
"react-dom": "18.2.0",
167-
"@types/react": "18.2.60",
168-
"@types/react-dom": "18.2.19"
169-
},
170163
"packageManager": "[email protected]",
171164
"msw": {
172165
"workerDirectory": "public"

public/mockServiceWorker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* tslint:disable */
33

44
/**
5-
* Mock Service Worker (1.3.2).
5+
* Mock Service Worker (1.3.3).
66
* @see https://github.com/mswjs/msw
77
* - Please do NOT modify this file.
88
* - Please do NOT serve this file on production.

src/data/db.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
CompleteMember,
55
DiscriminatedItem,
66
ItemType,
7+
MemberFactory,
78
MemberType,
89
PermissionLevel,
910
} from '@graasp/sdk';
@@ -50,24 +51,18 @@ export const mockContext: LocalContext = {
5051
};
5152

5253
export const mockMembers: CompleteMember[] = [
53-
{
54+
MemberFactory({
5455
id: mockContext.memberId || '',
5556
name: 'current-member',
56-
email: '',
5757
extra: {},
5858
type: MemberType.Individual,
59-
createdAt: new Date().toISOString(),
60-
updatedAt: new Date().toISOString(),
61-
},
62-
{
59+
}),
60+
MemberFactory({
6361
id: 'mock-member-id-2',
6462
name: 'mock-member-2',
65-
email: '',
6663
extra: {},
6764
type: MemberType.Individual,
68-
createdAt: new Date().toISOString(),
69-
updatedAt: new Date().toISOString(),
70-
},
65+
}),
7166
];
7267

7368
const mockPythonCode = `import matplotlib.pyplot as plt

src/modules/views/admin/OrphanComments.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ const OrphanComments: FC<Prop> = ({ comments }) => {
4646
dataCy={ORPHAN_BUTTON_CYPRESS}
4747
variant="outlined"
4848
color="primary"
49-
sx={{ mr: 1 }}
5049
onClick={() => handleOnClickRemoveOrphans(orphanThreads)}
5150
disabled={orphanThreads.length === 0}
5251
>
@@ -62,7 +61,13 @@ const OrphanComments: FC<Prop> = ({ comments }) => {
6261
totalComments: totalNumberOfOrphanComments,
6362
});
6463

65-
return <FormControlLabel control={buttonControl} label={buttonLabel} />;
64+
return (
65+
<FormControlLabel
66+
sx={{ mr: 1 }}
67+
control={buttonControl}
68+
label={buttonLabel}
69+
/>
70+
);
6671
};
6772

6873
export default OrphanComments;

src/modules/views/admin/SettingsFab.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { FC, ReactElement, useEffect, useState } from 'react';
22
import { useTranslation } from 'react-i18next';
33

44
import { DisplaySettings as DisplaySettingsIcon } from '@mui/icons-material';
5-
import { Box, Fab, Stack, Tooltip } from '@mui/material';
5+
import { Fab, Stack, Tooltip } from '@mui/material';
66

77
import { Button } from '@graasp/ui';
88

@@ -64,9 +64,8 @@ const SettingsFab: FC = () => {
6464
};
6565

6666
const renderActions = (): ReactElement => (
67-
<Box>
67+
<Stack spacing={1} direction="row">
6868
<Button
69-
sx={{ m: 1 }}
7069
dataCy={SETTINGS_DIALOG_CANCEL_BUTTON_CYPRESS}
7170
onClick={() => handleClose(false)}
7271
color="error"
@@ -75,15 +74,14 @@ const SettingsFab: FC = () => {
7574
{t('Cancel')}
7675
</Button>
7776
<Button
78-
sx={{ m: 1 }}
7977
dataCy={SETTINGS_DIALOG_SAVE_BUTTON_CYPRESS}
8078
onClick={() => handleClose(true)}
8179
disabled={!unsavedChanges}
8280
variant="outlined"
8381
>
8482
{unsavedChanges ? t('Save') : t('Saved')}
8583
</Button>
86-
</Box>
84+
</Stack>
8785
);
8886

8987
return (

0 commit comments

Comments
 (0)