yet-another-react-lightbox 2.2.4 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,7 +52,7 @@ export const usePointerSwipe = (subscribeSensors, isSwipeValid, containerWidth,
52
52
  }
53
53
  const deltaX = event.clientX - pointer.clientX;
54
54
  const deltaY = event.clientY - pointer.clientY;
55
- if (!activePointer.current &&
55
+ if (activePointer.current === undefined &&
56
56
  isSwipeValid(deltaX) &&
57
57
  Math.abs(deltaX) > Math.abs(deltaY) &&
58
58
  Math.abs(deltaX) > 30) {
@@ -9,7 +9,7 @@ export const Video = ({ augment }) => {
9
9
  render: {
10
10
  slide: (slide, offset, rect) => {
11
11
  if (slide.type === "video") {
12
- return React.createElement(VideoSlide, { slide: slide, offset: offset });
12
+ return (React.createElement(VideoSlide, { key: `${slide.sources.map((source) => source.src).join(" ")}`, slide: slide, offset: offset }));
13
13
  }
14
14
  return renderSlide === null || renderSlide === void 0 ? void 0 : renderSlide(slide, offset, rect);
15
15
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yet-another-react-lightbox",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "Modern React lightbox component",
5
5
  "author": "Igor Danchenko",
6
6
  "license": "MIT",
@@ -90,36 +90,36 @@
90
90
  "react-dom": ">=16.8.0"
91
91
  },
92
92
  "devDependencies": {
93
- "@commitlint/cli": "^17.3.0",
94
- "@commitlint/config-conventional": "^17.3.0",
93
+ "@commitlint/cli": "^17.4.0",
94
+ "@commitlint/config-conventional": "^17.4.0",
95
95
  "@semantic-release/changelog": "^6.0.2",
96
96
  "@semantic-release/github": "^8.0.7",
97
97
  "@testing-library/jest-dom": "^5.16.5",
98
98
  "@testing-library/react": "^13.4.0",
99
99
  "@testing-library/user-event": "^14.4.3",
100
- "@types/jest": "^29.2.4",
100
+ "@types/jest": "^29.2.5",
101
101
  "@types/react": "^18.0.26",
102
102
  "@types/react-dom": "^18.0.10",
103
- "@typescript-eslint/eslint-plugin": "^5.47.0",
104
- "@typescript-eslint/parser": "^5.47.0",
103
+ "@typescript-eslint/eslint-plugin": "^5.48.0",
104
+ "@typescript-eslint/parser": "^5.48.0",
105
105
  "autoprefixer": "^10.4.13",
106
- "eslint": "^8.30.0",
106
+ "eslint": "^8.31.0",
107
107
  "eslint-config-airbnb": "^19.0.4",
108
108
  "eslint-config-airbnb-typescript": "^17.0.0",
109
- "eslint-config-prettier": "^8.5.0",
109
+ "eslint-config-prettier": "^8.6.0",
110
110
  "eslint-plugin-import": "^2.26.0",
111
111
  "eslint-plugin-jsx-a11y": "^6.6.1",
112
112
  "eslint-plugin-prettier": "^4.2.1",
113
113
  "eslint-plugin-react": "^7.31.11",
114
114
  "eslint-plugin-react-hooks": "^4.6.0",
115
- "husky": "^8.0.2",
115
+ "husky": "^8.0.3",
116
116
  "jest": "^29.3.1",
117
117
  "jest-environment-jsdom": "^29.3.1",
118
118
  "lint-staged": "^13.1.0",
119
119
  "npm-run-all": "^4.1.5",
120
- "postcss": "^8.4.20",
120
+ "postcss": "^8.4.21",
121
121
  "postcss-cli": "^10.1.0",
122
- "prettier": "^2.8.1",
122
+ "prettier": "^2.8.2",
123
123
  "react": "^18.2.0",
124
124
  "react-dom": "^18.2.0",
125
125
  "rimraf": "^3.0.2",