Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
TaskConfigBridgeState
State published to the host by `useTaskConfigBridge`.
Import
import type { TaskConfigBridgeState } from "@dartwic/interface-sdk/tasks";Declaration
export interface TaskConfigBridgeState {
isDirty?: boolean;
isSaving?: boolean;
canSave?: boolean;
errorMessage?: string;
saveLabel?: string;
cancelLabel?: string;
onSave?: (() => Promise<void> | void) | null;
onCancel?: (() => Promise<void> | void) | null;
/** Optional module-instance control rendered by the shared host task-detail body. */
moduleConnection?: {
pluginId: string;
moduleTypeIds?: string[];
value?: string;
onValueChange?: (value: string) => void;
placeholder?: string;
description?: string;
showConnectionStatus?: boolean;
} | null;
}Members
| Name | Type | Requirement | Description |
|---|---|---|---|
isDirty | boolean | Optional | |
isSaving | boolean | Optional | |
canSave | boolean | Optional | |
errorMessage | string | Optional | |
saveLabel | string | Optional | |
cancelLabel | string | Optional | |
onSave | (() => Promise<void> | void) | null | Optional | |
onCancel | (() => Promise<void> | void) | null | Optional | |
moduleConnection | `{ | ||
pluginId: string; | |||
moduleTypeIds?: string[]; | |||
value?: string; | |||
onValueChange?: (value: string) => void; | |||
placeholder?: string; | |||
description?: string; | |||
showConnectionStatus?: boolean; | |||
} | null` | Optional | Optional module-instance control rendered by the shared host task-detail body. |