Interface: AlertStore
Defined in: src/stores/alerts/useAlertStore.ts:123
Store contract for managing in-app alerts.
Propertiesโ
alertsโ
readonlyalerts:StatusAlert[]
Defined in: src/stores/alerts/useAlertStore.ts:125
Ordered queue of active alerts (newest first).
clearAlerts()โ
readonlyclearAlerts: () =>void
Defined in: src/stores/alerts/useAlertStore.ts:127
Removes all queued alerts.
Returnsโ
void
clearToasts()โ
readonlyclearToasts: () =>void
Defined in: src/stores/alerts/useAlertStore.ts:129
Removes all queued toasts.
Returnsโ
void
dismissAlert()โ
readonlydismissAlert: (id:string) =>void
Defined in: src/stores/alerts/useAlertStore.ts:131
Removes a specific alert by identifier.
Parametersโ
idโ
string
Returnsโ
void
dismissToast()โ
readonlydismissToast: (id:string) =>void
Defined in: src/stores/alerts/useAlertStore.ts:133
Removes a specific toast by identifier.
Parametersโ
idโ
string
Returnsโ
void
enqueueAlert()โ
readonlyenqueueAlert: (input:StatusAlertInput) =>StatusAlert
Defined in: src/stores/alerts/useAlertStore.ts:138
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:140
Enqueues a transient toast message.
Parametersโ
inputโ
Returnsโ
toastsโ
readonlytoasts:AppToast[]
Defined in: src/stores/alerts/useAlertStore.ts:142
Ordered queue of transient toasts (newest first).