@kyper/a11y
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -1,6 +0,11 @@ | ||
# A11y Changelog | ||
## [1.1.0](https://gitlab.mx.com/mx/kyper-react/-/commits/@kyper/a11y@1.1.0) - 03-22-2022 | ||
## [1.0.0] - 12-08-2020 | ||
- **CHANGED** - Updated `portalTo` prop to accept DOM elements | ||
### Added | ||
- Initial FocusTrap implementation. | ||
## [1.0.2](https://gitlab.mx.com/mx/kyper-react/-/commits/@kyper/a11y@1.0.2) - 12-18-2020 | ||
- **CHANGED** - updated to a consistent file structure _NO ACTUAL COMPONENT CHANGES_ | ||
## [1.0.1](https://gitlab.mx.com/mx/kyper-react/-/commits/@kyper/a11y@1.0.1) - 12-11-2020 | ||
- **ADDED** - Initial release of `FocusTrap` component with `FocusTrapContext` and `FocusTrapProvider` |
@@ -13,3 +13,3 @@ import PropTypes from 'prop-types' | ||
*/ | ||
portalTo: PropTypes.string, | ||
portalTo: PropTypes.oneOfType([PropTypes.string, PropTypes.instanceOf(Element)]), | ||
} | ||
@@ -42,3 +42,3 @@ | ||
const { children, portalTo, ...rest } = this.props | ||
const portal = document.querySelector(portalTo) | ||
const portal = typeof portalTo === 'string' ? document.querySelector(portalTo) : portalTo | ||
@@ -45,0 +45,0 @@ if (portal) { |
{ | ||
"name": "@kyper/a11y", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Kyper a11y tools", | ||
@@ -32,3 +32,3 @@ "author": "MX", | ||
}, | ||
"gitHead": "f212a1c748ea0f68c46cdee1cea77f0dd77b3c3b" | ||
"gitHead": "7242890512c0d70900ffc412583a9793d9eff78e" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4934
0