From 181d6bb6f9a593b5cd927010ce586f873890bb1f Mon Sep 17 00:00:00 2001 From: soykje Date: Tue, 10 Dec 2024 11:47:09 +0100 Subject: [PATCH] chore(snackbar): bump react-aria deps --- package-lock.json | 91 ++++++++++--------- packages/components/snackbar/package.json | 4 +- .../components/snackbar/src/Snackbar.test.tsx | 2 +- 3 files changed, 50 insertions(+), 47 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9cac6fc80..b5d6e0d7e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1830,6 +1830,7 @@ }, "node_modules/@clack/prompts/node_modules/is-unicode-supported": { "version": "1.3.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -6966,6 +6967,21 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, + "node_modules/@react-aria/landmark": { + "version": "3.0.0-beta.17", + "resolved": "https://registry.npmjs.org/@react-aria/landmark/-/landmark-3.0.0-beta.17.tgz", + "integrity": "sha512-wXP5X4T00i55MFpFmOvS+hQYoktrdD1tgGCEImNxFACqliE68sg5l5/cLZ4rwTl1ek/rzZpq16rrUJPxCiqJxw==", + "license": "Apache-2.0", + "dependencies": { + "@react-aria/utils": "^3.26.0", + "@react-types/shared": "^3.26.0", + "@swc/helpers": "^0.5.0", + "use-sync-external-store": "^1.2.0" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" + } + }, "node_modules/@react-aria/live-announcer": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/@react-aria/live-announcer/-/live-announcer-3.4.1.tgz", @@ -7067,6 +7083,25 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, + "node_modules/@react-aria/toast": { + "version": "3.0.0-beta.18", + "resolved": "https://registry.npmjs.org/@react-aria/toast/-/toast-3.0.0-beta.18.tgz", + "integrity": "sha512-zJp0txv7y3gaGwSaBxTaOByivYcz55G7O+JBOUs7fJbhzLiGg5jDHaUAzEkqVx6/KTcr2ojVDZIuRSkSaUDAwg==", + "license": "Apache-2.0", + "dependencies": { + "@react-aria/i18n": "^3.12.4", + "@react-aria/interactions": "^3.22.5", + "@react-aria/landmark": "3.0.0-beta.17", + "@react-aria/utils": "^3.26.0", + "@react-stately/toast": "3.0.0-beta.7", + "@react-types/button": "^3.10.1", + "@react-types/shared": "^3.26.0", + "@swc/helpers": "^0.5.0" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" + } + }, "node_modules/@react-aria/utils": { "version": "3.26.0", "resolved": "https://registry.npmjs.org/@react-aria/utils/-/utils-3.26.0.tgz", @@ -7112,15 +7147,16 @@ } }, "node_modules/@react-stately/toast": { - "version": "3.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@react-stately/toast/-/toast-3.0.0-beta.4.tgz", - "integrity": "sha512-YzEyFNAAQqZ+7pZpRiejotxDzp5CHagN21btVGGwU2jHu/oQRR+todtB3wADAp7EF5lfAlAsLABiD9ZNWQeDTw==", + "version": "3.0.0-beta.7", + "resolved": "https://registry.npmjs.org/@react-stately/toast/-/toast-3.0.0-beta.7.tgz", + "integrity": "sha512-+KDkaOS5Y4ApOfiP0HHij4ySwAd1VM9/pI4rVTyHrzkp0R2Q0eBxZ74MpWMpVfJa2lSjb/qEm60tqJ3A+4R/cQ==", + "license": "Apache-2.0", "dependencies": { "@swc/helpers": "^0.5.0", "use-sync-external-store": "^1.2.0" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" + "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, "node_modules/@react-stately/toggle": { @@ -27771,11 +27807,12 @@ } }, "node_modules/use-sync-external-store": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz", - "integrity": "sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz", + "integrity": "sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==", + "license": "MIT", "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "node_modules/util": { @@ -29714,8 +29751,8 @@ "version": "7.2.9", "license": "MIT", "dependencies": { - "@react-aria/toast": "^3.0.0-beta.12", - "@react-stately/toast": "3.0.0-beta.4", + "@react-aria/toast": "^3.0.0-beta.18", + "@react-stately/toast": "3.0.0-beta.7", "@spark-ui/icon": "^7.2.9", "@spark-ui/icon-button": "^7.2.9", "@spark-ui/icons": "^7.2.9", @@ -29729,40 +29766,6 @@ "tailwindcss": "^3.0.0" } }, - "packages/components/snackbar/node_modules/@react-aria/landmark": { - "version": "3.0.0-beta.12", - "resolved": "https://registry.npmjs.org/@react-aria/landmark/-/landmark-3.0.0-beta.12.tgz", - "integrity": "sha512-xCAYw0cxn115ZaTXyGXALW2Jebm56s7oX/R0/REubiHwkuDSRxRnYXbaaHxGXNsJWex5LGIZbUYaumGjGrzOnw==", - "license": "Apache-2.0", - "dependencies": { - "@react-aria/utils": "^3.24.1", - "@react-types/shared": "^3.23.1", - "@swc/helpers": "^0.5.0", - "use-sync-external-store": "^1.2.0" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" - } - }, - "packages/components/snackbar/node_modules/@react-aria/toast": { - "version": "3.0.0-beta.12", - "resolved": "https://registry.npmjs.org/@react-aria/toast/-/toast-3.0.0-beta.12.tgz", - "integrity": "sha512-cNchqcvK+WJ+CTMzXBk8GzlsqEUUtbyLxz4BUgKHzysac50uhpbjdYbb+5cKetEaU6/wJ75VECk35wiLYkc16w==", - "license": "Apache-2.0", - "dependencies": { - "@react-aria/i18n": "^3.11.1", - "@react-aria/interactions": "^3.21.3", - "@react-aria/landmark": "3.0.0-beta.12", - "@react-aria/utils": "^3.24.1", - "@react-stately/toast": "3.0.0-beta.4", - "@react-types/button": "^3.9.4", - "@react-types/shared": "^3.23.1", - "@swc/helpers": "^0.5.0" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" - } - }, "packages/components/spinner": { "name": "@spark-ui/spinner", "version": "7.2.9", diff --git a/packages/components/snackbar/package.json b/packages/components/snackbar/package.json index 8f3453c4b..36937696c 100644 --- a/packages/components/snackbar/package.json +++ b/packages/components/snackbar/package.json @@ -23,8 +23,8 @@ "build": "vite build" }, "dependencies": { - "@react-aria/toast": "^3.0.0-beta.12", - "@react-stately/toast": "3.0.0-beta.4", + "@react-aria/toast": "^3.0.0-beta.18", + "@react-stately/toast": "3.0.0-beta.7", "@spark-ui/icon": "^7.2.9", "@spark-ui/icon-button": "^7.2.9", "@spark-ui/icons": "^7.2.9", diff --git a/packages/components/snackbar/src/Snackbar.test.tsx b/packages/components/snackbar/src/Snackbar.test.tsx index 943110917..f90d29b2e 100644 --- a/packages/components/snackbar/src/Snackbar.test.tsx +++ b/packages/components/snackbar/src/Snackbar.test.tsx @@ -46,7 +46,7 @@ describe('Snackbar', () => { * onanimationend is not supported by `user-event` library, * and has to be triggered programmatically with `fireEvent`. */ - fireEvent.animationEnd(screen.getByRole('alert', { hidden: true })) + fireEvent.animationEnd(screen.getByRole('alertdialog', { hidden: true })) } it('should render a snackbar item when adding one to the queue', async () => {