diff --git a/package-lock.json b/package-lock.json index 498a15d570..5c90ad6c8b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,8 @@ "dependencies": { "@hello-pangea/dnd": "^16.5.0", "@mui/material": "^5.15.21", - "@mui/x-date-pickers": "^7.6.1", - "@reduxjs/toolkit": "^2.2.5", + "@mui/x-date-pickers": "^7.8.0", + "@reduxjs/toolkit": "^2.2.6", "@types/dompurify": "^3.0.5", "@types/react-router-dom": "^5.3.3", "array-move": "^4.0.0", @@ -37,7 +37,7 @@ "react-i18next": "^14.1.2", "react-icons": "^5.2.1", "react-redux": "^7.2.9", - "react-router-dom": "^6.23.1", + "react-router-dom": "^6.24.0", "react-select": "^5.8.0", "redux": "^5.0.1", "redux-persist": "^6.0.0", @@ -54,7 +54,7 @@ "@types/lodash": "^4.17.6", "@types/node": "^20.14.9", "@types/react-dom": "^18.3.0", - "@types/uuid": "^9.0.8", + "@types/uuid": "^10.0.0", "@typescript-eslint/eslint-plugin": "^7.14.1", "@vitejs/plugin-react-swc": "^3.7.0", "eslint": "^8.57.0", @@ -63,7 +63,7 @@ "rollup-preserve-directives": "^1.1.1", "sass": "^1.77.6", "typescript": "^5.5.2", - "uuid": "^9.0.1", + "uuid": "^10.0.0", "vite": "^5.3.2", "vite-plugin-svgr": "^4.2.0", "vite-tsconfig-paths": "^4.3.2", @@ -2188,9 +2188,9 @@ "license": "MIT" }, "node_modules/@babel/runtime": { - "version": "7.24.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.6.tgz", - "integrity": "sha512-Ja18XcETdEl5mzzACGd+DKgaGJzPTCow7EglgwTmHdwokzDFYh/MHua6lU6DV/hjF2IaOJ4oX2nqnjG7RElKOw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.7.tgz", + "integrity": "sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -3308,14 +3308,14 @@ } }, "node_modules/@mui/x-date-pickers": { - "version": "7.6.1", - "resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-7.6.1.tgz", - "integrity": "sha512-erSq5cnOUyBgBmpHnMxIit5yhT3bl/lOaNZKpObvJtvEJetvNA9xWQ7dz/J/AufLzDuvThjusuRD0y+GmeXtiw==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-7.8.0.tgz", + "integrity": "sha512-SkolW0vZ4XiUeD5FBevG9NQ3pAgfNYlJA5XFhSLFD/swNQRO4EYOUXw38O/ccOh1lkAcwVR+rrGPCoT4/0YGEg==", "dependencies": { - "@babel/runtime": "^7.24.6", + "@babel/runtime": "^7.24.7", "@mui/base": "^5.0.0-beta.40", - "@mui/system": "^5.15.15", - "@mui/utils": "^5.15.14", + "@mui/system": "^5.15.20", + "@mui/utils": "^5.15.20", "@types/react-transition-group": "^4.4.10", "clsx": "^2.1.1", "prop-types": "^15.8.1", @@ -3467,9 +3467,9 @@ } }, "node_modules/@reduxjs/toolkit": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.2.5.tgz", - "integrity": "sha512-aeFA/s5NCG7NoJe/MhmwREJxRkDs0ZaSqt0MxhWUrwCf1UQXpwR87RROJEql0uAkLI6U7snBOYOcKw83ew3FPg==", + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.2.6.tgz", + "integrity": "sha512-kH0r495c5z1t0g796eDQAkYbEQ3a1OLYN9o8jQQVZyKyw367pfRGS+qZLkHYvFHiUUdafpoSlQ2QYObIApjPWA==", "dependencies": { "immer": "^10.0.3", "redux": "^5.0.1", @@ -3490,9 +3490,9 @@ } }, "node_modules/@remix-run/router": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.16.1.tgz", - "integrity": "sha512-es2g3dq6Nb07iFxGk5GuHN20RwBZOsuDQN7izWIisUcv9r+d2C5jQxqmgkdebXgReWfiyUabcki6Fg77mSNrig==", + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.17.0.tgz", + "integrity": "sha512-2D6XaHEVvkCn682XBnipbJjgZUU7xjLtA4dGJRBVUKpEaDYOZMENZoZjAOSb7qirxt5RupjzZxz4fK2FO+EFPw==", "engines": { "node": ">=14.0.0" } @@ -4455,9 +4455,9 @@ "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA==" }, "node_modules/@types/uuid": { - "version": "9.0.8", - "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", - "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==", "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { @@ -9920,11 +9920,11 @@ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, "node_modules/react-router": { - "version": "6.23.1", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.23.1.tgz", - "integrity": "sha512-fzcOaRF69uvqbbM7OhvQyBTFDVrrGlsFdS3AL+1KfIBtGETibHzi3FkoTRyiDJnWNc2VxrfvR+657ROHjaNjqQ==", + "version": "6.24.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.24.0.tgz", + "integrity": "sha512-sQrgJ5bXk7vbcC4BxQxeNa5UmboFm35we1AFK0VvQaz9g0LzxEIuLOhHIoZ8rnu9BO21ishGeL9no1WB76W/eg==", "dependencies": { - "@remix-run/router": "1.16.1" + "@remix-run/router": "1.17.0" }, "engines": { "node": ">=14.0.0" @@ -9934,12 +9934,12 @@ } }, "node_modules/react-router-dom": { - "version": "6.23.1", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.23.1.tgz", - "integrity": "sha512-utP+K+aSTtEdbWpC+4gxhdlPFwuEfDKq8ZrPFU65bbRJY+l706qjR7yaidBpo3MSeA/fzwbXWbKBI6ftOnP3OQ==", + "version": "6.24.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.24.0.tgz", + "integrity": "sha512-960sKuau6/yEwS8e+NVEidYQb1hNjAYM327gjEyXlc6r3Skf2vtwuJ2l7lssdegD2YjoKG5l8MsVyeTDlVeY8g==", "dependencies": { - "@remix-run/router": "1.16.1", - "react-router": "6.23.1" + "@remix-run/router": "1.17.0", + "react-router": "6.24.0" }, "engines": { "node": ">=14.0.0" @@ -11149,9 +11149,9 @@ } }, "node_modules/uuid": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", - "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", "dev": true, "funding": [ "https://github.com/sponsors/broofa", diff --git a/package.json b/package.json index 6aad3d1ddf..6d27006400 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "dependencies": { "@hello-pangea/dnd": "^16.5.0", "@mui/material": "^5.15.21", - "@mui/x-date-pickers": "^7.6.1", - "@reduxjs/toolkit": "^2.2.5", + "@mui/x-date-pickers": "^7.8.0", + "@reduxjs/toolkit": "^2.2.6", "@types/dompurify": "^3.0.5", "@types/react-router-dom": "^5.3.3", "array-move": "^4.0.0", @@ -34,7 +34,7 @@ "react-i18next": "^14.1.2", "react-icons": "^5.2.1", "react-redux": "^7.2.9", - "react-router-dom": "^6.23.1", + "react-router-dom": "^6.24.0", "react-select": "^5.8.0", "redux": "^5.0.1", "redux-persist": "^6.0.0", @@ -69,7 +69,7 @@ "@types/lodash": "^4.17.6", "@types/node": "^20.14.9", "@types/react-dom": "^18.3.0", - "@types/uuid": "^9.0.8", + "@types/uuid": "^10.0.0", "@typescript-eslint/eslint-plugin": "^7.14.1", "@vitejs/plugin-react-swc": "^3.7.0", "eslint": "^8.57.0", @@ -78,7 +78,7 @@ "rollup-preserve-directives": "^1.1.1", "sass": "^1.77.6", "typescript": "^5.5.2", - "uuid": "^9.0.1", + "uuid": "^10.0.0", "vite": "^5.3.2", "vite-plugin-svgr": "^4.2.0", "vite-tsconfig-paths": "^4.3.2", diff --git a/src/components/configuration/Themes.tsx b/src/components/configuration/Themes.tsx index 14ca28b38c..14a265aaeb 100644 --- a/src/components/configuration/Themes.tsx +++ b/src/components/configuration/Themes.tsx @@ -87,16 +87,6 @@ const Themes = ({ <>
- {/* Add theme button */} -
- {hasAccess("ROLE_UI_THEMES_CREATE", user) && ( - - )} -
- {/* Display modal for new series if add series button is clicked */} )} + + {/* Add theme button */} +
+ {hasAccess("ROLE_UI_THEMES_CREATE", user) && ( + + )} +
diff --git a/src/components/events/Events.tsx b/src/components/events/Events.tsx index 98ca33bb16..80e4e14983 100644 --- a/src/components/events/Events.tsx +++ b/src/components/events/Events.tsx @@ -195,15 +195,6 @@ const Events = ({ <>
-
- {hasAccess("ROLE_UI_EVENTS_CREATE", user) && ( - - )} -
- { /* Display modal for new event if add event button is clicked */ !isFetchingAssetUploadOptions && ( @@ -258,6 +249,15 @@ const Events = ({ )} + +
+ {hasAccess("ROLE_UI_EVENTS_CREATE", user) && ( + + )} +
diff --git a/src/components/events/Series.tsx b/src/components/events/Series.tsx index 9b3e981936..3df361b7fd 100644 --- a/src/components/events/Series.tsx +++ b/src/components/events/Series.tsx @@ -163,15 +163,6 @@ const Series = ({ <>
-
- {hasAccess("ROLE_UI_SERIES_CREATE", user) && ( - - )} -
- {/* Display modal for new series if add series button is clicked */} )} + +
+ {hasAccess("ROLE_UI_SERIES_CREATE", user) && ( + + )} +
diff --git a/src/components/events/partials/ModalTabsAndPages/EventDetailsAccessPolicyTab.tsx b/src/components/events/partials/ModalTabsAndPages/EventDetailsAccessPolicyTab.tsx index b22fb56e90..3ea781cc16 100644 --- a/src/components/events/partials/ModalTabsAndPages/EventDetailsAccessPolicyTab.tsx +++ b/src/components/events/partials/ModalTabsAndPages/EventDetailsAccessPolicyTab.tsx @@ -34,7 +34,7 @@ const EventDetailsAccessPolicyTab = ({ const fetchHasActiveTransactionsWrapper = async(eventId: any) => { return await dispatch(fetchHasActiveTransactions(eventId)).then(unwrapResult); } - const saveNewAccessPoliciesWrapper = async(eventId: any, policies: any) => { + const saveNewAccessPoliciesWrapper = (eventId: any, policies: any) => { return dispatch(saveAccessPolicies({eventId, policies})); } diff --git a/src/components/events/partials/ModalTabsAndPages/NewSourcePage.tsx b/src/components/events/partials/ModalTabsAndPages/NewSourcePage.tsx index bc960a158d..19741e27b5 100644 --- a/src/components/events/partials/ModalTabsAndPages/NewSourcePage.tsx +++ b/src/components/events/partials/ModalTabsAndPages/NewSourcePage.tsx @@ -318,6 +318,7 @@ const Upload = ({ formik }) => {