MingaEditor.Extension.Sidebar (minga_sdk v0.1.0)

Copy Markdown View Source

Compile-time SDK stub for source-owned sidebar contributions.

At runtime, Minga provides the real registry. Extensions use this module to register sidebar metadata, publish cached snapshots, and route semantic sidebar actions through the editor action pipeline.

Summary

Types

register_attrs()

@type register_attrs() :: map() | keyword()

row()

@type row() :: map()

snapshot()

@type snapshot() :: map()

source()

@type source() :: :builtin | :config | {:extension, atom()}

Functions

publish_snapshot(source, id, snapshot)

@spec publish_snapshot(source(), String.t(), snapshot()) :: :ok | {:error, term()}

register(source, attrs)

@spec register(source(), register_attrs()) :: :ok | {:error, term()}

set_focused(source, id, focused?)

@spec set_focused(source(), String.t(), boolean()) :: :ok | {:error, term()}

set_visible(source, id, visible?)

@spec set_visible(source(), String.t(), boolean()) :: :ok | {:error, term()}

unregister(source, id)

@spec unregister(source(), String.t()) :: :ok | {:error, term()}