Add TUI notifications and attention sounds (disabled by default) (#26980)

This commit is contained in:
Sebastian 2026-05-13 03:26:25 +02:00 committed by GitHub
commit d6367853ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
73 changed files with 1856 additions and 480 deletions

View file

@ -40,6 +40,7 @@ type Input = {
theme: ReturnType<typeof useTheme>
toast: ReturnType<typeof useToast>
renderer: TuiPluginApi["renderer"]
attention: TuiPluginApi["attention"]
}
function routeRegister(routes: RouteMap, list: TuiRouteDefinition[], bump: () => void) {
@ -206,6 +207,7 @@ export function createTuiApi(input: Input): TuiPluginApi {
}
return {
app: appApi(),
attention: input.attention,
// Keep deprecated `api.command` working for v1 plugins; remove in v2.
command: createCommandShim(input.keymap, input.dialog, input.tuiConfig.keybinds),
keys: {