@internetarchive/recaptcha-manager
Advanced tools
Comparing version 0.1.0 to 0.1.1
import { html, css, LitElement } from 'lit'; | ||
import { customElement, state } from 'lit/decorators.js'; | ||
import { RecaptchaWidget } from '../src/recaptcha-widget'; | ||
import { RecaptchaWidgetInterface } from '../src/recaptcha-widget'; | ||
import { | ||
@@ -19,5 +19,5 @@ RecaptchaManager, | ||
private recaptcha1?: RecaptchaWidget; | ||
private recaptcha1?: RecaptchaWidgetInterface; | ||
private recaptcha2?: RecaptchaWidget; | ||
private recaptcha2?: RecaptchaWidgetInterface; | ||
@@ -24,0 +24,0 @@ render() { |
/// <reference types="grecaptcha" /> | ||
import { LazyLoaderServiceInterface } from '@internetarchive/lazy-loader-service'; | ||
import { RecaptchaWidget } from './recaptcha-widget'; | ||
import { RecaptchaWidgetInterface } from './recaptcha-widget'; | ||
export interface RecaptchaManagerInterface { | ||
@@ -11,3 +11,3 @@ /** | ||
recaptchaParams?: ReCaptchaV2.Parameters; | ||
}): Promise<RecaptchaWidget>; | ||
}): Promise<RecaptchaWidgetInterface>; | ||
} | ||
@@ -27,3 +27,3 @@ export declare class RecaptchaManager implements RecaptchaManagerInterface { | ||
recaptchaParams?: ReCaptchaV2.Parameters; | ||
}): Promise<RecaptchaWidget>; | ||
}): Promise<RecaptchaWidgetInterface>; | ||
/** | ||
@@ -30,0 +30,0 @@ * Load the Recaptch library from Google. |
@@ -10,3 +10,3 @@ { | ||
"author": "Internet Archive", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "dist/index.js", | ||
@@ -13,0 +13,0 @@ "module": "dist/index.js", |
@@ -5,3 +5,3 @@ import { | ||
} from '@internetarchive/lazy-loader-service'; | ||
import { RecaptchaWidget } from './recaptcha-widget'; | ||
import { RecaptchaWidget, RecaptchaWidgetInterface } from './recaptcha-widget'; | ||
@@ -15,3 +15,3 @@ export interface RecaptchaManagerInterface { | ||
recaptchaParams?: ReCaptchaV2.Parameters; | ||
}): Promise<RecaptchaWidget>; | ||
}): Promise<RecaptchaWidgetInterface>; | ||
} | ||
@@ -40,3 +40,3 @@ | ||
recaptchaParams?: ReCaptchaV2.Parameters; | ||
}): Promise<RecaptchaWidget> { | ||
}): Promise<RecaptchaWidgetInterface> { | ||
const key = options?.siteKey ?? this.defaultSiteKey; | ||
@@ -43,0 +43,0 @@ if (!key) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
160816