@wethegit/react-gallery
Advanced tools
Comparing version 0.0.1 to 1.0.0
{ | ||
"name": "@wethegit/react-gallery", | ||
"version": "0.0.1", | ||
"version": "1.0.0", | ||
"description": "A customizable, accessible gallery component for React projects.", | ||
"main": "dist/main.mjs", | ||
"files": [ | ||
"dist" | ||
], | ||
"style": "dist/style.css", | ||
"css": "dist/style.css", | ||
"type": "module", | ||
"main": "./dist/react-gallery.umd.cjs", | ||
"module": "./dist/react-gallery.js", | ||
"exports": { | ||
".": { | ||
"import": "./dist/react-gallery.js", | ||
"require": "./dist/react-gallery.umd.cjs" | ||
}, | ||
"./style.css": "./dist/style.css" | ||
}, | ||
"scripts": { | ||
"build": "webpack --config ./webpack.config.js --mode production" | ||
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"", | ||
"dev": "vite", | ||
"build": "npm run lint:scripts && npm run lint:styles && vite build", | ||
"lint:scripts": "eslint --fix --ext .jsx,js --ignore-path .gitignore .", | ||
"lint:styles": "stylelint src/**/*.{css,scss}" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx}": "eslint --fix", | ||
"*.{css,scss}": "stylelint --fix", | ||
"*": "prettier -w -u" | ||
}, | ||
"keywords": [ | ||
@@ -26,27 +57,31 @@ "react", | ||
"devDependencies": { | ||
"@babel/core": "~7.19.0", | ||
"@babel/plugin-transform-modules-commonjs": "^7.20.11", | ||
"@babel/preset-env": "~7.19.0", | ||
"@babel/preset-react": "~7.18.6", | ||
"babel-loader": "~8.2.5", | ||
"css-loader": "~6.7.3", | ||
"eslint": "~8.8.0", | ||
"@types/react": "^18.0.28", | ||
"@types/react-dom": "^18.0.11", | ||
"@vitejs/plugin-react-swc": "^3.0.0", | ||
"eslint": "^8.38.0", | ||
"eslint-config-prettier": "~8.3.0", | ||
"eslint-plugin-react": "^7.32.2", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"mini-css-extract-plugin": "~2.7.2", | ||
"sass": "~1.49.7", | ||
"sass-loader": "~13.2.0", | ||
"stylelint": "~14.5.1", | ||
"stylelint-config-standard-scss": "~3.0.0", | ||
"stylelint-order": "~5.0.0", | ||
"webpack": "~5.74.0", | ||
"webpack-cli": "~4.10.0" | ||
"eslint-plugin-react-refresh": "^0.3.4", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.2.2", | ||
"postcss": "^8.4.23", | ||
"prettier": "^2.8.8", | ||
"stylelint": "^15.6.2", | ||
"stylelint-config-recommended": "^12.0.0", | ||
"stylelint-config-standard": "^33.0.0", | ||
"stylelint-config-standard-scss": "^9.0.0", | ||
"stylelint-order": "^6.0.3", | ||
"stylelint-selector-bem-pattern": "^2.1.1", | ||
"vite": "^4.3.2" | ||
}, | ||
"peerDependencies": { | ||
"react": "17.0.2" | ||
"react": "17.0.2", | ||
"react-dom": "^17.0.2" | ||
}, | ||
"dependencies": { | ||
"@wethegit/react-hooks": "~0.0.8", | ||
"prop-types": "~15.8.1" | ||
"prop-types": "~15.8.1", | ||
"react": "17.0.2", | ||
"react-dom": "^17.0.2" | ||
} | ||
} |
@@ -306,8 +306,8 @@ # @wethegit/react-gallery | ||
const GalleryInfo = () => { | ||
const { activeIndex, previousIndex, loop } = useGallery() | ||
const { activeIndex, previouslyActiveIndex, loop } = useGallery() | ||
return ( | ||
<p> | ||
The gallery's current index is {activeIndex}, its last index was {previousIndex}, | ||
and its <code>loop</code> prop is set to {loop}! | ||
The gallery's current index is {activeIndex}, its last index was {previouslyActiveIndex}, | ||
and its <code>loop</code> prop is set to {String(loop)}! | ||
</p> | ||
@@ -314,0 +314,0 @@ ) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
Yes
31818
5
19
3
0
1
+ Addedreact@17.0.2
+ Addedreact-dom@^17.0.2
+ Addedreact-dom@17.0.2(transitive)
+ Addedscheduler@0.20.2(transitive)
- Removed@wethegit/react-hooks@~0.0.8
- Removed@wethegit/react-hooks@0.0.8(transitive)