Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,709 changes: 960 additions & 749 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wethegit/react-gallery",
"version": "4.0.1",
"version": "4.0.2",
"description": "A customizable, accessible gallery component for React projects.",
"files": [
"dist"
Expand Down Expand Up @@ -55,8 +55,8 @@
"author": "Andrew Rubin <andrew@wethecollective.com> (https://wethecollective.com)",
"license": "MIT",
"devDependencies": {
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@types/react": "~19.0.12",
"@types/react-dom": "~19.0.4",
"@vitejs/plugin-react-swc": "^3.0.0",
"eslint": "^8.5.7",
"eslint-config-prettier": "~9.1.0",
Expand All @@ -67,8 +67,8 @@
"lint-staged": "^15.2.2",
"postcss": "^8.4.23",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "~19.1.0",
"react-dom": "~19.1.0",
"stylelint": "^15.6.2",
"stylelint-config-recommended": "^13.0.0",
"stylelint-config-standard": "^34.0.0",
Expand All @@ -78,7 +78,7 @@
"vite": "^5.2.11"
},
"peerDependencies": {
"react": "17 - 18",
"react-dom": "17 - 18"
"react": "17 - 19",
"react-dom": "17 - 19"
}
}
2 changes: 2 additions & 0 deletions src/lib/components/gallery-context.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client"

import { createContext, useCallback, useRef, useState, useEffect } from "react"

import classnames from "../utils/classnames"
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/gallery-item.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client"

import { useGallery } from "../hooks/use-gallery"
import classnames from "../utils/classnames"

Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/gallery-main.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client"

import { useCallback } from "react"

import { useGallery } from "../hooks/use-gallery"
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/gallery-nav.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client"

import { useGallery } from "../hooks/use-gallery"
import classnames from "../utils/classnames"

Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/gallery-pagination-item.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client"

import { useGallery } from "../hooks/use-gallery"
import classnames from "../utils/classnames"

Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/gallery-pagination.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use client"

import { useGallery } from "../hooks/use-gallery"
import classnames from "../utils/classnames"

Expand Down
1 change: 1 addition & 0 deletions src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react"
import ReactDOM from "react-dom/client"

import {
Gallery,
GalleryMain,
Expand Down