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