UNPKG

dictate-button

Version:

Customizable Web Component that adds speech-to-text dictation capabilities to text fields

15 lines (14 loc) 668 B
import "./dictate-button.js"; import { injectDictateButtonOnLoad as t } from "./libs/injectDictateButtonOnLoad.js"; const a = 30, n = !0, o = !1, e = [ "textarea:not([data-dictate-button-off]):not([data-dictate-button-enabled])", 'input[type="text"]:not([data-dictate-button-off]):not([data-dictate-button-enabled])', 'input[type="search"]:not([data-dictate-button-off]):not([data-dictate-button-enabled])', "input:not([type]):not([data-dictate-button-off]):not([data-dictate-button-enabled])", "*[contenteditable]:not([data-dictate-button-off]):not([data-dictate-button-enabled])" ].join(","); t(e, { buttonSize: a, watchDomChanges: n, verbose: o });