From a90462b2944c69433d4275b9b6642e1ff00b7bea Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 27 Dec 2024 05:15:37 +0000 Subject: [PATCH 1/3] fix: upgrade @floating-ui/react from 0.26.28 to 0.27.0 Snyk has created this PR to upgrade @floating-ui/react from 0.26.28 to 0.27.0. See this package in npm: @floating-ui/react See this project in Snyk: https://app.snyk.io/org/heappurple-team/project/d04cf49e-d1e1-4511-960d-80bb2d316b1e?utm_source=github&utm_medium=referral&page=upgrade-pr --- packages/eds-core-react/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eds-core-react/package.json b/packages/eds-core-react/package.json index d3d502b5cf..1976042eef 100644 --- a/packages/eds-core-react/package.json +++ b/packages/eds-core-react/package.json @@ -91,7 +91,7 @@ "@equinor/eds-icons": "workspace:^", "@equinor/eds-tokens": "workspace:*", "@equinor/eds-utils": "workspace:*", - "@floating-ui/react": "^0.26.22", + "@floating-ui/react": "^0.27.0", "@internationalized/date": "^3.5.5", "@react-aria/utils": "^3.25.1", "@react-stately/calendar": "^3.5.3", From a0a1eb43250df9b2312bdefdb126fa528e6fdc65 Mon Sep 17 00:00:00 2001 From: oddvernes Date: Thu, 2 Jan 2025 13:12:11 +0100 Subject: [PATCH 2/3] update floating-ui properly --- packages/eds-core-react/package.json | 2 +- pnpm-lock.yaml | 77 ++++++++++++++++++---------- 2 files changed, 52 insertions(+), 27 deletions(-) diff --git a/packages/eds-core-react/package.json b/packages/eds-core-react/package.json index 1976042eef..ad490f7bcf 100644 --- a/packages/eds-core-react/package.json +++ b/packages/eds-core-react/package.json @@ -91,7 +91,7 @@ "@equinor/eds-icons": "workspace:^", "@equinor/eds-tokens": "workspace:*", "@equinor/eds-utils": "workspace:*", - "@floating-ui/react": "^0.27.0", + "@floating-ui/react": "^0.27.2", "@internationalized/date": "^3.5.5", "@react-aria/utils": "^3.25.1", "@react-stately/calendar": "^3.5.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1c5e56a397..044ce52d57 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -96,8 +96,8 @@ importers: specifier: workspace:* version: link:../eds-utils '@floating-ui/react': - specifier: ^0.26.22 - version: 0.26.22(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^0.27.2 + version: 0.27.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@internationalized/date': specifier: ^3.5.5 version: 3.5.5 @@ -1823,26 +1823,32 @@ packages: '@figma/rest-api-spec@0.16.0': resolution: {integrity: sha512-J/u7LIHGIKpm9jcJpoAcfUAEfgtuWTtNgIS94mhfdie3p1tgJSZxrJMQxg8u4V7T7SKMpjlqtMr1LwkWf1iC/A==} - '@floating-ui/core@1.6.7': - resolution: {integrity: sha512-yDzVT/Lm101nQ5TCVeK65LtdN7Tj4Qpr9RTXJ2vPFLqtLxwOrpoxAHAJI8J3yYWUc40J0BDBheaitK5SJmno2g==} + '@floating-ui/core@1.6.8': + resolution: {integrity: sha512-7XJ9cPU+yI2QeLS+FCSlqNFZJq8arvswefkZrYI1yQBbftw6FyrZOxYSh+9S7z7TpeWlRt9zJ5IhM1WIL334jA==} - '@floating-ui/dom@1.6.10': - resolution: {integrity: sha512-fskgCFv8J8OamCmyun8MfjB1Olfn+uZKjOKZ0vhYF3gRmEUXcGOjxWL8bBr7i4kIuPZ2KD2S3EUIOxnjC8kl2A==} + '@floating-ui/dom@1.6.12': + resolution: {integrity: sha512-NP83c0HjokcGVEMeoStg317VD9W7eDlGK7457dMBANbKA6GJZdc7rjujdgqzTaz93jkGgc5P/jeWbaCHnMNc+w==} - '@floating-ui/react-dom@2.1.1': - resolution: {integrity: sha512-4h84MJt3CHrtG18mGsXuLCHMrug49d7DFkU0RMIyshRveBeyV2hmV/pDaF2Uxtu8kgq5r46llp5E5FQiR0K2Yg==} + '@floating-ui/react-dom@2.1.2': + resolution: {integrity: sha512-06okr5cgPzMNBy+Ycse2A6udMi4bqwW/zgBF/rwjcNqWkyr82Mcg8b0vjX8OJpZFy/FKjJmw6wV7t44kK6kW7A==} peerDependencies: react: '>=16.8.0' react-dom: '>=16.8.0' - '@floating-ui/react@0.26.22': - resolution: {integrity: sha512-LNv4azPt8SpT4WW7Kku5JNVjLk2GcS0bGGjFTAgqOONRFo9r/aaGHHPpdiIuQbB1t8shmWyWqTTUDmZ9fcNshg==} + '@floating-ui/react@0.26.28': + resolution: {integrity: sha512-yORQuuAtVpiRjpMhdc0wJj06b9JFjrYF4qp96j++v2NBpbi6SEGF7donUJ3TMieerQ6qVkAv1tgr7L4r5roTqw==} peerDependencies: react: '>=16.8.0' react-dom: '>=16.8.0' - '@floating-ui/utils@0.2.7': - resolution: {integrity: sha512-X8R8Oj771YRl/w+c1HqAC1szL8zWQRwFvgDwT129k9ACdBoud/+/rX9V0qiMl6LWUdP9voC2nDVZYPMQQsb6eA==} + '@floating-ui/react@0.27.2': + resolution: {integrity: sha512-k/yP6a9K9QwhLfIu87iUZxCH6XN5z5j/VUHHq0dEnbZYY2Y9jz68E/LXFtK8dkiaYltS2WYohnyKC0VcwVneVg==} + peerDependencies: + react: '>=17.0.0' + react-dom: '>=17.0.0' + + '@floating-ui/utils@0.2.8': + resolution: {integrity: sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==} '@formatjs/ecma402-abstract@2.0.0': resolution: {integrity: sha512-rRqXOqdFmk7RYvj4khklyqzcfQl9vEL/usogncBHRZfZBDOwMGuSRNFl02fu5KGHXdbinju+YXyuR+Nk8xlr/g==} @@ -1975,6 +1981,10 @@ packages: resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} engines: {node: '>=6.0.0'} + '@jridgewell/gen-mapping@0.3.8': + resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} + engines: {node: '>=6.0.0'} + '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} @@ -8177,30 +8187,38 @@ snapshots: '@figma/rest-api-spec@0.16.0': {} - '@floating-ui/core@1.6.7': + '@floating-ui/core@1.6.8': dependencies: - '@floating-ui/utils': 0.2.7 + '@floating-ui/utils': 0.2.8 - '@floating-ui/dom@1.6.10': + '@floating-ui/dom@1.6.12': dependencies: - '@floating-ui/core': 1.6.7 - '@floating-ui/utils': 0.2.7 + '@floating-ui/core': 1.6.8 + '@floating-ui/utils': 0.2.8 + + '@floating-ui/react-dom@2.1.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + dependencies: + '@floating-ui/dom': 1.6.12 + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) - '@floating-ui/react-dom@2.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@floating-ui/react@0.26.28(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@floating-ui/dom': 1.6.10 + '@floating-ui/react-dom': 2.1.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@floating-ui/utils': 0.2.8 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) + tabbable: 6.2.0 - '@floating-ui/react@0.26.22(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@floating-ui/react@0.27.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@floating-ui/react-dom': 2.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@floating-ui/utils': 0.2.7 + '@floating-ui/react-dom': 2.1.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@floating-ui/utils': 0.2.8 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) tabbable: 6.2.0 - '@floating-ui/utils@0.2.7': {} + '@floating-ui/utils@0.2.8': {} '@formatjs/ecma402-abstract@2.0.0': dependencies: @@ -8497,13 +8515,20 @@ snapshots: '@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/trace-mapping': 0.3.25 + '@jridgewell/gen-mapping@0.3.8': + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + optional: true + '@jridgewell/resolve-uri@3.1.2': {} '@jridgewell/set-array@1.2.1': {} '@jridgewell/source-map@0.3.6': dependencies: - '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/gen-mapping': 0.3.8 '@jridgewell/trace-mapping': 0.3.25 optional: true @@ -10085,7 +10110,7 @@ snapshots: '@types/react-datepicker@6.2.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@floating-ui/react': 0.26.22(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@floating-ui/react': 0.26.28(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@types/react': 18.3.3 date-fns: 3.6.0 transitivePeerDependencies: @@ -13644,7 +13669,7 @@ snapshots: react-datepicker@6.2.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - '@floating-ui/react': 0.26.22(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@floating-ui/react': 0.26.28(react-dom@18.3.1(react@18.3.1))(react@18.3.1) classnames: 2.5.1 date-fns: 3.6.0 prop-types: 15.8.1 From 52a5100a9022de1b29081517ec9b893aad59882c Mon Sep 17 00:00:00 2001 From: oddvernes Date: Thu, 2 Jan 2025 13:16:40 +0100 Subject: [PATCH 3/3] update snapshot --- .../src/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eds-core-react/src/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap b/packages/eds-core-react/src/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap index 1c5f0ce70c..e76bb73cfc 100644 --- a/packages/eds-core-react/src/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap +++ b/packages/eds-core-react/src/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap @@ -52,6 +52,7 @@ exports[`Tooltip Matches snapshot 1`] = `