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

Update most frontend dependencies #3771

Merged
merged 2 commits into from
Jan 6, 2025
Merged
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
18 changes: 15 additions & 3 deletions frontend/.storybook/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* - Please do NOT serve this file on production.
*/

const PACKAGE_VERSION = '2.6.5'
const INTEGRITY_CHECKSUM = 'ca7800994cc8bfb5eb961e037c877074'
const PACKAGE_VERSION = '2.7.0'
const INTEGRITY_CHECKSUM = '00729d72e3b82faf54ca8b9621dbb96f'
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
const activeClientIds = new Set()

Expand Down Expand Up @@ -199,7 +199,19 @@ async function getResponse(event, client, requestId) {
// Remove the "accept" header value that marked this request as passthrough.
// This prevents request alteration and also keeps it compliant with the
// user-defined CORS policies.
headers.delete('accept', 'msw/passthrough')
const acceptHeader = headers.get('accept')
if (acceptHeader) {
const values = acceptHeader.split(',').map((value) => value.trim())
const filteredValues = values.filter(
(value) => value !== 'msw/passthrough',
)

if (filteredValues.length > 0) {
headers.set('accept', filteredValues.join(', '))
} else {
headers.delete('accept')
}
}

return fetch(requestClone, { headers })
}
Expand Down
7,066 changes: 3,661 additions & 3,405 deletions frontend/package-lock.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"dependencies": {
"@fontsource/inconsolata": "^5.1.1",
"@fontsource/inter": "^5.1.1",
"@radix-ui/react-collapsible": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-collapsible": "^1.1.2",
"@radix-ui/react-dialog": "^1.1.4",
"@tanstack/react-query": "^5.62.15",
"@tanstack/react-router": "^1.95.1",
"@tanstack/router-zod-adapter": "^1.81.5",
"@vector-im/compound-design-tokens": "2.1.3",
"@vector-im/compound-web": "^7.3.0",
"@vector-im/compound-design-tokens": "3.0.1",
"@vector-im/compound-web": "^7.6.2",
"@zxcvbn-ts/core": "^3.0.4",
"@zxcvbn-ts/language-common": "^3.0.4",
"classnames": "^2.5.1",
Expand All @@ -36,8 +36,8 @@
"react-dom": "^18.3.1",
"react-i18next": "^15.4.0",
"swagger-ui-react": "^5.18.2",
"vaul": "^1.1.1",
"zod": "^3.23.8"
"vaul": "^1.1.2",
"zod": "^3.24.1"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
Expand All @@ -52,7 +52,7 @@
"@storybook/addon-interactions": "^8.4.7",
"@storybook/react": "^8.4.7",
"@storybook/react-vite": "^8.4.7",
"@storybook/test": "^8.4.4",
"@storybook/test": "^8.4.7",
"@tanstack/react-query-devtools": "^5.62.15",
"@tanstack/router-devtools": "^1.95.1",
"@tanstack/router-vite-plugin": "^1.95.1",
Expand All @@ -63,29 +63,29 @@
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/swagger-ui-react": "^4.18.3",
"@vitejs/plugin-react": "^4.3.3",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^2.1.8",
"autoprefixer": "^10.4.20",
"browserslist-to-esbuild": "^2.1.1",
"graphql": "^16.9.0",
"happy-dom": "^15.11.4",
"graphql": "^16.10.0",
"happy-dom": "^16.3.0",
"i18next-parser": "^9.1.0",
"knip": "^5.41.1",
"msw": "^2.6.5",
"msw": "^2.7.0",
"msw-storybook-addon": "^2.0.4",
"postcss": "^8.4.49",
"postcss-import": "^16.1.0",
"postcss-nesting": "^13.0.1",
"rimraf": "^6.0.1",
"storybook": "^8.4.4",
"storybook": "^8.4.7",
"storybook-react-i18next": "^3.1.8",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"vite": "5.4.11",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-graphql-codegen": "^3.3.8",
"vite-plugin-graphql-codegen": "^3.4.4",
"vite-plugin-manifest-sri": "^0.2.0",
"vitest": "^2.1.2"
"vitest": "^2.1.8"
},
"msw": {
"workerDirectory": [".storybook"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ exports[`<OAuth2ClientDetail> > renders client details 1`] = `
Terms of service
</h5>
<a
class="_link_1mzip_17 _externalLink_a97355"
class="_link_ue21z_17 _externalLink_a97355"
data-kind="primary"
data-size="medium"
href="https://client.org/tos"
rel="noreferrer noopener"
target="_blank"
Expand All @@ -66,8 +67,9 @@ exports[`<OAuth2ClientDetail> > renders client details 1`] = `
Policy
</h5>
<a
class="_link_1mzip_17 _externalLink_a97355"
class="_link_ue21z_17 _externalLink_a97355"
data-kind="primary"
data-size="medium"
href="https://client.org/policy"
rel="noreferrer noopener"
target="_blank"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ exports[`<CompatSessionDetail> > renders a compatability session details 1`] = `
Uri
</h5>
<a
class="_link_1mzip_17 _externalLink_a97355"
class="_link_ue21z_17 _externalLink_a97355"
data-kind="primary"
data-size="medium"
href="https://element.io"
rel="noreferrer noopener"
target="_blank"
Expand Down Expand Up @@ -708,8 +709,9 @@ exports[`<CompatSessionDetail> > renders a finished compatability session detail
Uri
</h5>
<a
class="_link_1mzip_17 _externalLink_a97355"
class="_link_ue21z_17 _externalLink_a97355"
data-kind="primary"
data-size="medium"
href="https://element.io"
rel="noreferrer noopener"
target="_blank"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ exports[`<OAuth2SessionDetail> > renders a finished session details 1`] = `
class="_typography_yh5dq_162 _font-heading-sm-semibold_yh5dq_102 _title_17898c"
>
<a
class="_link_1mzip_17"
class="_link_ue21z_17"
data-kind="primary"
data-size="medium"
href="/clients/test-id"
rel="noreferrer noopener"
>
Expand Down Expand Up @@ -453,8 +454,9 @@ exports[`<OAuth2SessionDetail> > renders session details 1`] = `
class="_typography_yh5dq_162 _font-heading-sm-semibold_yh5dq_102 _title_17898c"
>
<a
class="_link_1mzip_17"
class="_link_ue21z_17"
data-kind="primary"
data-size="medium"
href="/clients/test-id"
rel="noreferrer noopener"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ exports[`<UnverifiedEmailAlert /> > renders a warning when there are unverified

<a
aria-current="page"
class="_link_1mzip_17 active"
class="_link_ue21z_17 active"
data-kind="primary"
data-size="medium"
data-status="active"
href="/#emails"
rel="noreferrer noopener"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ exports[`BrowserSessionsOverview > renders with no browser sessions 1`] = `
</p>
</div>
<a
class="_link_1mzip_17"
class="_link_ue21z_17"
data-kind="primary"
data-size="medium"
href="/sessions/browsers"
rel="noreferrer noopener"
>
Expand Down Expand Up @@ -51,8 +52,9 @@ exports[`BrowserSessionsOverview > renders with sessions 1`] = `
</p>
</div>
<a
class="_link_1mzip_17"
class="_link_ue21z_17"
data-kind="primary"
data-size="medium"
href="/sessions/browsers"
rel="noreferrer noopener"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ exports[`Reset cross signing > renders the deep link page 1`] = `
>
<nav>
<a
class="_link_1mzip_17"
class="_link_ue21z_17"
data-kind="primary"
data-size="medium"
href="https://matrix.org/policy"
rel="noreferrer noopener"
title="Link to the service privacy policy"
Expand All @@ -216,8 +217,9 @@ exports[`Reset cross signing > renders the deep link page 1`] = `
</div>
<a
class="_link_1mzip_17"
class="_link_ue21z_17"
data-kind="primary"
data-size="medium"
href="https://matrix.org/tos"
rel="noreferrer noopener"
title="Link to the service terms and conditions"
Expand Down Expand Up @@ -432,8 +434,9 @@ exports[`Reset cross signing > renders the page 1`] = `
>
<nav>
<a
class="_link_1mzip_17"
class="_link_ue21z_17"
data-kind="primary"
data-size="medium"
href="https://matrix.org/policy"
rel="noreferrer noopener"
title="Link to the service privacy policy"
Expand All @@ -447,8 +450,9 @@ exports[`Reset cross signing > renders the page 1`] = `
</div>
<a
class="_link_1mzip_17"
class="_link_ue21z_17"
data-kind="primary"
data-size="medium"
href="https://matrix.org/tos"
rel="noreferrer noopener"
title="Link to the service terms and conditions"
Expand Down
Loading
Loading