MingaEditor.Extension.Sidebar.Snapshot (minga_sdk v0.1.0)

Copy Markdown View Source

Compile-time SDK struct for cached sidebar snapshots.

Runtime Minga uses the matching module to derive structural and selection fingerprints. Extension code can construct this struct when publishing sidebar content.

Summary

Types

row()

@type row() :: map()

status()

@type status() :: :ready | :loading | :error | :empty

t()

@type t() :: %MingaEditor.Extension.Sidebar.Snapshot{
  active_id: String.t() | nil,
  message: String.t() | nil,
  rows: [row()],
  selected_id: String.t() | nil,
  selection_fingerprint: non_neg_integer(),
  status: status(),
  structural_fingerprint: non_neg_integer()
}