BEAM-owned model for structured editor notifications.
Native GUI frontends render these as bottom-right notification cards. TUI users receive the same important information through *Messages* at the call site.
Summary
Functions
Builds a notification from attrs.
Returns a copy updated with attrs while preserving creation time.
Sets the original creation timestamp when replacing an existing notification.
Attaches the auto-dismiss timer reference used to reject stale timer messages.
Sets the recency timestamp for a notification snapshot or replacement.
Types
@type level() :: :info | :warning | :error | :success | :progress
@type t() :: %MingaEditor.UI.Notification{ actions: [MingaEditor.UI.Notification.Action.t()], auto_dismiss_ms: non_neg_integer() | nil, body: String.t() | nil, created_at: integer(), dismiss_ref: reference() | nil, dismissable: boolean(), id: String.t(), level: level(), source: String.t() | nil, title: String.t(), updated_at: integer() | nil }
Functions
Builds a notification from attrs.
Returns a copy updated with attrs while preserving creation time.
Sets the original creation timestamp when replacing an existing notification.
Attaches the auto-dismiss timer reference used to reject stale timer messages.
Sets the recency timestamp for a notification snapshot or replacement.