49afe5dbc4
- Makes engineComponentKey non-nullable on CommandMenuItem. Adds two new engine component keys: TRIGGER_WORKFLOW_VERSION and FRONT_COMPONENT_RENDERER to cover the former standalone cases. - Unifies the previously separated engine, front component and workflow runners into a single `CommandRunner` component with a unified `useMountCommand` hook that handles all command types.
10 lines
368 B
TypeScript
10 lines
368 B
TypeScript
import {
|
|
type HeadlessCommandContextApi,
|
|
type HeadlessTriggerWorkflowVersionCommandContextApi,
|
|
} from '@/command-menu-item/engine-command/types/HeadlessCommandContextApi';
|
|
|
|
export const isHeadlessTriggerWorkflowVersionCommandContextApi = (
|
|
state: HeadlessCommandContextApi,
|
|
): state is HeadlessTriggerWorkflowVersionCommandContextApi =>
|
|
'workflowId' in state;
|