Add TUI notifications and attention sounds (disabled by default) (#26980)
This commit is contained in:
parent
adccab5970
commit
d6367853ae
73 changed files with 1856 additions and 480 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue