react-google-invisible-recaptcha
Advanced tools
Comparing version 0.2.3 to 0.2.5
@@ -7,4 +7,2 @@ 'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _createClass = 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
@@ -118,3 +116,4 @@ | ||
var style = _extends({ display: 'none' }, this.props.style); | ||
var style = this.props.style; | ||
return _react2.default.createElement('div', { ref: function ref(_ref) { | ||
@@ -132,2 +131,3 @@ return _this3.container = _ref; | ||
locale: _propTypes2.default.string, | ||
badge: _propTypes2.default.oneOf(['bottomright', 'bottomleft', 'inline']), | ||
onResolved: _propTypes2.default.func.isRequired, | ||
@@ -138,5 +138,6 @@ style: _propTypes2.default.object | ||
GoogleRecaptcha.defaultProps = { | ||
locale: 'en' | ||
locale: 'en', | ||
badge: 'bottomright' | ||
}; | ||
exports.default = GoogleRecaptcha; |
{ | ||
"name": "react-google-invisible-recaptcha", | ||
"author": "szchenghuang <szchenghuang@gmail.com>", | ||
"version": "0.2.3", | ||
"version": "0.2.5", | ||
"description": "A React component which is simply interested in Google invisible reCaptcha.", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -82,2 +82,3 @@ # react-google-invisible-recaptcha # | ||
* locale: in which language it speaks. **Default: en.** | ||
* badge: `bottomright`, `bottomleft`, or `inline`. **Default: bottomright.** | ||
* style: custom CSS applied to the root node. **Default: undefined.** | ||
@@ -84,0 +85,0 @@ |
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
111
100
11353
6