Skip to content

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 ​

PropertyTypeDescriptionDefined 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.nodeIdstring-packages/visual-editor/src/types.ts:159
error?string | nullValidation error message (null when valid).packages/visual-editor/src/types.ts:151
expressionAst?unknownRaw AST expression object — enables direct tree conversion without reparsing text.packages/visual-editor/src/types.ts:155
onBlur() => voidCalled when the editor loses focus — triggers validation & commit.packages/visual-editor/src/types.ts:149
onChange(value) => voidCalled on every keystroke / change.packages/visual-editor/src/types.ts:147
placeholder?stringPlaceholder 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.indexnumber-packages/visual-editor/src/types.ts:157
target.kind"precondition" | "postcondition"-packages/visual-editor/src/types.ts:157
target.nodeIdstring-packages/visual-editor/src/types.ts:157
valuestringCurrent expression text.packages/visual-editor/src/types.ts:145

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.