ng-recaptchav3
Version:
Angular8 library to provide easy extraction for google recaptcha v3, invisible recaptcha and recaptcha v2
42 lines (41 loc) • 1.34 kB
TypeScript
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
import { ReCaptchaBadge, ReCaptchaSize, ReCaptchaTheme, ReCaptchaType } from './grecaptcha';
import { RecaptchaLoaderService } from './recaptcha-loader.service';
import { RecaptchaSettings } from './recaptcha-settings';
export declare class RecaptchaComponent implements AfterViewInit, OnDestroy {
private elementRef;
private loader;
private zone;
id: string;
siteKey: string;
theme: ReCaptchaTheme;
type: ReCaptchaType;
size: ReCaptchaSize;
tabIndex: number;
badge: ReCaptchaBadge;
actionName?: string;
resolved: EventEmitter<string>;
/** @internal */
private subscription;
/** @internal */
private widget;
/** @internal */
private grecaptcha;
constructor(elementRef: ElementRef, loader: RecaptchaLoaderService, zone: NgZone, settings?: RecaptchaSettings);
ngAfterViewInit(): void;
ngOnDestroy(): void;
/**
* Executes the invisible recaptcha.
* Does nothing if component's size is not set to "invisible".
*/
execute(): void;
reset(): void;
/** @internal */
private expired;
/** @internal */
private captchaReponseCallback;
/** @internal */
private grecaptchaReset;
/** @internal */
private renderRecaptcha;
}