@szhsin/react-menu
Advanced tools
Comparing version 4.2.2 to 4.2.3
@@ -8,5 +8,5 @@ import { forwardRef, useRef, useCallback, useImperativeHandle, Fragment, cloneElement } from 'react'; | ||
import { useCombinedRef } from '../hooks/useCombinedRef.js'; | ||
import { safeCall, mergeProps, getName, isMenuOpen } from '../utils/utils.js'; | ||
import { useMenuChange } from '../hooks/useMenuChange.js'; | ||
import { rootMenuPropTypes, uncontrolledMenuPropTypes } from '../utils/propTypes.js'; | ||
import { safeCall, mergeProps, getName, isMenuOpen } from '../utils/utils.js'; | ||
import { FocusPositions, Keys } from '../utils/constants.js'; | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "@szhsin/react-menu", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"description": "React component for building accessible menu, dropdown, submenu, context menu and more.", | ||
@@ -29,3 +29,3 @@ "author": "Zheng Song", | ||
"start": "run-p \"css -- --watch\" watch", | ||
"build": "run-s clean pret lint css bundle", | ||
"build": "run-s pret clean lint types css bundle", | ||
"test": "jest", | ||
@@ -38,4 +38,3 @@ "test:watch": "jest --watch --verbose", | ||
"pret:fix": "prettier -w .", | ||
"types": "dtslint --localTs node_modules/typescript/lib types", | ||
"tsc": "cd types && tsc", | ||
"types": "cd types && tsc", | ||
"eg": "npm run dev --prefix example" | ||
@@ -49,33 +48,39 @@ }, | ||
"prop-types": "^15.7.2", | ||
"react-transition-state": "^2.1.0" | ||
"react-transition-state": "^2.1.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.24.7", | ||
"@babel/preset-env": "^7.24.7", | ||
"@babel/preset-react": "^7.24.1", | ||
"@babel/core": "^7.25.8", | ||
"@babel/preset-env": "^7.25.4", | ||
"@babel/preset-react": "^7.25.9", | ||
"@eslint/compat": "^1.1.1", | ||
"@rollup/plugin-babel": "^6.0.4", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@testing-library/jest-dom": "^6.4.6", | ||
"@testing-library/react": "^16.0.0", | ||
"@types/jest": "^29.5.12", | ||
"@types/react": "^18.3.3", | ||
"@rollup/plugin-node-resolve": "^15.3.0", | ||
"@testing-library/jest-dom": "^6.5.0", | ||
"@testing-library/react": "^16.0.1", | ||
"@types/jest": "^29.5.13", | ||
"@types/react": "^18.3.11", | ||
"babel-plugin-pure-annotations": "^0.1.2", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24", | ||
"dtslint": "^4.2.1", | ||
"eslint": "^8.57.0", | ||
"eslint": "^9.12.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-jest": "^27.9.0", | ||
"eslint-plugin-react": "^7.35.0", | ||
"eslint-plugin-jest": "^28.8.3", | ||
"eslint-plugin-react": "^7.37.1", | ||
"eslint-plugin-react-hooks": "^4.6.2", | ||
"eslint-plugin-react-hooks-addons": "^0.3.1", | ||
"eslint-plugin-react-hooks-addons": "^0.4.0", | ||
"globals": "^15.9.0", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^3.3.2", | ||
"prettier": "^3.3.3", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"rollup": "^4.18.0", | ||
"sass": "^1.77.6", | ||
"typescript": "^5.5.3" | ||
"rollup": "^4.24.0", | ||
"sass": "^1.80.3", | ||
"typescript": "^5.6.3" | ||
}, | ||
"overrides": { | ||
"eslint-plugin-react-hooks": { | ||
"eslint": "$eslint" | ||
} | ||
}, | ||
"keywords": [ | ||
@@ -82,0 +87,0 @@ "react", |
@@ -533,2 +533,3 @@ import React = require('react'); | ||
target?: string; | ||
download?: string; | ||
/** | ||
@@ -535,0 +536,0 @@ * Set this prop to make the item a checkbox or radio menu item. |
162913
5208
28