UNPKG

askeroo

Version:

A modern CLI prompt library with flow control, history navigation, and conditional prompts

19 lines 942 B
interface PluginWrapperProps { pluginType: string; [key: string]: any; } /** * Wrapper component that transforms flat props into structured format. * * This wrapper transforms flat props into a structured format with: * - `options`: User-provided configuration (label, shortLabel, initialValue, etc.) * - `node`: Library flow node properties (state, flow, isFirstInGroup, etc.) * - `events`: Event handlers (onSubmit, onBack, onHintChange, etc.) * * Note: Auto-submit behavior is now controlled within each plugin component. * Components submit with consistent format: { type: "auto" | "skip" | "programmatic", value?: any } * Regular values (non-objects or objects without type property) are treated as manual submissions */ export declare function PluginWrapper({ pluginType, promptId, ...props }: PluginWrapperProps): import("react/jsx-runtime").JSX.Element | null; export {}; //# sourceMappingURL=PluginWrapper.d.ts.map