Phials plugin documentation
User guide
AI Disclosure: This page was generated by an LLM and may contain inaccuracies. Hand-crafted documentation will be implemented over time on the road to 1.0

ModuleProviderProps

Since Plugin API: 1.0.0

Props passed to module components

Signature

interface ModuleProviderProps {
    pane?: PluginPaneContext;
    moduleInstance: ModuleInstance;
    updateState(state: unknown): void;
    close(): Promise<void>;
}

Members

NameTypeRequiredDescription
panePluginPaneContextnoThe pane context (for pane-scoped modules)
moduleInstanceModuleInstanceyesThe module instance configuration
updateState(state: unknown) => voidyesReplace this instance’s opaque state and schedule center-session persistence.
close() => Promise<void>yesRequest that the host close this module instance.