From 2ef1d371aea23fcb371336c59eecb6833c878fcc Mon Sep 17 00:00:00 2001 From: Nathan Panchout Date: Tue, 19 Nov 2024 15:56:06 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9E=95(frontend)=20add=20react-intersection-?= =?UTF-8?q?observer=20package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Install `react-intersection-observer` to manage element visibility detection. - Enables features like lazy loading, animations on scroll, and triggering events when elements appear in the viewport. --- src/frontend/apps/impress/package.json | 1 + src/frontend/yarn.lock | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/frontend/apps/impress/package.json b/src/frontend/apps/impress/package.json index 7cdb3941e..e58391435 100644 --- a/src/frontend/apps/impress/package.json +++ b/src/frontend/apps/impress/package.json @@ -34,6 +34,7 @@ "react-aria-components": "1.5.0", "react-dom": "*", "react-i18next": "15.1.1", + "react-intersection-observer": "9.13.1", "react-select": "5.8.3", "styled-components": "6.1.13", "y-protocols": "1.0.6", diff --git a/src/frontend/yarn.lock b/src/frontend/yarn.lock index 357288ed3..070c84d8f 100644 --- a/src/frontend/yarn.lock +++ b/src/frontend/yarn.lock @@ -10713,6 +10713,11 @@ react-icons@^5.2.1: resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-5.3.0.tgz#ccad07a30aebd40a89f8cfa7d82e466019203f1c" integrity sha512-DnUk8aFbTyQPSkCfF8dbX6kQjXA9DktMeJqfjrg6cK9vwQVMxmcA3BfP4QoiztVmEHtwlTgLFsPuH2NskKT6eg== +react-intersection-observer@9.13.1: + version "9.13.1" + resolved "https://registry.yarnpkg.com/react-intersection-observer/-/react-intersection-observer-9.13.1.tgz#6c61a75801162491c6348bad09967f2caf445584" + integrity sha512-tSzDaTy0qwNPLJHg8XZhlyHTgGW6drFKTtvjdL+p6um12rcnp8Z5XstE+QNBJ7c64n5o0Lj4ilUleA41bmDoMw== + react-is@18.2.0: version "18.2.0" resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b"