From 68a390ef599b516e35cfe8463a77b93cb6cb72f7 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 e70dcc3c..33a3dbe7 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.4.0", + "react-intersection-observer": "9.13.1", "react-select": "5.9.0", "styled-components": "6.1.13", "y-protocols": "1.0.6", diff --git a/src/frontend/yarn.lock b/src/frontend/yarn.lock index f44320b6..73f90acf 100644 --- a/src/frontend/yarn.lock +++ b/src/frontend/yarn.lock @@ -11249,6 +11249,11 @@ react-icons@^5.2.1: resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-5.4.0.tgz#443000f6e5123ee1b21ea8c0a716f6e7797f7416" integrity sha512-7eltJxgVt7X64oHh6wSWNwwbKTCtMfK35hcjvJS0yxEAhPM8oUKdS3+kqaW1vicIltw+kR2unHaa12S9pPALoQ== +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"