Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

ModuleInstanceConnection

Renders the standard task-detail module selector, resource link, and live connection state.

Import

import { ModuleInstanceConnection } from "@dartwic/interface-sdk/ui";

Declaration

export const ModuleInstanceConnection: HostComponent<ModuleInstanceConnectionProps>;

ModuleInstanceConnectionProps

Shared module selector, module link, and opt-in live connection status.

export interface ModuleInstanceConnectionProps extends ModuleInstanceSelectProps {
    /** Supporting copy shown beneath the shared control. */
    description?: string;
    /** Hides the selector and presents only the linked module. */
    showSelector?: boolean;
    /** Shows the module's plugin-declared connection state when available. */
    showConnectionStatus?: boolean;
    /** Shows connection-state text instead of a compact indicator. */
    statusText?: boolean;
    /** Uses the compact header/footer layout. */
    compact?: boolean;
}
PropTypeRequirementDescription
descriptionstringOptionalSupporting copy shown beneath the shared control.
showSelectorbooleanOptionalHides the selector and presents only the linked module.
showConnectionStatusbooleanOptionalShows the module’s plugin-declared connection state when available.
statusTextbooleanOptionalShows connection-state text instead of a compact indicator.
compactbooleanOptionalUses the compact header/footer layout.
pluginIdstringRequiredEngine plugin that must own every displayed module instance.
moduleTypeIdsstring[]OptionalOptional compatible module type IDs, in local or plugin-qualified form.
valuestringOptionalSelected module-instance name.
onValueChange(value: string) => voidOptionalCalled with the selected module-instance name.
placeholderstringOptionalEmpty-selection prompt.
disabledbooleanOptionalDisables the selector.
showStatusbooleanOptionalShows loading, incompatibility, and empty-state diagnostics.
classNamestringOptionalAdditional Tailwind or host CSS classes.
childrenHostNodeOptionalChild content rendered by the host component.
idstringOptionalOptional DOM identifier.
styleRecord<string, unknown>OptionalInline style values passed to the host component.