diff --git a/src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/CodeEditorOptions.cs b/src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/CodeEditorOptions.cs new file mode 100644 index 000000000..bb8e10f66 --- /dev/null +++ b/src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/CodeEditorOptions.cs @@ -0,0 +1,19 @@ +using JetBrains.Annotations; + +namespace Elsa.Api.Client.Shared.UIHints.CodeEditor; + +/// +/// Options for the code editor component. +/// +[PublicAPI] +public class CodeEditorOptions +{ + /// The height of the editor. + public EditorHeight? EditorHeight { get; set; } + + /// The language to use for syntax highlighting. + public string? Language { get; set; } + + /// Whether the editor should be in single line mode. + public bool? SingleLineMode { get; set; } +} \ No newline at end of file diff --git a/src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/EditorHeight.cs b/src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/EditorHeight.cs new file mode 100644 index 000000000..33a9ffd70 --- /dev/null +++ b/src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/EditorHeight.cs @@ -0,0 +1,20 @@ +using JetBrains.Annotations; + +namespace Elsa.Api.Client.Shared.UIHints.CodeEditor; + +/// +/// Height options for the code editor component. +/// +[PublicAPI] +public enum EditorHeight +{ + /// + /// The default height. + /// + Default, + + /// + /// A large height. + /// + Large +} \ No newline at end of file diff --git a/src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/MultiLineOptions.cs b/src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/MultiLineOptions.cs new file mode 100644 index 000000000..e9d0ba30c --- /dev/null +++ b/src/clients/Elsa.Api.Client/Shared/UIHints/CodeEditor/MultiLineOptions.cs @@ -0,0 +1,10 @@ +using JetBrains.Annotations; + +namespace Elsa.Api.Client.Shared.UIHints.CodeEditor; + +/// +/// Options for the multi-line editor component. +/// +/// The height of the editor. +[PublicAPI] +public record MultiLineOptions(EditorHeight EditorHeight); \ No newline at end of file