Socket
Socket
Sign inDemoInstall

focus-trap-react

Package Overview
Dependencies
Maintainers
5
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focus-trap-react - npm Package Compare versions

Comparing version 10.0.1 to 10.0.2

6

CHANGELOG.md
# Changelog
## 10.0.2
### Patch Changes
- 0c98e74: Add missing trapStack option from focus-trap 7.1.0, add new isKeyForward and isKeyBackward options from focus-trap 7.2.0, bump focus-trap to 7.2.0.
## 10.0.1

@@ -4,0 +10,0 @@

11

dist/focus-trap-react.js

@@ -5,3 +5,3 @@ "use strict";

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

@@ -15,3 +15,5 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var React = require('react');

@@ -425,3 +427,6 @@ var PropTypes = require('prop-types');

getShadowRoot: PropTypes.oneOfType([PropTypes.bool, PropTypes.func])
})
}),
trapStack: PropTypes.array,
isKeyForward: PropTypes.func,
isKeyBackward: PropTypes.func
}),

@@ -428,0 +433,0 @@ containerElements: PropTypes.arrayOf(PropTypes.instanceOf(ElementType)),

{
"name": "focus-trap-react",
"version": "10.0.1",
"version": "10.0.2",
"description": "A React component that traps focus.",

@@ -61,3 +61,3 @@ "main": "dist/focus-trap-react.js",

"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.2",
"@babel/core": "^7.20.5",
"@babel/eslint-parser": "^7.19.1",

@@ -79,18 +79,18 @@ "@babel/plugin-proposal-class-properties": "^7.18.6",

"budo": "^11.8.4",
"cypress": "^10.11.0",
"cypress": "^11.2.0",
"cypress-plugin-tab": "^1.0.5",
"eslint": "^8.27.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-jest": "^27.1.5",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-react": "^7.31.11",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-watch-typeahead": "^2.2.0",
"jest-watch-typeahead": "^2.2.1",
"onchange": "^7.1.0",
"prettier": "^2.7.1",
"prettier": "^2.8.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"regenerator-runtime": "^0.13.10",
"regenerator-runtime": "^0.13.11",
"start-server-and-test": "^1.14.0",

@@ -100,3 +100,3 @@ "typescript": "^4.9.3"

"dependencies": {
"focus-trap": "^7.1.0",
"focus-trap": "^7.2.0",
"tabbable": "^6.0.1"

@@ -103,0 +103,0 @@ },

@@ -464,2 +464,5 @@ const React = require('react');

}),
trapStack: PropTypes.array,
isKeyForward: PropTypes.func,
isKeyBackward: PropTypes.func,
}),

@@ -466,0 +469,0 @@ containerElements: PropTypes.arrayOf(PropTypes.instanceOf(ElementType)), // DOM element ONLY

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc