UNPKG

password-manager-autofill-utilities

Version:

TypeScript utilities to control password manager autofill behavior across different password managers

21 lines 985 B
import { PasswordManager, HtmlAttributes } from '../types'; import { BasePasswordManagerProvider } from './base'; /** * Browser autocomplete provider implementation * Uses the autoComplete attribute to control browser autofill behavior * Note: Uses React's camelCase naming convention (autoComplete) rather than HTML's lowercase (autocomplete) */ export declare class BrowserAutocompleteProvider extends BasePasswordManagerProvider { readonly manager = PasswordManager.BROWSER_AUTOCOMPLETE; /** * Get attributes that prevent browser autocomplete from interacting with the field * @returns HTML attributes for browser autocomplete ignore behavior */ protected getIgnoreAttributes(): HtmlAttributes; /** * Get attributes that explicitly allow browser autocomplete * @returns HTML attributes for browser autocomplete allow behavior */ protected getAllowAttributes(): HtmlAttributes; } //# sourceMappingURL=browserAutocomplete.d.ts.map