@types/grecaptcha
Advanced tools
Comparing version 2.0.34 to 2.0.35
// Type definitions for Google Recaptcha 2.0 | ||
// Project: https://www.google.com/recaptcha | ||
// Definitions by: Kristof Mattei <http://kristofmattei.be>, Martin Costello <https://martincostello.com/>, Ruslan Arkhipau <https://github.com/DethAriel> | ||
// Definitions by: Kristof Mattei <http://kristofmattei.be> | ||
// Martin Costello <https://martincostello.com/> | ||
// Ruslan Arkhipau <https://github.com/DethAriel> | ||
// Rafael Tavares <https://github.com/rafaeltavares> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -9,3 +12,3 @@ | ||
declare namespace ReCaptchaV2 { | ||
class ReCaptcha { | ||
interface ReCaptcha { | ||
/** | ||
@@ -15,5 +18,7 @@ * Renders the container as a reCAPTCHA widget and returns the ID of the newly created widget. | ||
* @param parameters An object containing parameters as key=value pairs, for example, {"sitekey": "your_site_key", "theme": "light"}. See @see render parameters. | ||
* @param inherit Invisible reCAPTCHA only. Use existing data-* attributes on the element if the corresponding parameter is not specified. | ||
* The values in parameters will take precedence over the attributes. | ||
* @return the ID of the newly created widget. | ||
*/ | ||
render(container: (string | HTMLElement), parameters?: Parameters): number; | ||
render(container: (string | HTMLElement), parameters?: Parameters, inherit?: boolean): number; | ||
/** | ||
@@ -71,2 +76,15 @@ * Resets the reCAPTCHA widget. | ||
/** | ||
* Optional. The badge location for g-recaptcha with size of "invisible". | ||
* | ||
* @default "bottomright" | ||
*/ | ||
badge?: Badge; | ||
/** | ||
* Optional. Invisible reCAPTCHA only. For plugin owners to not interfere with existing reCAPTCHA installations on a page. | ||
* If true, this reCAPTCHA instance will be part of a separate ID space. | ||
* | ||
* @default false | ||
*/ | ||
isolated?: boolean; | ||
/** | ||
* Optional. Your callback function that's executed when the user submits a successful CAPTCHA response. | ||
@@ -77,14 +95,15 @@ * The user's response, g-recaptcha-response, will be the input for your callback function. | ||
/** | ||
* Optional. The badge location for g-recaptcha with size of "invisible". | ||
* | ||
* @default "bottomright" | ||
* Optional. Your callback function that's executed when the reCAPTCHA response expires and the user needs to solve a new CAPTCHA. | ||
*/ | ||
badge?: Badge; | ||
// Notice to the reader | ||
// I need to surround this object with quotes, this will however break intellisense in VS 2013. | ||
"expired-callback"?(): void; | ||
/** | ||
* Optional. Your callback function that's executed when the recaptcha response expires and the user needs to solve a new CAPTCHA. | ||
* Optional. Your callback function that's executed when reCAPTCHA encounters an error (usually network connectivity) and cannot continue until connectivity is restored. | ||
* If you specify this function, you are responsible for informing the user that they should retry. | ||
*/ | ||
// Notice to the reader | ||
// I need to surround this object with quotes, this will however break intellisense in VS 2013. | ||
"expired-callback"?(): void; | ||
"error-callback"?(): void; | ||
} | ||
} |
{ | ||
"name": "@types/grecaptcha", | ||
"version": "2.0.34", | ||
"version": "2.0.35", | ||
"description": "TypeScript definitions for Google Recaptcha", | ||
@@ -19,2 +19,7 @@ "license": "MIT", | ||
"githubUsername": "DethAriel" | ||
}, | ||
{ | ||
"name": "Rafael Tavares", | ||
"url": "https://github.com/rafaeltavares", | ||
"githubUsername": "rafaeltavares" | ||
} | ||
@@ -25,8 +30,8 @@ ], | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "0ac905d01462b46789f6c90c329f3d42c867c5ea37fb627f9835e4e9e99be164", | ||
"typesPublisherContentHash": "0b296a471516006430f7683ff7abd607dbe311cebbf5624952d73ce6c8735aae", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/grecaptcha | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/grecaptcha | ||
Additional Details | ||
* Last updated: Wed, 25 Oct 2017 00:19:45 GMT | ||
* Last updated: Fri, 15 Jun 2018 21:26:44 GMT | ||
* Dependencies: none | ||
* Global values: ReCaptchaV2, grecaptcha | ||
* Global values: grecaptcha | ||
# Credits | ||
These definitions were written by Kristof Mattei <http://kristofmattei.be>, Martin Costello <https://martincostello.com/>, Ruslan Arkhipau <https://github.com/DethAriel>. | ||
These definitions were written by Kristof Mattei <http://kristofmattei.be>, Martin Costello <https://martincostello.com/>, Ruslan Arkhipau <https://github.com/DethAriel>, Rafael Tavares <https://github.com/rafaeltavares>. |
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
7246
101