@fortawesome/react-fontawesome
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -9,2 +9,10 @@ # Change Log | ||
## [0.1.10](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.10) - 2020-06-02 | ||
### Added | ||
- Support for forward ref #341 | ||
--- | ||
## [0.1.9](https://github.com/FortAwesome/react-fontawesome/releases/tag/0.1.9) - 2020-03-05 | ||
@@ -11,0 +19,0 @@ |
@@ -24,2 +24,3 @@ /// <reference types="react" /> | ||
export interface FontAwesomeIconProps extends BackwardCompatibleOmit<SVGAttributes<SVGSVGElement>, 'children' | 'mask' | 'transform'> { | ||
forwardedRef?: ((e: any) => void) | React.RefObject<any> | ||
icon: IconProp | ||
@@ -26,0 +27,0 @@ mask?: IconProp |
@@ -303,3 +303,6 @@ import { parse, icon } from '@fortawesome/fontawesome-svg-core'; | ||
function FontAwesomeIcon(props) { | ||
function FontAwesomeIcon(_ref) { | ||
var forwardedRef = _ref.forwardedRef, | ||
props = _objectWithoutProperties(_ref, ["forwardedRef"]); | ||
var iconArgs = props.icon, | ||
@@ -325,3 +328,5 @@ maskArgs = props.mask, | ||
var abstract = renderedIcon.abstract; | ||
var extraProps = {}; | ||
var extraProps = { | ||
ref: forwardedRef | ||
}; | ||
Object.keys(props).forEach(function (key) { | ||
@@ -328,0 +333,0 @@ // eslint-disable-next-line no-prototype-builtins |
@@ -308,3 +308,6 @@ (function (global, factory) { | ||
function FontAwesomeIcon(props) { | ||
function FontAwesomeIcon(_ref) { | ||
var forwardedRef = _ref.forwardedRef, | ||
props = _objectWithoutProperties(_ref, ["forwardedRef"]); | ||
var iconArgs = props.icon, | ||
@@ -330,3 +333,5 @@ maskArgs = props.mask, | ||
var abstract = renderedIcon.abstract; | ||
var extraProps = {}; | ||
var extraProps = { | ||
ref: forwardedRef | ||
}; | ||
Object.keys(props).forEach(function (key) { | ||
@@ -333,0 +338,0 @@ // eslint-disable-next-line no-prototype-builtins |
{ | ||
"name": "@fortawesome/react-fontawesome", | ||
"description": "Official React component for Font Awesome 5", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"main": "index.js", | ||
@@ -26,3 +26,4 @@ "module": "index.es.js", | ||
"Mike Lynch <github.com/baelec>", | ||
"Lukáš Rod <github.com/rodlukas>" | ||
"Lukáš Rod <github.com/rodlukas>", | ||
"Proudust <github.com/proudust>" | ||
], | ||
@@ -29,0 +30,0 @@ "license": "MIT", |
@@ -667,3 +667,3 @@ <a href="https://fontawesome.com"> | ||
The following contributors have either hepled to start this project, have contributed | ||
The following contributors have either helped to start this project, have contributed | ||
code, are actively maintaining it (including documentation), or in other ways | ||
@@ -683,2 +683,3 @@ being awesome contributors to this project. **We'd like to take a moment to recognize them.** | ||
| <img src="https://github.com/rodlukas.png?size=72" /> | Lukáš Rod | [@rodlukas](https://github.com/rodlukas) | | ||
| <img src="https://github.com/proudust.png?size=72" /> | Proudust | [@proudust](https://github.com/proudust) | | ||
@@ -685,0 +686,0 @@ If we've missed someone (which is quite likely) submit a Pull Request to us and we'll get it resolved. |
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
56776
677
698