focus-trap-react
Advanced tools
Comparing version 10.1.1 to 10.1.2
# Changelog | ||
## 10.1.2 | ||
### Patch Changes | ||
- ada0709: Bump focus-trap to v7.4.1 and tabbable to v6.1.2 for nwsapi patch ([#986](https://github.com/focus-trap/focus-trap-react/issues/986)). | ||
## 10.1.1 | ||
@@ -4,0 +10,0 @@ |
@@ -30,2 +30,15 @@ "use strict"; | ||
_this = _super.call(this, props); | ||
/** | ||
* Gets the node for the given option, which is expected to be an option that | ||
* can be either a DOM node, a string that is a selector to get a node, `false` | ||
* (if a node is explicitly NOT given), or a function that returns any of these | ||
* values. | ||
* @param {string} optionName | ||
* @returns {undefined | false | HTMLElement | SVGElement} Returns | ||
* `undefined` if the option is not specified; `false` if the option | ||
* resolved to `false` (node explicitly not given); otherwise, the resolved | ||
* DOM node. | ||
* @throws {Error} If the option is set, not `false`, and is not, or does not | ||
* resolve to a node. | ||
*/ | ||
_defineProperty(_assertThisInitialized(_this), "getNodeForOption", function (optionName) { | ||
@@ -143,16 +156,2 @@ var _this$internalOptions; | ||
} | ||
/** | ||
* Gets the node for the given option, which is expected to be an option that | ||
* can be either a DOM node, a string that is a selector to get a node, `false` | ||
* (if a node is explicitly NOT given), or a function that returns any of these | ||
* values. | ||
* @param {string} optionName | ||
* @returns {undefined | false | HTMLElement | SVGElement} Returns | ||
* `undefined` if the option is not specified; `false` if the option | ||
* resolved to `false` (node explicitly not given); otherwise, the resolved | ||
* DOM node. | ||
* @throws {Error} If the option is set, not `false`, and is not, or does not | ||
* resolve to a node. | ||
*/ | ||
}, { | ||
@@ -159,0 +158,0 @@ key: "getReturnFocusNode", |
{ | ||
"name": "focus-trap-react", | ||
"version": "10.1.1", | ||
"version": "10.1.2", | ||
"description": "A React component that traps focus.", | ||
@@ -18,3 +18,3 @@ "main": "dist/focus-trap-react.js", | ||
"demo-bundle": "NODE_ENV=production browserify demo/js -t babelify --extension=.jsx -o demo/demo-bundle.js", | ||
"start": "yarn build && NODE_ENV=development budo demo/js/index.js:demo-bundle.js --dir demo --live -- -t babelify --extension=.jsx", | ||
"start": "npm run build && NODE_ENV=development budo demo/js/index.js:demo-bundle.js --dir demo --live -- -t babelify --extension=.jsx", | ||
"lint": "eslint \"*.js\" \"src/**/*.js\" \"test/**/*.js\" \"demo/**/*.js\" \"cypress/**/*.js\"", | ||
@@ -29,8 +29,8 @@ "format": "prettier --write \"{*,src/**/*,test/**/*,demo/js/**/*,.github/workflows/*,cypress/**/*}.+(js|yml)\"", | ||
"test:e2e": "ELECTRON_ENABLE_LOGGING=1 start-server-and-test start 9966 'cypress run --browser $CYPRESS_BROWSER --headless'", | ||
"test:e2e:chrome": "CYPRESS_BROWSER=chrome yarn test:e2e", | ||
"test:e2e:chrome": "CYPRESS_BROWSER=chrome npm run test:e2e", | ||
"test:e2e:dev": "ELECTRON_ENABLE_LOGGING=1 start-server-and-test start 9966 'cypress open'", | ||
"test": "yarn format:check && yarn lint && yarn test:unit && yarn test:types && yarn test:e2e:chrome", | ||
"prepare": "yarn build", | ||
"prepublishOnly": "yarn test && yarn build", | ||
"release": "yarn build && changeset publish" | ||
"test": "npm run format:check && npm run lint && npm run test:unit && npm run test:types && npm run test:e2e:chrome", | ||
"prepare": "npm run build", | ||
"prepublishOnly": "npm run test && npm run build", | ||
"release": "npm run build && changeset publish" | ||
}, | ||
@@ -62,11 +62,11 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/cli": "^7.20.7", | ||
"@babel/core": "^7.20.12", | ||
"@babel/eslint-parser": "^7.19.1", | ||
"@babel/cli": "^7.21.5", | ||
"@babel/core": "^7.21.8", | ||
"@babel/eslint-parser": "^7.21.8", | ||
"@babel/plugin-proposal-class-properties": "^7.18.6", | ||
"@babel/preset-env": "^7.20.2", | ||
"@babel/preset-env": "^7.21.5", | ||
"@babel/preset-react": "^7.18.6", | ||
"@changesets/cli": "^2.26.0", | ||
"@changesets/cli": "^2.26.1", | ||
"@testing-library/cypress": "^9.0.0", | ||
"@testing-library/dom": "^9.0.0", | ||
"@testing-library/dom": "^9.2.0", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
@@ -76,3 +76,3 @@ "@testing-library/react": "^14.0.0", | ||
"@types/jquery": "^3.5.16", | ||
"all-contributors-cli": "^6.24.0", | ||
"all-contributors-cli": "^6.25.0", | ||
"babel-jest": "^29.5.0", | ||
@@ -82,7 +82,7 @@ "babelify": "^10.0.0", | ||
"budo": "^11.8.4", | ||
"cypress": "^12.7.0", | ||
"cypress": "^12.12.0", | ||
"cypress-plugin-tab": "^1.0.5", | ||
"eslint": "^8.35.0", | ||
"eslint-config-prettier": "^8.7.0", | ||
"eslint-plugin-cypress": "^2.12.1", | ||
"eslint": "^8.40.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-cypress": "^2.13.3", | ||
"eslint-plugin-jest": "^27.2.1", | ||
@@ -94,3 +94,3 @@ "eslint-plugin-react": "^7.32.2", | ||
"onchange": "^7.1.0", | ||
"prettier": "^2.8.4", | ||
"prettier": "^2.8.8", | ||
"prop-types": "^15.8.1", | ||
@@ -101,7 +101,7 @@ "react": "^18.2.0", | ||
"start-server-and-test": "^2.0.0", | ||
"typescript": "^4.9.5" | ||
"typescript": "^5.0.4" | ||
}, | ||
"dependencies": { | ||
"focus-trap": "^7.4.0", | ||
"tabbable": "^6.1.1" | ||
"focus-trap": "^7.4.1", | ||
"tabbable": "^6.1.2" | ||
}, | ||
@@ -108,0 +108,0 @@ "peerDependencies": { |
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
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
90768
Updatedfocus-trap@^7.4.1
Updatedtabbable@^6.1.2