rune-langium / visual-editor/src / ExpressionEditorSlotProps
Interface: ExpressionEditorSlotProps
Defined in: packages/visual-editor/src/types.ts:143
Props provided to the expression editor render-prop slot.
packages/visual-editor is editor-agnostic — the host app provides the actual editor implementation (e.g. CodeMirror, Monaco) via a renderExpressionEditor prop on FunctionForm.
Extended by
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
draftCondition? | { kind: "precondition" | "postcondition"; nodeId: string; } | Scope for a new condition draft; no expression source region exists yet. | packages/visual-editor/src/types.ts:159 |
draftCondition.kind | "precondition" | "postcondition" | - | packages/visual-editor/src/types.ts:159 |
draftCondition.nodeId | string | - | packages/visual-editor/src/types.ts:159 |
error? | string | null | Validation error message (null when valid). | packages/visual-editor/src/types.ts:151 |
expressionAst? | unknown | Raw AST expression object — enables direct tree conversion without reparsing text. | packages/visual-editor/src/types.ts:155 |
onBlur | () => void | Called when the editor loses focus — triggers validation & commit. | packages/visual-editor/src/types.ts:149 |
onChange | (value) => void | Called on every keystroke / change. | packages/visual-editor/src/types.ts:147 |
placeholder? | string | Placeholder text shown when the editor is empty. | packages/visual-editor/src/types.ts:153 |
readOnly? | boolean | - | packages/visual-editor/src/types.ts:156 |
target? | { index: number; kind: "precondition" | "postcondition"; nodeId: string; } | - | packages/visual-editor/src/types.ts:157 |
target.index | number | - | packages/visual-editor/src/types.ts:157 |
target.kind | "precondition" | "postcondition" | - | packages/visual-editor/src/types.ts:157 |
target.nodeId | string | - | packages/visual-editor/src/types.ts:157 |
value | string | Current expression text. | packages/visual-editor/src/types.ts:145 |