RegionMessages
Related guide: Regions →
Definition
import type { RegionMessages } from '@aionbuilders/nabu';interface RegionMessages {
backTo?: string | ((p: RegionNameParams) => string);
chooser?: string | ((p: { count: number }) => string);
chooserFooter?: string | (() => string);
closeChooser?: string | ((p: { count: number }) => string);
closeCommand?: string | (() => string);
closeFooter?: string | (() => string);
closeOption?: string | ((p: RegionNameParams & { typeName: string }) => string);
create?: string | (() => string);
createNext?: string | ((p: RegionTypeParams) => string);
createOption?: string | ((p: RegionTypeParams) => string);
demote?: string | (() => string);
dissolve?: string | ((p: RegionMessageParams) => string);
endOf?: string | ((p: RegionNameParams) => string);
exit?: string | (() => string);
groupHere?: string | (() => string);
groupNext?: string | (() => string);
hold?: string | ((p: { keys: string; label: string }) => string);
insert?: string | ((p: { type: string }) => string);
mergeNext?: string | ((p: RegionMessageParams) => string);
mergeNextGeneric?: string | (() => string);
mergePrevious?: string | ((p: RegionMessageParams) => string);
mergePreviousGeneric?: string | (() => string);
move?: string | (() => string);
moveDown?: string | (() => string);
moveUp?: string | (() => string);
next?: string | (() => string);
outside?: string | (() => string);
parent?: string | (() => string);
prev?: string | (() => string);
promote?: string | (() => string);
slash?: string | ((p: RegionTypeParams) => string);
split?: string | (() => string);
untitled?: string | (() => string);
unwrap?: string | (() => string);
}Properties
| Property | Type | Description |
|---|---|---|
backTooptional | string | ((p: RegionNameParams) => string) | second half of the end marker when the parent is a region ("back to 1. The ferryman");
|
chooseroptional | string | ((p: { count: number }) => string) | prompt of the |
chooserFooteroptional | string | (() => string) | hint under the chooser ("↑↓ choose · ↵ create · Esc cancel") |
closeChooseroptional | string | ((p: { count: number }) => string) | prompt of the |
closeCommandoptional | string | (() => string) | label of |
closeFooteroptional | string | (() => string) | hint under the |
closeOptionoptional | string | ((p: RegionNameParams & { typeName: string }) => string) | entry of the |
createoptional | string | (() => string) | label of |
createNextoptional | string | ((p: RegionTypeParams) => string) | entry for a type created as a SIBLING after the current region ("Next section") |
createOptionoptional | string | ((p: RegionTypeParams) => string) | entry of the chooser for a type that fits here ("Section") |
demoteoptional | string | (() => string) | n/a |
dissolveoptional | string | ((p: RegionMessageParams) => string) | label of a protected merge that has no region to join: the region |
endOfoptional | string | ((p: RegionNameParams) => string) | first half of the end marker, drawn after a region that is followed by
text of its parent ("End of 1.2"). |
exitoptional | string | (() => string) | label of |
groupHereoptional | string | (() => string) | header of the chooser group of the types created INSIDE the current region (or at the root) ("Here") |
groupNextoptional | string | (() => string) | header of the chooser group of the sibling entries ("Next") |
holdoptional | string | ((p: { keys: string; label: string }) => string) | the prompt of a protected merge ("Hold ⌫ to merge with “…”"): shown above the seam and announced to screen readers |
insertoptional | string | ((p: { type: string }) => string) | label of |
mergeNextoptional | string | ((p: RegionMessageParams) => string) | label of |
mergeNextGenericoptional | string | (() => string) | label of |
mergePreviousoptional | string | ((p: RegionMessageParams) => string) | label of |
mergePreviousGenericoptional | string | (() => string) | label of |
moveoptional | string | (() => string) | n/a |
moveDownoptional | string | (() => string) | n/a |
moveUpoptional | string | (() => string) | n/a |
nextoptional | string | (() => string) | n/a |
outsideoptional | string | (() => string) | second half of the end marker when the parent is the root ("outside regions") |
parentoptional | string | (() => string) | n/a |
prevoptional | string | (() => string) | n/a |
promoteoptional | string | (() => string) | n/a |
slashoptional | string | ((p: RegionTypeParams) => string) | title of the slash-menu entry of a type ("Section") |
splitoptional | string | (() => string) | label of |
untitledoptional | string | (() => string) | placeholder of an empty title (ADR 018) |
unwrapoptional | string | (() => string) | label of |
Source: src/lib/blocks/region/messages.js:30