From 36942719b67e19bd2b3f336307f212d33536394d Mon Sep 17 00:00:00 2001 From: Aryan Shah <149894557+ARYANSHAH1567@users.noreply.github.com> Date: Tue, 5 Nov 2024 22:21:20 +0530 Subject: [PATCH 1/3] Tests for newly created events (#2410) * Update EventCalendar.tsx * Update EventCalendar.test.tsx --- .../EventCalendar/EventCalendar.test.tsx | 53 ++++++++++++++----- .../EventCalendar/EventCalendar.tsx | 1 + 2 files changed, 41 insertions(+), 13 deletions(-) diff --git a/src/components/EventCalendar/EventCalendar.test.tsx b/src/components/EventCalendar/EventCalendar.test.tsx index caca516763..8e2395968a 100644 --- a/src/components/EventCalendar/EventCalendar.test.tsx +++ b/src/components/EventCalendar/EventCalendar.test.tsx @@ -286,13 +286,14 @@ describe('Calendar', () => { // expect(todayCell).toHaveClass(styles.day__today); }); it('Should handle window resize in day view', async () => { + const date = new Date().toISOString().split('T')[0]; const multipleEventData = [ { _id: '1', title: 'Event 1', description: 'This is event 1', - startDate: new Date().toISOString().split('T')[0], - endDate: new Date().toISOString().split('T')[0], + startDate: date, + endDate: date, location: 'Los Angeles', startTime: null, endTime: null, @@ -307,8 +308,8 @@ describe('Calendar', () => { _id: '2', title: 'Event 2', description: 'This is event 2', - startDate: new Date().toISOString().split('T')[0], - endDate: new Date().toISOString().split('T')[0], + startDate: date, + endDate: date, location: 'Los Angeles', startTime: null, endTime: null, @@ -323,8 +324,8 @@ describe('Calendar', () => { _id: '3', title: 'Event 3', description: 'This is event 3', - startDate: new Date().toISOString().split('T')[0], - endDate: new Date().toISOString().split('T')[0], + startDate: date, + endDate: date, location: 'Los Angeles', startTime: '14:00', endTime: '16:00', @@ -339,8 +340,8 @@ describe('Calendar', () => { _id: '4', title: 'Event 4', description: 'This is event 4', - startDate: new Date().toISOString().split('T')[0], - endDate: new Date().toISOString().split('T')[0], + startDate: date, + endDate: date, location: 'Los Angeles', startTime: '14:00', endTime: '16:00', @@ -355,8 +356,8 @@ describe('Calendar', () => { _id: '5', title: 'Event 5', description: 'This is event 5', - startDate: new Date().toISOString().split('T')[0], - endDate: new Date().toISOString().split('T')[0], + startDate: date, + endDate: date, location: 'Los Angeles', startTime: '17:00', endTime: '19:00', @@ -372,14 +373,40 @@ describe('Calendar', () => { - + - , , ); + + // Simulate window resize and check if components respond correctly + await act(async () => { + window.innerWidth = 500; // Set the window width to <= 700 + window.dispatchEvent(new Event('resize')); + }); + + // Check for "View all" button if there are more than 2 events + const viewAllButton = await screen.findAllByTestId('more'); + console.log('hi', viewAllButton); // This will show the buttons found in the test + expect(viewAllButton.length).toBeGreaterThan(0); + + // Simulate clicking the "View all" button to expand the list + fireEvent.click(viewAllButton[0]); + + const event5 = screen.queryByText('Event 5'); + expect(event5).toBeNull(); + + const viewLessButtons = screen.getAllByText('View less'); + expect(viewLessButtons.length).toBeGreaterThan(0); + + // Simulate clicking "View less" to collapse the list + fireEvent.click(viewLessButtons[0]); + const viewAllButtons = screen.getAllByText('View all'); + expect(viewAllButtons.length).toBeGreaterThan(0); + + // Reset the window size to avoid side effects for other tests await act(async () => { - window.innerWidth = 500; + window.innerWidth = 1024; window.dispatchEvent(new Event('resize')); }); }); diff --git a/src/components/EventCalendar/EventCalendar.tsx b/src/components/EventCalendar/EventCalendar.tsx index fb76eb597c..592456f295 100644 --- a/src/components/EventCalendar/EventCalendar.tsx +++ b/src/components/EventCalendar/EventCalendar.tsx @@ -558,6 +558,7 @@ const Calendar: React.FC = ({ /*istanbul ignore next*/ {t('removeMemberMsg')} {/* Button to cancel the removal action */} - {/* Button to confirm the removal action */} @@ -413,7 +399,7 @@ function AddMember(): JSX.Element { Add @@ -446,6 +433,7 @@ function AddMember(): JSX.Element { + {/* New User Modal */} @@ -559,7 +546,12 @@ function AddMember(): JSX.Element { variant="danger" onClick={closeCreateNewUserModal} data-testid="closeBtn" + style={{ + backgroundColor: 'var(--delete-button-bg)', + color: 'var(--delete-button-color)', + }} > + {translateOrgPeople('cancel')} @@ -578,18 +575,3 @@ function AddMember(): JSX.Element { } export default AddMember; -// | typeof ORGANIZATIONS_MEMBER_CONNECTION_LIST -// | typeof ORGANIZATIONS_LIST -// | typeof USER_LIST_FOR_TABLE -// | typeof ADD_MEMBER_MUTATION; -// { -// id?: string; -// orgId?: string; -// orgid?: string; -// fristNameContains?: string; -// lastNameContains?: string; -// firstName_contains?: string; -// lastName_contains?: string; -// id_not_in?: string[]; -// userid?: string; -// }; diff --git a/src/screens/OrganizationPeople/OrganizationPeople.module.css b/src/screens/OrganizationPeople/OrganizationPeople.module.css deleted file mode 100644 index 5ff4b0d297..0000000000 --- a/src/screens/OrganizationPeople/OrganizationPeople.module.css +++ /dev/null @@ -1,121 +0,0 @@ -@media screen and (max-width: 575.5px) { - .mainpageright { - width: 98%; - } -} -.modalContent { - width: 670px; - max-width: 680px; -} -.dropdown { - background-color: white; - border: 1px solid #31bb6b; - position: relative; - display: inline-block; - margin-top: 10px; - margin-bottom: 10px; - color: #31bb6b; -} -.input { - flex: 1; - position: relative; -} - -.btnsContainer { - display: flex; - margin: 2.5rem 0 2.5rem 0; -} - -.btnsContainer .btnsBlock { - display: flex; -} - -.btnsContainer .btnsBlock button { - margin-left: 1rem; - display: flex; - justify-content: center; - align-items: center; -} - -.btnsContainer .input { - flex: 1; - position: relative; -} - -/* input { - outline: 1px solid var(--bs-gray-400); -} */ - -.btnsContainer .input button { - width: 52px; -} - -.inputField { - margin-top: 10px; - margin-bottom: 10px; - background-color: white; - box-shadow: 0 1px 1px #31bb6b; -} -.inputFieldModal { - margin-bottom: 10px; - background-color: white; - box-shadow: 0 1px 1px #31bb6b; -} -.inputField > button { - padding-top: 10px; - padding-bottom: 10px; -} -.TableImage { - object-fit: cover; - width: 50px !important; - height: 50px !important; - border-radius: 100% !important; -} -.tableHead { - background-color: #31bb6b !important; - color: white; - border-radius: 20px !important; - padding: 20px; - margin-top: 20px; -} - -.tableHead :nth-first-child() { - border-top-left-radius: 20px; -} - -.mainpageright > hr { - margin-top: 10px; - width: 100%; - margin-left: -15px; - margin-right: -15px; - margin-bottom: 20px; -} -.rowBackground { - background-color: var(--bs-white); -} -.tableHeader { - background-color: var(--bs-primary); - color: var(--bs-white); - font-size: 16px; -} - -@-webkit-keyframes load8 { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -@keyframes load8 { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} diff --git a/src/screens/OrganizationPeople/OrganizationPeople.tsx b/src/screens/OrganizationPeople/OrganizationPeople.tsx index 1d230ed058..849135f120 100644 --- a/src/screens/OrganizationPeople/OrganizationPeople.tsx +++ b/src/screens/OrganizationPeople/OrganizationPeople.tsx @@ -1,5 +1,5 @@ import { useLazyQuery } from '@apollo/client'; -import { Search, Sort } from '@mui/icons-material'; +import { Delete, Search, Sort } from '@mui/icons-material'; import { ORGANIZATIONS_LIST, ORGANIZATIONS_MEMBER_CONNECTION_LIST, @@ -16,7 +16,7 @@ import { useTranslation } from 'react-i18next'; import { Link, useLocation, useParams } from 'react-router-dom'; import { toast } from 'react-toastify'; import AddMember from './AddMember'; -import styles from './OrganizationPeople.module.css'; +import styles from '../../style/app.module.css'; import { DataGrid } from '@mui/x-data-grid'; import type { GridColDef, GridCellParams } from '@mui/x-data-grid'; import { Stack } from '@mui/material'; @@ -214,7 +214,7 @@ function organizationPeople(): JSX.Element { {params.row?.firstName + ' ' + params.row?.lastName} @@ -258,15 +258,19 @@ function organizationPeople(): JSX.Element { ) : ( ); }, @@ -292,11 +296,10 @@ function organizationPeople(): JSX.Element { /> @@ -316,6 +319,7 @@ function organizationPeople(): JSX.Element { d-inline id="userslist" data-value="userslist" + className={styles.dropdownItem} data-name="displaylist" data-testid="users" defaultChecked={state == 2 ? true : false} @@ -331,6 +335,7 @@ function organizationPeople(): JSX.Element { d-inline id="memberslist" data-value="memberslist" + className={styles.dropdownItem} data-name="displaylist" data-testid="members" defaultChecked={state == 0 ? true : false} @@ -338,20 +343,25 @@ function organizationPeople(): JSX.Element { setState(0); }} > - + + {tCommon('members')} + { setState(1); }} > - + + {tCommon('admins')} + @@ -370,7 +380,6 @@ function organizationPeople(): JSX.Element { disableColumnMenu columnBufferPx={5} hideFooter={true} - className={`${styles.datagrid}`} getRowId={(row) => row._id} slots={{ noRowsOverlay: () => ( @@ -384,17 +393,26 @@ function organizationPeople(): JSX.Element { ), }} sx={{ - '&.MuiDataGrid-root .MuiDataGrid-cell:focus-within': { - outline: 'none !important', - }, - '&.MuiDataGrid-root .MuiDataGrid-columnHeader:focus-within': { - outline: 'none', + borderRadius: '20px', + backgroundColor: '#EAEBEF', + '& .MuiDataGrid-row': { + backgroundColor: '#eff1f7', + '&:focus-within': { + outline: '2px solid #000', + outlineOffset: '-2px', + }, }, '& .MuiDataGrid-row:hover': { - backgroundColor: 'transparent', + backgroundColor: '#EAEBEF', + boxShadow: '0 0 0 1px rgba(0, 0, 0, 0.1)', }, '& .MuiDataGrid-row.Mui-hovered': { - backgroundColor: 'transparent', + backgroundColor: '#EAEBEF', + boxShadow: '0 0 0 1px rgba(0, 0, 0, 0.1)', + }, + '& .MuiDataGrid-cell:focus': { + outline: '2px solid #000', + outlineOffset: '-2px', }, }} getRowClassName={() => `${styles.rowBackground}`} diff --git a/src/style/app.module.css b/src/style/app.module.css new file mode 100644 index 0000000000..3196965193 --- /dev/null +++ b/src/style/app.module.css @@ -0,0 +1,216 @@ +:root { + --dropdown-border-color: #555555; + --dropdown-text-color: #555555; + --subtle-blue-grey: #7c9beb; + --subtle-blue-grey-hover: #5f7e91; + --modal-width: 670px; + --modal-max-width: 680px; + --input-shadow-color: #dddddd; + --delete-button-bg: #f8d6dc; + --delete-button-color: #ff4d4f; + --search-button-bg: #a8c7fa; + --search-button-border: #555555; + --table-image-size: 50px; + --table-head-bg: var( + --bs-primary, + blue + ); /* Assuming var(--bs-primary) is defined elsewhere */ + --table-head-color: white; + --table-header-color: var(--bs-greyish-black, black); + --table-head-radius: 20px; + --row-background: var(--bs-white, white); + --font-size-header: 16px; +} + +.closeButton { + color: var(--delete-button-color); + margin-right: 5px; + background-color: var(--delete-button-bg); +} + +.modalContent { + width: var(--modal-width); + max-width: var(--modal-max-width); +} + +.subtleBlueGrey { + color: var(--subtle-blue-grey); + text-decoration: none; +} + +.subtleBlueGrey:hover { + color: var(--subtle-blue-grey-hover); + text-decoration: underline; +} + +.dropdown { + background-color: white; + border: 1px solid var(--dropdown-border-color); + color: var(--dropdown-text-color); + position: relative; + display: inline-block; + margin-top: 10px; + margin-bottom: 10px; +} + +.dropdown:is(:hover, :focus, :active, :focus-visible, .show) { + background-color: transparent !important; + border: 1px solid var(--dropdown-border-color); + color: var(--dropdown-text-color) !important; +} + +.dropdownItem { + background-color: white !important; + color: var(--dropdown-text-color) !important; + border: none !important; +} + +.dropdownItem:hover, +.dropdownItem:focus, +.dropdownItem:active { + background-color: white !important; + color: var(--dropdown-text-color) !important; + outline: none !important; + box-shadow: none !important; +} + +.input { + flex: 1; + position: relative; +} + +.btnsContainer { + display: flex; + margin: 2.5rem 0; +} + +.btnsContainer .btnsBlock { + display: flex; +} + +.btnsContainer .btnsBlock button { + margin-left: 1rem; + display: flex; + justify-content: center; + align-items: center; +} + +.btnsContainer .input { + flex: 1; + position: relative; +} + +.btnsContainer .input button { + width: 52px; +} + +.deleteButton { + background-color: var(--delete-button-bg); + color: var(--delete-button-color); + border: none; + padding: 5px 20px; + display: flex; + align-items: center; + margin-top: 20px; + margin-right: auto; + margin-left: auto; + gap: 8px; +} + +.visuallyHidden { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} + +.inputField { + margin-top: 10px; + margin-bottom: 10px; + background-color: white; + box-shadow: 0 1px 1px var(--input-shadow-color); +} + +.inputFieldModal { + margin-bottom: 10px; + background-color: white; + box-shadow: 0 1px 1px var(--input-shadow-color); +} + +.inputField > button { + padding-top: 10px; + padding-bottom: 10px; +} + +.searchButton { + margin-bottom: 10px; + background-color: var(--search-button-bg); + border-color: var(--search-button-border); +} +.yesButton { + background-color: var(--search-button-bg); + border-color: var(--search-button-border); +} + +.searchIcon { + color: var(--dropdown-text-color); +} + +.TableImage { + object-fit: cover; + margin-top: 15px !important; + width: var(--table-image-size) !important; + height: var(--table-image-size) !important; + border-radius: 100% !important; +} + +.tableHead { + color: var(--table-head-color); + border-radius: var(--table-head-radius) !important; + padding: 20px; + margin-top: 20px; +} + +.mainpageright > hr { + margin-top: 10px; + width: 100%; + margin-left: -15px; + margin-right: -15px; + margin-bottom: 20px; +} + +.rowBackground { + background-color: var(--row-background); +} + +.tableHeader { + background-color: var(--table-head-bg); + color: var(--table-header-color); + font-size: var(--font-size-header); +} + +@-webkit-keyframes load8 { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes load8 { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} From 3f6b41a67c6932f4c0bce6ffb822d4ef12ede8c8 Mon Sep 17 00:00:00 2001 From: adithya <144007420+adithyanotfound@users.noreply.github.com> Date: Wed, 6 Nov 2024 23:13:48 +0530 Subject: [PATCH 3/3] Upgraded dicebear (#2411) --- package-lock.json | 458 +++++++++++++--------------- package.json | 4 +- scripts/__mocks__/@dicebear/core.ts | 2 +- src/components/Avatar/Avatar.tsx | 2 +- 4 files changed, 208 insertions(+), 258 deletions(-) diff --git a/package-lock.json b/package-lock.json index a69fde6323..4e875229f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,8 +11,8 @@ "@apollo/client": "^3.11.8", "@apollo/link-error": "^2.0.0-beta.3", "@apollo/react-testing": "^4.0.0", - "@dicebear/collection": "^8.0.2", - "@dicebear/core": "^8.0.2", + "@dicebear/collection": "^9.2.2", + "@dicebear/core": "^9.2.2", "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", "@mui/base": "^5.0.0-beta.61", @@ -2110,421 +2110,387 @@ "dev": true }, "node_modules/@dicebear/adventurer": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/adventurer/-/adventurer-8.0.2.tgz", - "integrity": "sha512-xBJDe8TijYCfUstgMETGAt3eXruMpwiDjbu8HdXDDOGyyHRjS2gIj4berQBhBp2kPSw++uUNuDou3eH/9MpaUQ==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/adventurer/-/adventurer-9.2.2.tgz", + "integrity": "sha512-WjBXCP9EXbUul2zC3BS2/R3/4diw1uh/lU4jTEnujK1mhqwIwanFboIMzQsasNNL/xf+m3OHN7MUNJfHZ1fLZA==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/adventurer-neutral": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/adventurer-neutral/-/adventurer-neutral-8.0.2.tgz", - "integrity": "sha512-7RpqZKzft4DBg5qNEOmU2Sz7O4HLXSTCUQ+Bmym9n5Hni+U/gjmTiUL6DtL5OhOoCz/5tG1hignzk9fdF8I9GA==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/adventurer-neutral/-/adventurer-neutral-9.2.2.tgz", + "integrity": "sha512-XVAjhUWjav6luTZ7txz8zVJU/H0DiUy4uU1Z7IO5MDO6kWvum+If1+0OUgEWYZwM+RDI7rt2CgVP910DyZGd1w==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/avataaars": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/avataaars/-/avataaars-8.0.2.tgz", - "integrity": "sha512-ezrKvE4ma7Kmzu2u8nC39exwBlOfrqmrTYuHpND1Sfem6XMborZhlGd382+35ellTMCJE5HCyN2VnZ0HWikzvQ==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/avataaars/-/avataaars-9.2.2.tgz", + "integrity": "sha512-WqJPQEt0OhBybTpI0TqU1uD1pSk9M2+VPIwvBye/dXo46b+0jHGpftmxjQwk6tX8z0+mRko8pwV5n+cWht1/+w==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/avataaars-neutral": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/avataaars-neutral/-/avataaars-neutral-8.0.2.tgz", - "integrity": "sha512-T+HFETXKpk6gsW0x6t2w+gWnuQqVSw5EDCkTe4Lde5pWX4xAqYYzz7SV8fwvQGuY9RJig4UQ8LOaDwYr3vVdnw==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/avataaars-neutral/-/avataaars-neutral-9.2.2.tgz", + "integrity": "sha512-pRj16P27dFDBI3LtdiHUDwIXIGndHAbZf5AxaMkn6/+0X93mVQ/btVJDXyW0G96WCsyC88wKAWr6/KJotPxU6Q==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/big-ears": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/big-ears/-/big-ears-8.0.2.tgz", - "integrity": "sha512-pFm6oJkl1gjwpNEyn+kOgyQO0bNh+6ei+S5iMiNRAnPdJ6kwEW1YXDmPIF5Aq9Xlj2FxrxRMSNI+rh4iU9mJ4Q==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/big-ears/-/big-ears-9.2.2.tgz", + "integrity": "sha512-hz4UXdPq4qqZpu0YVvlqM4RDFhk5i0WgPcuwj/MOLlgTjuj63uHUhCQSk6ZiW1DQOs12qpwUBMGWVHxBRBas9g==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/big-ears-neutral": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/big-ears-neutral/-/big-ears-neutral-8.0.2.tgz", - "integrity": "sha512-PPm1ZciS4jnrwD2btBVgJy3cffqZjwvIJJx7kGpw5vke4uks8bXmGyB1vJKftWfN6WkCvjdFbTdW8qx6NPUlBw==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/big-ears-neutral/-/big-ears-neutral-9.2.2.tgz", + "integrity": "sha512-IPHt8fi3dv9cyfBJBZ4s8T+PhFCrQvOCf91iRHBT3iOLNPdyZpI5GNLmGiV0XMAvIDP5NvA5+f6wdoBLhYhbDA==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/big-smile": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/big-smile/-/big-smile-8.0.2.tgz", - "integrity": "sha512-vFGSYdZE7Rw3sGbl0JsUK+rSERAuXvMIoYmzwGgIWPwGkTd9/SlxemdFLZW849Nz1FfLjxtSpUyy/slgo6WpWg==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/big-smile/-/big-smile-9.2.2.tgz", + "integrity": "sha512-D4td0GL8or1nTNnXvZqkEXlzyqzGPWs3znOnm1HIohtFTeIwXm72Ob2lNDsaQJSJvXmVlwaQQ0CCTvyCl8Stjw==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/bottts": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/bottts/-/bottts-8.0.2.tgz", - "integrity": "sha512-0Mp0g0nChHaqr0Fz00dAX1fCTGMVimYecn4oXhZgNkCHS75SkIpepVtTASLkVGOHLHe58rAIPdOoOgqWw4wW8A==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/bottts/-/bottts-9.2.2.tgz", + "integrity": "sha512-wugFkzw8JNWV1nftq/Wp/vmQsLAXDxrMtRK3AoMODuUpSVoP3EHRUfKS043xggOsQFvoj0HZ7kadmhn0AMLf5A==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/bottts-neutral": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/bottts-neutral/-/bottts-neutral-8.0.2.tgz", - "integrity": "sha512-khiccnWoo0ivb+3PyneuWcL4bJc9+izAFFKIXvE3h7ozOT6VCT4h2WtYULaPwDYBAr85CygxgdWKd7aAujK6JQ==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/bottts-neutral/-/bottts-neutral-9.2.2.tgz", + "integrity": "sha512-lSgpqmSJtlnyxVuUgNdBwyzuA0O9xa5zRJtz7x2KyWbicXir5iYdX0MVMCkp1EDvlcxm9rGJsclktugOyakTlw==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/collection": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/collection/-/collection-8.0.2.tgz", - "integrity": "sha512-s8PW5yxjm5MxeLnHJV13fMT9IolsnaFipM6gaBoNyGs9T+krxqlAoRVy+4mES2KmaPKVUyBLdETrAUzSpGnxmQ==", - "license": "MIT", - "dependencies": { - "@dicebear/adventurer": "8.0.2", - "@dicebear/adventurer-neutral": "8.0.2", - "@dicebear/avataaars": "8.0.2", - "@dicebear/avataaars-neutral": "8.0.2", - "@dicebear/big-ears": "8.0.2", - "@dicebear/big-ears-neutral": "8.0.2", - "@dicebear/big-smile": "8.0.2", - "@dicebear/bottts": "8.0.2", - "@dicebear/bottts-neutral": "8.0.2", - "@dicebear/croodles": "8.0.2", - "@dicebear/croodles-neutral": "8.0.2", - "@dicebear/fun-emoji": "8.0.2", - "@dicebear/icons": "8.0.2", - "@dicebear/identicon": "8.0.2", - "@dicebear/initials": "8.0.2", - "@dicebear/lorelei": "8.0.2", - "@dicebear/lorelei-neutral": "8.0.2", - "@dicebear/micah": "8.0.2", - "@dicebear/miniavs": "8.0.2", - "@dicebear/notionists": "8.0.2", - "@dicebear/notionists-neutral": "8.0.2", - "@dicebear/open-peeps": "8.0.2", - "@dicebear/personas": "8.0.2", - "@dicebear/pixel-art": "8.0.2", - "@dicebear/pixel-art-neutral": "8.0.2", - "@dicebear/rings": "8.0.2", - "@dicebear/shapes": "8.0.2", - "@dicebear/thumbs": "8.0.2" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@dicebear/core": "^8.0.0" - } - }, - "node_modules/@dicebear/converter": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/converter/-/converter-8.0.2.tgz", - "integrity": "sha512-mREmyQLIfHnt30Xzjc9ZHgDgIzbF7BXApBCYolnB2kO2Kpb14OdmsyLRsYe/Tt+Vt6sLgiigWoZFcRvbStRhLA==", - "dependencies": { - "@types/json-schema": "^7.0.11", - "tmp-promise": "^3.0.3" + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/collection/-/collection-9.2.2.tgz", + "integrity": "sha512-vZAmXhPWCK3sf8Fj9/QflFC6XOLroJOT5K1HdnzHaPboEvffUQideGCrrEamnJtlH0iF0ZDXh8gqmwy2fu+yHA==", + "dependencies": { + "@dicebear/adventurer": "9.2.2", + "@dicebear/adventurer-neutral": "9.2.2", + "@dicebear/avataaars": "9.2.2", + "@dicebear/avataaars-neutral": "9.2.2", + "@dicebear/big-ears": "9.2.2", + "@dicebear/big-ears-neutral": "9.2.2", + "@dicebear/big-smile": "9.2.2", + "@dicebear/bottts": "9.2.2", + "@dicebear/bottts-neutral": "9.2.2", + "@dicebear/croodles": "9.2.2", + "@dicebear/croodles-neutral": "9.2.2", + "@dicebear/dylan": "9.2.2", + "@dicebear/fun-emoji": "9.2.2", + "@dicebear/glass": "9.2.2", + "@dicebear/icons": "9.2.2", + "@dicebear/identicon": "9.2.2", + "@dicebear/initials": "9.2.2", + "@dicebear/lorelei": "9.2.2", + "@dicebear/lorelei-neutral": "9.2.2", + "@dicebear/micah": "9.2.2", + "@dicebear/miniavs": "9.2.2", + "@dicebear/notionists": "9.2.2", + "@dicebear/notionists-neutral": "9.2.2", + "@dicebear/open-peeps": "9.2.2", + "@dicebear/personas": "9.2.2", + "@dicebear/pixel-art": "9.2.2", + "@dicebear/pixel-art-neutral": "9.2.2", + "@dicebear/rings": "9.2.2", + "@dicebear/shapes": "9.2.2", + "@dicebear/thumbs": "9.2.2" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@resvg/resvg-js": "^2.4.1", - "exiftool-vendored": "^23.0.0", - "sharp": "^0.32.6" - }, - "peerDependenciesMeta": { - "@resvg/resvg-js": { - "optional": true - }, - "exiftool-vendored": { - "optional": true - }, - "sharp": { - "optional": true - } + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/core": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/core/-/core-8.0.2.tgz", - "integrity": "sha512-Zr3dBAH+6BBYc2kjz7KvJCMYasQlsY9CZ7D3abgZhk/XRT4B3qxo8kP+FL8YjJvrOJyV2P7h08BAKZlTWuKXPA==", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/core/-/core-9.2.2.tgz", + "integrity": "sha512-ROhgHG249dPtcXgBHcqPEsDeAPRPRD/9d+tZCjLYyueO+cXDlIA8dUlxpwIVcOuZFvCyW6RJtqo8BhNAi16pIQ==", "dependencies": { - "@dicebear/converter": "8.0.2", "@types/json-schema": "^7.0.11" }, "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" } }, "node_modules/@dicebear/croodles": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/croodles/-/croodles-8.0.2.tgz", - "integrity": "sha512-UKW6PKtID0P9pUlbTy3SRbhWghHbyIjoYK/rbp1Tq2jVRmES9mLGcpO4azpP/JgsC7btjLYN7BvyDzVp6Ob7aw==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/croodles/-/croodles-9.2.2.tgz", + "integrity": "sha512-OzvAXQWsOgMwL3Sl+lBxCubqSOWoBJpC78c4TKnNTS21rR63TtXUyVdLLzgKVN4YHRnvMgtPf8F/W9YAgIDK4w==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/croodles-neutral": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/croodles-neutral/-/croodles-neutral-8.0.2.tgz", - "integrity": "sha512-2XvtlCe1/LPLRyrpgWkNroWzc8wB5ycz/nWdLOyTExD8ik4QQzKvUEbADxaTe1WsfTEr3fN/CN4EMk32UH5erg==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/croodles-neutral/-/croodles-neutral-9.2.2.tgz", + "integrity": "sha512-/4mNirxoQ+z1kHXnpDRbJ1JV1ZgXogeTeNp0MaFYxocCgHfJ7ckNM23EE1I7akoo9pqPxrKlaeNzGAjKHdS9vA==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" + } + }, + "node_modules/@dicebear/dylan": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/dylan/-/dylan-9.2.2.tgz", + "integrity": "sha512-s7e3XliC1YXP+Wykj+j5kwdOWFRXFzYHYk/PB4oZ1F3sJandXiG0HS4chaNu4EoP0yZgKyFMUVTGZx+o6tMaYg==", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/fun-emoji": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/fun-emoji/-/fun-emoji-8.0.2.tgz", - "integrity": "sha512-F0GrSJTgfV5sKlXCuZ5fQFTkeAv10301rZjAN6nxdxEtaG3iM1NnGpVFnPYtyl/dyHNsTgRuzNz8g0qrDuMQLw==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/fun-emoji/-/fun-emoji-9.2.2.tgz", + "integrity": "sha512-M+rYTpB3lfwz18f+/i+ggNwNWUoEj58SJqXJ1wr7Jh/4E5uL+NmJg9JGwYNaVtGbCFrKAjSaILNUWGQSFgMfog==", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "@dicebear/core": "^9.0.0" + } + }, + "node_modules/@dicebear/glass": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/glass/-/glass-9.2.2.tgz", + "integrity": "sha512-imCMxcg+XScHYtQq2MUv1lCzhQSCUglMlPSezKEpXhTxgbgUpmGlSGVkOfmX5EEc7SQowKkF1W/1gNk6CXvBaQ==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/icons": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/icons/-/icons-8.0.2.tgz", - "integrity": "sha512-UAtAcsxSFxM6YtQFkMhu0/Xvk3tP/WA0OdZ0TZZdqCIldK5dzKFsiiixa3hwLQd9AB1SyJmHAL4XVrpkWF0ijQ==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/icons/-/icons-9.2.2.tgz", + "integrity": "sha512-Tqq2OVCdS7J02DNw58xwlgLGl40sWEckbqXT3qRvIF63FfVq+wQZBGuhuiyAURcSgvsc3h2oQeYFi9iXh7HTOA==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/identicon": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/identicon/-/identicon-8.0.2.tgz", - "integrity": "sha512-4ZejuMquE5XnN41XxZ+Tpssfv4pbFQcCFyXvDPsQv6rLT9WSj/JEXUgVNRNQSHwDEh+UzR01l5JtzOrQhw1hDw==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/identicon/-/identicon-9.2.2.tgz", + "integrity": "sha512-POVKFulIrcuZf3rdAgxYaSm2XUg/TJg3tg9zq9150reEGPpzWR7ijyJ03dzAADPzS3DExfdYVT9+z3JKwwJnTQ==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/initials": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/initials/-/initials-8.0.2.tgz", - "integrity": "sha512-wVknmFQiCdpNgM/a0Szh3LLOJU4zK5xyzIRHejJ2KyBx2WtDfiNZjgeDM9kjg/QGWk3t3cql4ZLlzqn2DHVcEA==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/initials/-/initials-9.2.2.tgz", + "integrity": "sha512-/xNnsEmsstWjmF77htAOuwOMhFlP6eBVXgcgFlTl/CCH/Oc6H7t0vwX1he8KLQBBzjGpvJcvIAn4Wh9rE4D5/A==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/lorelei": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/lorelei/-/lorelei-8.0.2.tgz", - "integrity": "sha512-Gi/f+QWfWYZD90h9QNPkmFM6iNrp+vD8LMmapH8DQBIIV5gEaHB0AQ54y0kCqnWbv0597E6rwPkdDGO4fuEVJw==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/lorelei/-/lorelei-9.2.2.tgz", + "integrity": "sha512-koXqVr/vcWUPo00VP5H6Czsit+uF1tmwd2NK7Q/e34/9Sd1f4QLLxHjjBNm/iNjCI1+UNTOvZ2Qqu0N5eo7Flw==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/lorelei-neutral": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/lorelei-neutral/-/lorelei-neutral-8.0.2.tgz", - "integrity": "sha512-cENa3xII5mnJ88Y61AHLTOJhhnxtFX4a/cSJ6XapwkjUVTKkNLDGWKinC6bw7A3AWFTUf2MmOg3kVlFtX6ExeQ==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/lorelei-neutral/-/lorelei-neutral-9.2.2.tgz", + "integrity": "sha512-Eys9Os6nt2Xll7Mvu66CfRR2YggTopWcmFcRZ9pPdohS96kT0MsLI2iTcfZXQ51K8hvT3IbwoGc86W8n0cDxAQ==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/micah": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/micah/-/micah-8.0.2.tgz", - "integrity": "sha512-H7YYdZbvWGJGBsPgmrPQuxWp/OMUff/Y70tE+comR6bGjIJyGM9hoTNBviflaC2INK9c0ieUCmvo185axxHVfQ==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/micah/-/micah-9.2.2.tgz", + "integrity": "sha512-NCajcJV5yw8uMKiACp694w1T/UyYme2CUEzyTzWHgWnQ+drAuCcH8gpAoLWd67viNdQB/MTpNlaelUgTjmI4AQ==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/miniavs": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/miniavs/-/miniavs-8.0.2.tgz", - "integrity": "sha512-xjuZUS7tBeWjbzGlGmgLh6gbIQLQ8TJQyeP0+Pal0bQxzhufxT452v4vAw38Meuz94B5Mm6VR+9bQjr10fd8eQ==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/miniavs/-/miniavs-9.2.2.tgz", + "integrity": "sha512-vvkWXttdw+KHF3j+9qcUFzK+P0nbNnImGjvN48wwkPIh2h08WWFq0MnoOls4IHwUJC4GXBjWtiyVoCxz6hhtOA==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/notionists": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/notionists/-/notionists-8.0.2.tgz", - "integrity": "sha512-XLG85pKqW32M92zI0Aw8Hg1pE2+lAn9hs7zEwGsud2sCamQeE8jZWuWBZ89ktizWiZVzNMlHNUuMmxGoiHNlqg==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/notionists/-/notionists-9.2.2.tgz", + "integrity": "sha512-Z9orRaHoj7Y9Ap4wEu8XOrFACsG1KbbBQUPV1R50uh6AHwsyNrm4cS84ICoGLvxgLNHHOae3YCjd8aMu2z19zg==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/notionists-neutral": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/notionists-neutral/-/notionists-neutral-8.0.2.tgz", - "integrity": "sha512-p+gZXAujRupRy7k9rEmcZE7kcqx1qbO7GMfyqsPCenqS3lNEZ+vEh7Rlz/rOY4xks1W4t/dtd/my2nJRqjjcIA==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/notionists-neutral/-/notionists-neutral-9.2.2.tgz", + "integrity": "sha512-AhOzk+lz6kB4uxGun8AJhV+W1nttnMlxmxd+5KbQ/txCIziYIaeD3il44wsAGegEpGFvAZyMYtR/jjfHcem3TA==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/open-peeps": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/open-peeps/-/open-peeps-8.0.2.tgz", - "integrity": "sha512-fZb4C6mkZpp70tRWcogPS1PZGF0k3pclXswXhGKBdL1g0ULr157BCXBlx9juCOZ2K8w6teLQ5VE/uP490ddPUw==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/open-peeps/-/open-peeps-9.2.2.tgz", + "integrity": "sha512-6PeQDHYyjvKrGSl/gP+RE5dSYAQGKpcGnM65HorgyTIugZK7STo0W4hvEycedupZ3MCCEH8x/XyiChKM2sHXog==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/personas": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/personas/-/personas-8.0.2.tgz", - "integrity": "sha512-8Xe4gaO/uJTwOMFBQv9AXJa0G8gzmqRtiH9UDrhs0yNF5Hh4g2yOeoefRBbLP/SuU5zSSHIZpcHKQD9Q1C30tA==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/personas/-/personas-9.2.2.tgz", + "integrity": "sha512-705+ObNLC0w1fcgE/Utav+8bqO+Esu53TXegpX5j7trGEoIMf2bThqJGHuhknZ3+T2az3Wr89cGyOGlI0KLzLA==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/pixel-art": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/pixel-art/-/pixel-art-8.0.2.tgz", - "integrity": "sha512-wYGeMg7tAubilL0oIqYTFA6tMY6kQoWZe66Yi3UqYVa3/FvOfW6hagBG3zLhv6KIRA3/d4u3l78u+bR1UyeJ+A==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/pixel-art/-/pixel-art-9.2.2.tgz", + "integrity": "sha512-BvbFdrpzQl04+Y9UsWP63YGug+ENGC7GMG88qbEFWxb/IqRavGa4H3D0T4Zl2PSLiw7f2Ctv98bsCQZ1PtCznQ==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/pixel-art-neutral": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/pixel-art-neutral/-/pixel-art-neutral-8.0.2.tgz", - "integrity": "sha512-PdteTJB14YHK6nHWc6ZxnDEfzzskDB5dnddE77zx23PcF7mebssFGSF0cyXGAtfKh5AWgIYJfQU4urzKXCkbJQ==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/pixel-art-neutral/-/pixel-art-neutral-9.2.2.tgz", + "integrity": "sha512-CdUY77H6Aj7dKLW3hdkv7tu0XQJArUjaWoXihQxlhl3oVYplWaoyu9omYy5pl8HTqs8YgVTGljjMXYoFuK0JUw==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/rings": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/rings/-/rings-8.0.2.tgz", - "integrity": "sha512-aCyTiYo8nGzUjJ8PD0ctErcvbKe1UEaeWHvKcQERLDX8WLQMykBJquFodhNgN97TjZ8+8ur+vsrR+g8B9Z0zDw==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/rings/-/rings-9.2.2.tgz", + "integrity": "sha512-eD1J1k364Arny+UlvGrk12HP/XGG6WxPSm4BarFqdJGSV45XOZlwqoi7FlcMr9r9yvE/nGL8OizbwMYusEEdjw==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/shapes": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/shapes/-/shapes-8.0.2.tgz", - "integrity": "sha512-5GaeUP8QkC7yuUutQCGiMH2U7ditdpKxfRjzlSG9uqaWV/RZZ0u190POawHIu7VpsuHWzMBRV9yu1l7Lc7wQFg==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/shapes/-/shapes-9.2.2.tgz", + "integrity": "sha512-e741NNWBa7fg0BjomxXa0fFPME2XCIR0FA+VHdq9AD2taTGHEPsg5x1QJhCRdK6ww85yeu3V3ucpZXdSrHVw5Q==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@dicebear/thumbs": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@dicebear/thumbs/-/thumbs-8.0.2.tgz", - "integrity": "sha512-sHKuGbd3TW9eihMvjv2Wg/gqkNgPeXyWA/cmMKSFb0BRGK2AiGyrLnRswdx4YkWVsTLd+WH2GQC4o6HMGnAJ/Q==", - "license": "MIT", + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/@dicebear/thumbs/-/thumbs-9.2.2.tgz", + "integrity": "sha512-FkPLDNu7n5kThLSk7lR/0cz/NkUqgGdZGfLZv6fLkGNGtv6W+e2vZaO7HCXVwIgJ+II+kImN41zVIZ6Jlll7pQ==", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "peerDependencies": { - "@dicebear/core": "^8.0.0" + "@dicebear/core": "^9.0.0" } }, "node_modules/@emotion/babel-plugin": { @@ -16764,22 +16730,6 @@ "node": ">=0.6.0" } }, - "node_modules/tmp-promise": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz", - "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==", - "dependencies": { - "tmp": "^0.2.0" - } - }, - "node_modules/tmp-promise/node_modules/tmp": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz", - "integrity": "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==", - "engines": { - "node": ">=14.14" - } - }, "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", diff --git a/package.json b/package.json index 512dd2c54c..f5ac37d35e 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "@apollo/client": "^3.11.8", "@apollo/link-error": "^2.0.0-beta.3", "@apollo/react-testing": "^4.0.0", - "@dicebear/collection": "^8.0.2", - "@dicebear/core": "^8.0.2", + "@dicebear/collection": "^9.2.2", + "@dicebear/core": "^9.2.2", "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", "@mui/base": "^5.0.0-beta.61", diff --git a/scripts/__mocks__/@dicebear/core.ts b/scripts/__mocks__/@dicebear/core.ts index 71a02f19ea..41811e2f8d 100644 --- a/scripts/__mocks__/@dicebear/core.ts +++ b/scripts/__mocks__/@dicebear/core.ts @@ -1,5 +1,5 @@ export const createAvatar = jest.fn(() => { return { - toDataUriSync: jest.fn(() => 'mocked-data-uri'), + toDataUri: jest.fn(() => 'mocked-data-uri'), }; }); diff --git a/src/components/Avatar/Avatar.tsx b/src/components/Avatar/Avatar.tsx index 431c4a875a..3e2f818e3f 100644 --- a/src/components/Avatar/Avatar.tsx +++ b/src/components/Avatar/Avatar.tsx @@ -41,7 +41,7 @@ const Avatar = ({ size: size || 128, seed: name, radius: radius || 0, - }).toDataUriSync(); + }).toDataUri(); }, [name, size]); const svg = avatar?.toString();