| 15 | import {createLiveRegion} from './LiveRegion.ts'; |
| 16 | |
| 17 | interface Options { |
| 18 | /** |
| 19 | * Optional id that should be used for the accessibility plugin's screen reader instructions and announcements. |
| 20 | */ |
| 21 | id?: string; |
| 22 | /** |
| 23 | * Optional id prefix to use for the accessibility plugin's screen reader instructions and announcements. |
| 24 | */ |
| 25 | idPrefix?: { |
| 26 | description?: string; |
| 27 | announcement?: string; |
| 28 | }; |
| 29 | /** |
| 30 | * The announcements to use for the accessibility plugin. |
| 31 | */ |
| 32 | announcements?: Announcements; |
| 33 | /** |
| 34 | * The screen reader instructions to use for the accessibility plugin. |
| 35 | */ |
| 36 | screenReaderInstructions?: ScreenReaderInstructions; |
| 37 | /** |
| 38 | * The number of milliseconds to debounce the announcement updates. |
| 39 | * |
| 40 | * @remarks |
| 41 | * Only the `dragover` and `dragmove` announcements are debounced. |
| 42 | * |
| 43 | * @default 500 |
| 44 | */ |
| 45 | debounce?: number; |
| 46 | } |
| 47 | |
| 48 | const debouncedEvents = ['dragover', 'dragmove']; |
| 49 |
nothing calls this directly
no outgoing calls
no test coverage detected