feat(cabana): code editor, colour and mail image fields, mail branding and the image library

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-13 12:53:09 +01:00
parent b996a8fc83
commit 4fd2ed07eb
34 changed files with 1691 additions and 41 deletions

View File

@@ -28,6 +28,7 @@ var (
"password": {}, "permissioneditor": {},
"markdown": {}, "mltext": {}, "mltextarea": {}, "mlmarkdown": {},
"richeditor": {}, "repeater": {}, "money": {}, "taglist": {},
"codeeditor": {}, "colorpicker": {}, "mailimage": {}, "mailpreview": {},
}
formSpans = map[string]struct{}{
"left": {}, "right": {}, "full": {}, "auto": {}, "row": {},
@@ -50,6 +51,7 @@ var (
"groups": {}, "style": {},
"currency": {}, "currencyFrom": {}, "scale": {}, "max": {},
"separator": {}, "customTags": {},
"language": {}, "mailImages": {},
}
// widgetKeys are valid only on `type: widget` (D-06).
widgetKeys = []string{"widget", "action", "fill"}
@@ -647,6 +649,9 @@ func compileFieldNode(name string, node ast.Node, types *fieldTypeRegistry) (For
if err := compileMoneyKeys(typ, values, &field); err != nil {
return FormField{}, err
}
if err := compileMailFieldKeys(typ, values, &field); err != nil {
return FormField{}, err
}
if err := compilePresetKey(typ, values, &field); err != nil {
return FormField{}, err
}