From 3d4e8636eaebebad3cff5420a40d75d45fee14ce Mon Sep 17 00:00:00 2001 From: Prabhu Murthy Date: Mon, 21 Aug 2023 10:47:16 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Refactor=20useResize=20and=20useEff?= =?UTF-8?q?ect=20(#56)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coverage/clover.xml | 94 +++-- coverage/cobertura-coverage.xml | 94 +++-- .../components/controls/button.tsx.html | 2 +- .../components/controls/index.html | 2 +- .../components/icons/alert.tsx.html | 2 +- .../components/icons/chevron-down.tsx.html | 2 +- .../components/icons/chevron-left.tsx.html | 2 +- .../components/icons/chevron-right.tsx.html | 2 +- .../components/icons/chevron-up.tsx.html | 2 +- .../components/icons/close.tsx.html | 2 +- .../components/icons/default-screen.tsx.html | 2 +- .../components/icons/full-screen.tsx.html | 2 +- .../lcov-report/components/icons/index.html | 2 +- .../components/icons/index.ts.html | 2 +- .../components/icons/maximize.tsx.html | 2 +- .../components/icons/minimize.tsx.html | 2 +- .../components/icons/moon.tsx.html | 2 +- .../components/icons/resize.tsx.html | 2 +- .../components/icons/spinner.tsx.html | 2 +- .../lcov-report/components/icons/sun.tsx.html | 2 +- .../components/image/image.tsx.html | 2 +- .../lcov-report/components/image/index.html | 2 +- .../components/progress-bar/index.html | 2 +- .../progress-bar/progress-bar.tsx.html | 2 +- .../lcov-report/components/viewer/index.html | 2 +- .../components/viewer/viewer.tsx.html | 2 +- coverage/lcov-report/effects/index.html | 32 +- coverage/lcov-report/effects/useKey.ts.html | 170 +++++---- coverage/lcov-report/effects/useStyle.ts.html | 2 +- coverage/lcov-report/effects/useTheme.ts.html | 2 +- coverage/lcov-report/index.html | 30 +- coverage/lcov.info | 110 +++--- package.json | 14 +- pnpm-lock.yaml | 360 ++++++++---------- src/effects/__tests__/useKey.test.ts | 55 +++ src/effects/useKey.ts | 58 +-- src/effects/useResize.ts | 26 ++ 37 files changed, 614 insertions(+), 481 deletions(-) create mode 100644 src/effects/__tests__/useKey.test.ts diff --git a/coverage/clover.xml b/coverage/clover.xml index ee51436..1a8e16d 100644 --- a/coverage/clover.xml +++ b/coverage/clover.xml @@ -1,7 +1,7 @@ - - - + + + @@ -686,9 +686,9 @@ - + - + @@ -697,42 +697,54 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/coverage/cobertura-coverage.xml b/coverage/cobertura-coverage.xml index f90a6e4..c7a798d 100644 --- a/coverage/cobertura-coverage.xml +++ b/coverage/cobertura-coverage.xml @@ -1,6 +1,6 @@ - + C:/Users/prabh/Github/react-visual-grid @@ -860,13 +860,13 @@ - + - + - + - + @@ -879,42 +879,54 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/coverage/lcov-report/components/controls/button.tsx.html b/coverage/lcov-report/components/controls/button.tsx.html index 6a63682..1134cd5 100644 --- a/coverage/lcov-report/components/controls/button.tsx.html +++ b/coverage/lcov-report/components/controls/button.tsx.html @@ -262,7 +262,7 @@

All files / components/c