UNPKG

@anilkumarthakur/vue3-recaptcha

Version:

A Vue 3 plugin for Google reCAPTCHA v2 (checkbox & invisible) and v3 integration

32 lines 1.73 kB
import { Plugin } from 'vue'; import { RecaptchaV2Checkbox } from './components/RecaptchaV2Checkbox'; import { RecaptchaV2Invisible } from './components/RecaptchaV2Invisible'; import { RecaptchaV3 } from './components/RecaptchaV3'; import { useRecaptchaV2 } from './composables/useRecaptchaV2'; import { useRecaptchaV3 } from './composables/useRecaptchaV3'; /** * Vue 3 Recaptcha Plugin * * @example * ```ts * import { createApp } from 'vue' * import { VueRecaptchaPlugin } from '@anilkumarthakur/vue3-recaptcha' * * const app = createApp(App) * app.use(VueRecaptchaPlugin, { * siteKey: 'your-site-key', * version: 'v3' * }) * ``` */ export declare const VueRecaptchaPlugin: Plugin; export declare const recaptchaPlugin: import('vue').ObjectPlugin<any[]>; export { RecaptchaV2Checkbox, RecaptchaV2Invisible, RecaptchaV3 }; export { RecaptchaV2Checkbox as RecaptchaV2 }; export { RecaptchaV3 as Recaptcha }; export { useRecaptchaV2, useRecaptchaV3 }; export type { RecaptchaPluginOptions, RecaptchaContext, RecaptchaVersion, RecaptchaV2CheckboxProps, RecaptchaV2CheckboxEmits, RecaptchaV2InvisibleProps, RecaptchaV2InvisibleEmits, RecaptchaV3Props, RecaptchaV3Emits, UseRecaptchaV2Options, UseRecaptchaV2Return, UseRecaptchaV3Options, UseRecaptchaV3Return, RecaptchaTheme, RecaptchaSize, RecaptchaBadgePosition, Grecaptcha, GrecaptchaV2, GrecaptchaV3, GrecaptchaV2RenderParameters, RecaptchaV2CheckboxInstance, RecaptchaV2InvisibleInstance, RecaptchaV3Instance } from './types'; export { RECAPTCHA_INJECTION_KEY } from './types'; export { loadRecaptchaScript, isRecaptchaLoaded, removeScript, waitForRecaptcha } from './utils/script-loader'; export default VueRecaptchaPlugin; //# sourceMappingURL=index.d.ts.map