Vibe.UI.ViewModel (vibe v0.2.1)

Copy Markdown View Source

Converts Vibe.UI.State into semantic blocks for renderers.

Summary

Types

t()

@type t() :: %{
  body: [struct()],
  footer: Vibe.UI.Block.Footer.t(),
  overlays: [Vibe.UI.Block.Overlay.t()],
  notifications: Vibe.UI.Block.NotificationList.t() | nil,
  plugin_widgets: %{
    above_editor: [Vibe.UI.Block.PluginWidget.t()],
    below_editor: [Vibe.UI.Block.PluginWidget.t()],
    sidebar: [Vibe.UI.Block.PluginWidget.t()]
  },
  title: String.t() | nil,
  working_message: String.t() | nil,
  hidden_thinking_label: String.t() | nil
}

Functions

from_state(state)

@spec from_state(Vibe.UI.State.t()) :: t()