Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: igordanchenko/yet-another-react-lightbox
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.21.7
Choose a base ref
...
head repository: igordanchenko/yet-another-react-lightbox
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.21.8
Choose a head ref
  • 7 commits
  • 45 files changed
  • 1 contributor

Commits on Jan 30, 2025

  1. Verified

    This commit was signed with the committer’s verified signature.
    igordanchenko Igor Danchenko
    Copy the full SHA
    88fce1a View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    igordanchenko Igor Danchenko
    Copy the full SHA
    d1146a3 View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    igordanchenko Igor Danchenko
    Copy the full SHA
    7a9cc35 View commit details
  4. chore: upgrade to eslint@9

    igordanchenko committed Jan 30, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    igordanchenko Igor Danchenko
    Copy the full SHA
    9c3f8e6 View commit details

Commits on Feb 4, 2025

  1. chore: update dev dependencies

    igordanchenko committed Feb 4, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    igordanchenko Igor Danchenko
    Copy the full SHA
    c6b7648 View commit details

Commits on Mar 12, 2025

  1. Verified

    This commit was signed with the committer’s verified signature.
    igordanchenko Igor Danchenko
    Copy the full SHA
    fe95c0b View commit details
  2. fix: prevent zoom buttons from interrupting slideshow playback (fix #331

    )
    igordanchenko committed Mar 12, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    igordanchenko Igor Danchenko
    Copy the full SHA
    5e146a3 View commit details
Showing with 2,960 additions and 2,907 deletions.
  1. +0 −14 .eslintrc.json
  2. +1 −1 .lintstagedrc.json
  3. +0 −1 dev/vite.config.ts
  4. +42 −0 eslint.config.js
  5. +0 −2 fixup-dist.js
  6. +2,799 −2,774 package-lock.json
  7. +48 −41 package.json
  8. +0 −1 rollup.config.js
  9. +0 −1 src/components/Icons.tsx
  10. +1 −1 src/components/ImageSlide.tsx
  11. +2 −1 src/components/LightboxRoot.tsx
  12. +1 −1 src/contexts/DocumentContext.tsx
  13. +2 −3 src/hooks/useAnimation.ts
  14. +2 −2 src/hooks/useContainerRect.ts
  15. +1 −1 src/hooks/useDelay.ts
  16. +0 −1 src/hooks/useForkRef.ts
  17. +1 −1 src/hooks/useLoseFocus.ts
  18. +3 −3 src/hooks/useThrottle.ts
  19. +1 −1 src/modules/Carousel.tsx
  20. +2 −2 src/modules/Controller/Controller.tsx
  21. +1 −1 src/modules/Controller/usePointerSwipe.ts
  22. +1 −1 src/modules/Controller/usePreventWheelDefaults.ts
  23. +3 −3 src/modules/Controller/useWheelSwipe.ts
  24. +1 −1 src/modules/Portal.tsx
  25. +1 −4 src/plugins/captions/Description.tsx
  26. +2 −3 src/plugins/download/FileSaver.ts
  27. +3 −3 src/plugins/fullscreen/FullscreenContext.tsx
  28. +2 −2 src/plugins/slideshow/SlideshowContext.tsx
  29. +1 −1 src/plugins/thumbnails/ThumbnailsContext.tsx
  30. +1 −1 src/plugins/thumbnails/ThumbnailsTrack.tsx
  31. +1 −1 src/plugins/video/VideoSlide.tsx
  32. +2 −0 src/plugins/zoom/ResponsiveImage.tsx
  33. +1 −1 src/plugins/zoom/ZoomButtonsGroup.tsx
  34. +1 −1 src/plugins/zoom/ZoomController.tsx
  35. +3 −3 src/plugins/zoom/hooks/useZoomAnimation.ts
  36. +2 −2 src/plugins/zoom/hooks/useZoomSensors.ts
  37. +1 −1 src/plugins/zoom/hooks/useZoomState.ts
  38. +8 −3 src/types.ts
  39. +2 −2 src/utils.ts
  40. +0 −2 test/types/index.js
  41. +1 −1 test/types/src/App.tsx
  42. +11 −9 test/unit/core/utils.spec.ts
  43. +4 −6 test/unit/plugins/Fullscreen.spec.ts
  44. +1 −2 test/unit/plugins/Thumbnails.spec.ts
  45. +0 −1 vitest.config.ts
14 changes: 0 additions & 14 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
"*.{js,cjs,mjs,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
"*.{md,json}": ["prettier --write"]
}
1 change: 0 additions & 1 deletion dev/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies */
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

42 changes: 42 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import globals from "globals";
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintPluginReact from "eslint-plugin-react";
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
import eslintPluginJsxA11y from "eslint-plugin-jsx-a11y";
import eslintConfigPrettier from "eslint-config-prettier";

export default tseslint.config(
{ ignores: ["coverage", "**/dist"] },
eslint.configs.recommended,
tseslint.configs.recommended,
eslintPluginReact.configs.flat.recommended,
// eslintPluginReact.configs.flat["jsx-runtime"],
eslintPluginJsxA11y.flatConfigs.recommended,
eslintConfigPrettier,
{
settings: { react: { version: "detect" } },
languageOptions: { globals: globals.browser },
plugins: { "react-hooks": eslintPluginReactHooks },
rules: {
"no-console": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "all",
argsIgnorePattern: "^_",
caughtErrors: "all",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
...eslintPluginReactHooks.configs.recommended.rules,
},
},
{
files: ["fixup-dist.js"],
languageOptions: { globals: globals.node },
},
);
2 changes: 0 additions & 2 deletions fixup-dist.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies */

import os from "os";
import fs from "fs";
import path from "path";
Loading