Interface: AlertStore
Defined in: src/stores/alerts/useAlertStore.ts:122
Store contract for managing in-app alerts.
Propertiesโ
alertsโ
readonlyalerts:StatusAlert[]
Defined in: src/stores/alerts/useAlertStore.ts:124
Ordered queue of active alerts (newest first).
clearAlerts()โ
readonlyclearAlerts: () =>void
Defined in: src/stores/alerts/useAlertStore.ts:126
Removes all queued alerts.
Returnsโ
void
clearToasts()โ
readonlyclearToasts: () =>void
Defined in: src/stores/alerts/useAlertStore.ts:128
Removes all queued toasts.
Returnsโ
void
dismissAlert()โ
readonlydismissAlert: (id:string) =>void
Defined in: src/stores/alerts/useAlertStore.ts:130
Removes a specific alert by identifier.
Parametersโ
idโ
string
Returnsโ
void
dismissToast()โ
readonlydismissToast: (id:string) =>void
Defined in: src/stores/alerts/useAlertStore.ts:132
Removes a specific toast by identifier.
Parametersโ
idโ
string
Returnsโ
void
enqueueAlert()โ
readonlyenqueueAlert: (input:StatusAlertInput) =>StatusAlert
Defined in: src/stores/alerts/useAlertStore.ts:137
Enqueues a new alert and trims the queue to MAX_ALERT_QUEUE_LENGTH items.
Parametersโ
inputโ
Returnsโ
enqueueToast()โ
readonlyenqueueToast: (input:AppToastInput) =>AppToast
Defined in: src/stores/alerts/useAlertStore.ts:139
Enqueues a transient toast message.
Parametersโ
inputโ
Returnsโ
toastsโ
readonlytoasts:AppToast[]
Defined in: src/stores/alerts/useAlertStore.ts:141
Ordered queue of transient toasts (newest first).